sptdecode − Decode Processor Trace files and display call trace
sptdecode [--sideband sidebandfile] ... [--elf elfbinary ] [-i] [--tsc] [--pt ptfile ...]
sptdecode decodes Processor Trace traces generated by simple-pt. It shows a call trace of all the function calls executed during the trace. Mandatory arguments are trace file with --pt, and either an ELF binary with --elf or the side band data listing multiple binaries with --sideband. The trace file contains the trace data for a single CPU. --sideband and --elf need to be specified before --pt. When -i is specified, the raw instructions are dumped, optionally with disassembly. Default is to just show function calls.
With the --tsc or -t option the time is shown in TSC units, otherwise in us.
sptcmd command
sptdecode --sideband ptout.sideband --pt ptout.0
To decode kernel code sptcmd has to run as root, in order to access /proc/kcore.
sptcmd fastdecode simple-pt