Make perf script easier to use for itrace

2018-09-20 Thread Andi Kleen
Implement a range of improvements to make it easier to look at itrace traces with perf script. Nothing here couldn't be done before with some additional scripting, but add simple high level options to make it easier to use. % perf record -e intel_pt//k -a sleep 1 Show function calls: % perf scr

Make perf script easier to use for itrace

2018-09-18 Thread Andi Kleen
Implement a range of improvements to make it easier to look at itrace traces with perf script. Nothing here couldn't be done before with some additional scripting, but add simple high level options to make it easier to use. % perf record -e intel_pt//k -a sleep 1 Show function calls: % perf scr

Make perf script easier to use for itrace

2018-09-13 Thread Andi Kleen
Implement a range of improvements to make it easier to look at itrace traces with perf script. Nothing here couldn't be done before with some additional scripting, but add simple high level options to make it easier to use. % perf record -e intel_pt//k -a sleep 1 Show function calls: % perf scr

Make perf script easier to use for itrace

2018-09-03 Thread Andi Kleen
Implement a range of improvements to make it easier to look at itrace traces with perf script. Nothing here couldn't be done before with some additional scripting, but add simple high level options to make it easier to use. % perf record -e intel_pt//k -a sleep 1 Show function calls: % perf scr

Re: Make perf script easier to use for itrace

2018-09-03 Thread Andi Kleen
> (Ubuntu 18.04): > > builtin-script.c: In function ‘parse_output_fields’: > builtin-script.c:2571:22: error: array subscript is above array bounds > [-Werror=array-bounds] > output[j].fields &= ~all_output_options[i].field; > ^~ > builtin-script.c:2571:22: error: array

Re: Make perf script easier to use for itrace

2018-09-03 Thread Jiri Olsa
On Fri, Aug 31, 2018 at 03:01:56PM -0700, Andi Kleen wrote: SNIP > perf 900 [000] 194167.205652203: ([kernel.kallsyms]) > calc_timer_values > perf 900 [000] 194167.205652203: ([kernel.kallsyms]) > sched_cl

Re: Make perf script easier to use for itrace

2018-09-03 Thread Jiri Olsa
On Fri, Aug 31, 2018 at 05:54:53PM -0500, Kim Phillips wrote: > On Fri, 31 Aug 2018 15:01:56 -0700 > Andi Kleen wrote: > > > Also available in > > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git > > pt/easy-script-2 > > > > v1: Initial post > > v2: Address review comments. Minor

Re: Make perf script easier to use for itrace

2018-08-31 Thread Kim Phillips
On Fri, 31 Aug 2018 15:01:56 -0700 Andi Kleen wrote: > Also available in > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git > pt/easy-script-2 > > v1: Initial post > v2: Address review comments. Minor fixes to descriptions. Now builds > everywhere. OK, I grabbed the pt/easy-scr

Make perf script easier to use for itrace

2018-08-31 Thread Andi Kleen
Implement a range of improvements to make it easier to look at itrace traces with perf script. Nothing here couldn't be done before with some additional scripting, but add simple high level options to make it easier to use. % perf record -e intel_pt//k -a sleep 1 Show function calls: % perf scr

Re: Make perf script easier to use for itrace

2018-08-30 Thread Jiri Olsa
On Wed, Aug 29, 2018 at 10:18:24AM -0700, Andi Kleen wrote: SNIP > > Filter by a ftrace style graph function: > > % perf script --graph-function group_sched_in --call-trace > perf 900 [000] 194167.205652203: ([kernel.kallsyms]) > group_sched_in > per

Make perf script easier to use for itrace

2018-08-29 Thread Andi Kleen
Implement a range of improvements to make it easier to look at itrace traces with perf script. Nothing here couldn't be done before with some additional scripting, but add simple high level options to make it easier to use. % perf record -e intel_pt//k -a sleep 1 Show function calls: % perf scr