pub fn dump_trace(events: &mut Events, outfile: &str) -> Result<()>
Expand description

Dumps only the trace file to disk, without additional metadata.

events is the Events buffer as returned by init. outfile is the file into which the output trace is written. The trace itself has the same format as uftrace, but is not directly parsable due to the missing metadata.


Packed array of uftrace_record structs

struct uftrace_record {
    uint64_t time;
    uint64_t type:   2;
    uint64_t more:   1;
    uint64_t magic:  3;
    uint64_t depth:  10;
    uint64_t addr:   48; /* child ip or uftrace_event_id */