[lkml]   [2010]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH v3] perf tools: Add symfs option for off-box analysis using specified tree
    Em Tue, Dec 14, 2010 at 07:27:42AM -0700, David S. Ahern escreveu:
    > On 12/14/10 05:52, Arnaldo Carvalho de Melo wrote:
    > > Em Tue, Dec 14, 2010 at 10:24:28AM -0200, Arnaldo Carvalho de Melo escreveu:
    > I was not aware of realpath. Simple change to symbol__init?

    I made symbol__init use realpath to reduce the arg to --symfs.

    > > [acme@mica linux]$ find /tmp/bla
    > > /tmp/bla
    > > /tmp/bla/lib64
    > > /tmp/bla/lib64/
    > > [acme@mica linux]$ perf report -v -g none --stdio --symfs /tmp/bla > /tmp/out
    > > Looking at the vmlinux_path (3 entries long)
    > > Failed to open [kernel.kallsyms], continuing without symbols
    > > dso__synthesize_plt_symbols: problems reading /home/acme/bin/perf PLT info.
    > > [acme@mica linux]$ cat /tmp/out

    > strace -e trace=open /tmp/build-perf/perf report -v --symfs /tmp/f14-mnt
    > -i /tmp/

    > does not show any attempts to open a file not starting with the symfs path.

    Probably because all the files you need are in the directories you
    passed to --symfs, remove one and it will leak.

    Anyway, fixed in my perf/core branch, still not propagated from
    master.k.o to git.k.o :-\

    - Arnaldo

     \ /
      Last update: 2010-12-14 15:39    [W:0.023 / U:56.200 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site