Re: Announcing simple-pt -- a simple Processor Trace implementation for Linux
From: Andi Kleen
Date: Mon Aug 17 2015 - 14:21:13 EST
> > % sptdecode --sideband ptout.sideband --pt ptout.0 | less
> > TIME DELTA INSNs OPERATION
> > frequency 32
> > 0 [+0] [+ 1] _dl_aux_init+436
> > [+ 6] __libc_start_main+455 -> _dl_discover_osversion
> > ...
> > [+ 13] __libc_start_main+446 -> main
> > [+ 9] main+22 -> f1
> > [+ 4] f1+9 -> f2
> > [+ 2] f1+19 -> f2
> > [+ 5] main+22 -> f1
> > [+ 4] f1+9 -> f2
> > [+ 2] f1+19 -> f2
> > [+ 5] main+22 -> f1
>
> Nice. So I guess +x is the address offset. How hard would it be to
> translate to file lines?
Yes it's the address offset. Translating to lines wouldn't be too hard,
just needs to be implemented with a dwarf reader.
BTW the PT trace has all branches, just not the calls, but it's more
difficult to display them all in a nice way.
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/