Lines Matching full:trace
55 This will produce a binary trace file (perf.data) that %prog can analyse.
67 $ %prog --log=foo.log --snapshot-log=snap-foo.log --trace=foo.data --snapshot
486 """Descriptor of a structure in the binary trace log."""
504 def Read(self, trace, offset):
505 trace, offset)
601 """Perf (linux-2.6/tools/perf) trace file reader."""
607 self.trace = mmap.mmap(self.trace_file.fileno(), 0, mmap.MAP_PRIVATE)
608 self.trace_header = TRACE_HEADER_DESC.Read(self.trace, 0)
610 print >>sys.stderr, "Warning: unsupported trace header magic"
613 assert self.limit <= self.trace.size(), \
614 "Trace data limit exceeds trace file size"
617 "No perf event attributes found in the trace"
618 perf_event_attr = PERF_EVENT_ATTR_DESC.Read(self.trace,
632 header = PERF_EVENT_HEADER_DESC.Read(self.trace, self.offset)
637 mmap_info = PERF_MMAP_EVENT_BODY_DESC.Read(self.trace,
640 filename = self.trace[offset + self.header_size + ctypes.sizeof(mmap_info):
646 sample = self.sample_event_body_desc.Read(self.trace,
654 self.ip_struct.from_buffer(self.trace, offset).value)
659 self.trace.close()
836 parser.add_option("--trace",
838 help="perf trace file name [default: %default]")
870 print "Perf trace file: %s" % options.trace
896 # Process the code and trace logs.
899 trace_reader = TraceReader(options.trace)
941 print "%10d total trace events" % events