2014-04-25 11:09:50

by Pekka Enberg

[permalink] [raw]
Subject: [PROBLEM] perf report --gtk doesn't work

Hello,

I'm seeing the following with v3.15-rc2:

$ ~/bin/perf report --gtk
GTK browser requested but could not find libperf-gtk.so

The library file is in $HOME/lib64 and perf attempts to look it up.
However, printing out dlerror() output shows the following:

[penberg@localhost hornet]$ ~/bin/perf report --gtk
/home/penberg/lib64/libperf-gtk.so: undefined symbol: sort_sym
GTK browser requested but could not find libperf-gtk.so

I'm not sure how this is supposed to work. sort_sym() is defined in
the 'perf' executable so how is libperf-gtk.so going to see it?

- Pekka


2014-04-28 01:16:39

by Namhyung Kim

[permalink] [raw]
Subject: Re: [PROBLEM] perf report --gtk doesn't work

Hi Pekka,

On Fri, 25 Apr 2014 14:09:45 +0300, Pekka Enberg wrote:
> Hello,
>
> I'm seeing the following with v3.15-rc2:
>
> $ ~/bin/perf report --gtk
> GTK browser requested but could not find libperf-gtk.so
>
> The library file is in $HOME/lib64 and perf attempts to look it up.
> However, printing out dlerror() output shows the following:
>
> [penberg@localhost hornet]$ ~/bin/perf report --gtk
> /home/penberg/lib64/libperf-gtk.so: undefined symbol: sort_sym
> GTK browser requested but could not find libperf-gtk.so

Hmm.. strange. On my system, it works perfectly..

>
> I'm not sure how this is supposed to work. sort_sym() is defined in
> the 'perf' executable so how is libperf-gtk.so going to see it?

I'm also not sure.. maybe linker finds the symbol in the executable in
case of dlopen()?

Thanks,
Namhyung