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

From: Ingo Molnar
Date: Sat Jun 13 2009 - 07:13:14 EST



hm, -l doesnt work so well if a user-space binary (in this case the
'git' binary of the Git project) is profiled:

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