Re: [PATCH 4/4] perf, tools, script: Add brstackasm output for branch stacks

2017-01-09 Thread Andi Kleen
On Sun, Jan 08, 2017 at 03:19:49PM +0100, Jiri Olsa wrote: > On Tue, Jan 03, 2017 at 01:00:29AM -0800, Andi Kleen wrote: > > SNIP > > > + len = grab_bb(buffer, start, end, > > + machine, thread, &x.is64bit, > > + &x.cpumode); > > +

Re: [PATCH 4/4] perf, tools, script: Add brstackasm output for branch stacks

2017-01-08 Thread Jiri Olsa
On Tue, Jan 03, 2017 at 01:00:29AM -0800, Andi Kleen wrote: > From: Andi Kleen > SNIP > --- > tools/perf/Documentation/perf-script.txt | 13 +- > tools/perf/builtin-script.c | 262 > +++ > 2 files changed, 273 insertions(+), 2 deletions(-) > > diff -

Re: [PATCH 4/4] perf, tools, script: Add brstackasm output for branch stacks

2017-01-08 Thread Jiri Olsa
On Tue, Jan 03, 2017 at 01:00:29AM -0800, Andi Kleen wrote: SNIP > + len = grab_bb(buffer, start, end, > + machine, thread, &x.is64bit, > + &x.cpumode); > + /* Patch up missing kernel transfers due to ring filters */

[PATCH 4/4] perf, tools, script: Add brstackasm output for branch stacks

2017-01-03 Thread Andi Kleen
From: Andi Kleen Implement printing full disassembled sequences for branch stacks in perf script. This allows to directly print hot paths for individual samples, together with branch misprediction and cycle count / IPC information if available (on Skylake systems) % perf record -b ... % perf scr

[PATCH 4/4] perf, tools, script: Add brstackasm output for branch stacks

2016-03-25 Thread Andi Kleen
From: Andi Kleen Implement printing full disassembled sequences for branch stacks in perf script. This allows to directly print hot paths for individual samples, together with branch misprediction and even cycle count information. % perf record -b ... % perf script -F brstackasm ...