Lines Matching full:trace
3 # Pretty-printer for simple trace backend binary trace files
21 # This is the binary format that the QEMU "simple" trace backend
23 # not guaranteed to be stable. Trace files must be parsed with the
24 # same trace-events-all file and the same simpletrace.py file that
41 '''Read a trace record header'''
56 """Deserialize a trace record from a file into a tuple (event_num, timestamp, pid, args)."""
62 """Read and verify trace file header"""
65 … raise ValueError(f'Not a valid trace file, header id {_header_event_id} != {header_event_id}')
67 raise ValueError(f'Not a valid trace file, header magic {_header_magic} != {header_magic}')
75 …"""Deserialize trace records from a file, yielding record tuples (event, event_num, timestamp, pid…
113 f'{e} event is logged but is not declared in the trace events'
114 'file, try using trace-events-all instead.'
136 A trace file analyzer which processes trace records.
139 invoked, then each trace record is processed, and finally the end() method
143 If a method matching a trace event name exists, it is invoked to process
144 that trace record. Otherwise the catchall() method is invoked.
147 The following method handles the runstate_set(int new_state) trace event::
152 The method can also take a timestamp argument before the trace event
168 """Called at the start of the trace."""
172 """Called if no specific method for processing a trace event has been found."""
210 """Called at the end of the trace."""
223 """A trace file analyzer which processes trace records.
226 invoked, then each trace record is processed, and finally the end() method
230 If a method matching a trace event name exists, it is invoked to process
231 that trace record. Otherwise the catchall() method is invoked.
238 event: Event object of current trace
239 event_id: The id of the event in the current trace file
240 timestamp_ns: The timestamp in nanoseconds of the trace
241 pid: The process id recorded for the given trace
244 The following method handles the runstate_set(int new_state) trace event::
250 trace event arguments::
265 """Called if no specific method for processing a trace event has been found."""
323 """Execute an analyzer on a trace file given on the command-line.
333 raise SimpleException(f'usage: {sys.argv[0]} [--no-header] <trace-events> <trace-file>\n')