Messages in this thread | | | Date | Sat, 13 Jun 2009 13:12:48 +0200 | From | Ingo Molnar <> | Subject | Re: [PATCH 1/2] perfcounters: Print the filename:line for annotated colored lines |
| |
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
| |