tracex_parser.file_parser

Functions

get_control_header(endian_str, buf, start_idx)

@see https://docs.microsoft.com/en-us/azure/rtos/tracex/chapter11#event-trace-control-header Unpacks the control header into a dict-like CStruct

get_endian_str(buf)

Returns the endianness of the TraceX dump based on the first couple bytes

get_event_entries(endian_str, buf, ...)

@see https://docs.microsoft.com/en-us/azure/rtos/tracex/chapter11#event-trace-entries Unpacks the TraceX events into a list of dict-like CStructs.

get_object_registry(endian_str, buf, ...)

@see https://docs.microsoft.com/en-us/azure/rtos/tracex/chapter11#event-trace-object-registry Unpacks the object registry into a list of dict-like CStructs

main()

parse_tracex_buffer(filepath[, ...])

Parse a TraceX binary dump (canonically .trx) into a list of TraceXEvent classes :param filepath: Path to where the TraceX file is :param custom_events_map: Dictionary of {id: TraceXEvents} to map custom events (id >= 4096) into human-readable events.