#include "probelog.h"
The header for the memory mapped log. Explicit sizes, because this is the save for all architectures. The memory mapped log contains:
- An 8-byte magic number containing the characters 'HQNplog' followed by LF. This is used to determine that a logfile is in binary format.
- An 8-byte byte order marker. This is initialised to the 64-bit integer 0x0807060504030201. The order of bytes in a saved logfile can be used to check whether the logfile was produced on a different architecture, and swap byte order if necessary.
- A 64-bit size of this header structure in bytes;
- A 64-bit timebase, indicating the number of ticks per second in time fields;
- A 64-bit start time, giving an offset from a known reference such that multiple RIPs or trace logs within the same boot cycle can be compared.
- A 64-bit offset field indicating the number of bytes from the start of the header (also the start of the file) to the trace name table. All table offsets are 64-bit aligned;
- A 64-bit offset field indicating the number of bytes from the start of the header (also the start of the file) to the trace type name table;
- A 64-bit offset field indicating the number of bytes from the start of the header (also the start of the file) to the trace entry table;
- A 64-bit size of each trace entry.
- A 64-bit count of the number of entries in the trace entry table.
The documentation for this struct was generated from the following file: