lkml.org 
[lkml]   [2009]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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


    \
     
     \ /
      Last update: 2009-06-13 13:15    [W:8.527 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site