обработка данных трассировки с помощью скрипта Python (Process trace data with a Python script)
SUPPORTED FIELDS
Currently supported fields:
ev_name, comm, pid, tid, cpu, ip, time, period, phys_addr, addr,
symbol, symoff, dso, time_enabled, time_running, values,
callchain, brstack, brstacksym, datasrc, datasrc_decode, iregs,
uregs, weight, transaction, raw_buf, attr, cpumode.
Fields that may also be present:
flags - sample flags
flags_disp - sample flags display
insn_cnt - instruction count for determining instructions-per-cycle (IPC)
cyc_cnt - cycle count for determining IPC
addr_correlates_sym - addr can correlate to a symbol
addr_dso - addr dso
addr_symbol - addr symbol
addr_symoff - addr symbol offset
Some fields have sub items:
brstack: from, to, from_dsoname, to_dsoname, mispred, predicted,
in_tx, abort, cycles.
brstacksym: items: from, to, pred, in_tx, abort (converted
string)
For example, We can use this code to print brstack "from", "to",
"cycles".
if brstack in dict: for entry in dict[brstack]: print "from %s,
to %s, cycles %s" % (entry["from"], entry["to"], entry["cycles"])