Re: [PATCH -tip v4 0/7] perf: Introduce branch sub commands

From: Akihiro Nagai
Date: Fri Jun 10 2011 - 00:30:57 EST


(2011/05/31 0:26), David Ahern wrote:
On 05/30/2011 07:31 AM, Akihiro Nagai wrote:
The sample address can be converted to symbols and the output can be
added to perf-script rather easily. Attached is an example. I was going
to submit it back in April and got distracted. I'll rebase, move the
addr->sym conversion to a function and submit later today.
OK.
I agreed with implementing it on perf script.
I'd like to try it.

Updated patch. It applies on top of:
http://lkml.org/lkml/2011/5/27/385
It looks good.


Hopefully for BTS you only have to change the sample_addr_correlates_sym
function.
Yes.
I'd like to enhance perf-script like this:

# perf script -f ip,addr,comm,sym,dso

output format is:
<comm> <ip> <sym_ip> <dso_ip> <addr> <sym_addr> <dso_addr>

actual output sample is:
ls 0xffffffff81460b92 common_interrupt /lib/modules/3.0/build/vmlinux 0x0000003e9b000b20 _start /lib64/ld-2.13.so
ls 0x0000003e9b000b23 _start /lib64/ld-2.13.so 0x0000003e9b004540 _dl_start /lib64/ld-2.13.so
...

By specifying 'ip' and 'addr' together, perf-script resolves
symbol and dso's path about both of 'ip' and 'addr'.


I still need to look into out why some of the addresses for page-faults
are not resolving to symbols.
I'd like to improve it referring perf branch's source codes.

Thank you.


David
--
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/