Re: [PATCH 1/2] perfcounters: Print the filename:line for annotated colored lines

Frederic Weisbecker
2009-06-13T12:35:21Z

On Sat, Jun 13, 2009 at 01:12:48PM +0200, Ingo Molnar wrote:
>
> hm, -l doesnt work so well if a user-space binary (in this case the
> 'git' binary of the Git project) is profiled:

Oops, sorry. Would you prefer the fix as a delta or..?

Thanks,
Frederic.

>
> aldebaran:~/git> perf record -f ./git gc
> Counting objects: 1148, done.
> Delta compression using up to 16 threads.
> Compressing objects: 100% (450/450), done.
> Writing objects: 100% (1148/1148), done.
> Total 1148 (delta 690), reused 1148 (delta 690)
> [ perf record: Captured and wrote 1.649 MB perf.data (~72032 samples) ]
>
> aldebaran:~/git> perf annotate -l lookup_object
>
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
> addr2line: 'vmlinux': No such file
>
> ------------------------------------------------
> Percent | Source code & Disassembly of /home/mingo/git/git-update-server-info
> ------------------------------------------------
> :
> : /home/mingo/git/git-update-server-info: file format elf64-x86-64
> :
> :
> : Disassembly of section .text:
> :
> : 00000000004160f0 <lookup_object>:
> : memcpy(&i, sha1, sizeof(unsigned int));
> : return (int)(i % obj_hash_size);
> : }
>
> Ingo