Re: [PATCH 2/7] perf script: Add an option to print the source line number

2013-12-03 Thread David Ahern
On 12/3/13, 12:23 AM, Adrian Hunter wrote: @@ -348,6 +355,24 @@ static void print_sample_start(struct perf_sample *sample, } } +static void print_sample_finish(struct perf_evsel *evsel, + struct addr_location *al) +{ + struct perf_event_attr *attr =

Re: [PATCH 2/7] perf script: Add an option to print the source line number

2013-12-03 Thread David Ahern
On 12/3/13, 9:04 AM, David Ahern wrote: What about callchains? I think you can handle callcahins and IP by moving the srcline printing into perf_evsel__print_ip() and adding a PRINT_IP_OPT_SRCLINE option. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

[PATCH 2/7] perf script: Add an option to print the source line number

2013-12-02 Thread Adrian Hunter
Add field 'srcline' that displays the source file name and line number associated with the sample ip. The information displayed is the same as from addr2line. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/perf-script.txt | 2 +- tools/perf/builtin-script.c | 29 +++