lkml.org 
[lkml]   [2013]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf tools: Separate out GTK codes to libperf-gtk.so
On Thu, Sep 12, 2013 at 03:34:19PM +0900, Namhyung Kim wrote:
> Separate out GTK codes to a shared object called libperf-gtk.so. This

SNIP

> pthread_mutex_t ui__lock = PTHREAD_MUTEX_INITIALIZER;
> +void *perf_gtk_handle;
> +
> +#ifdef GTK2_SUPPORT
> +static int setup_gtk_browser(void)
> +{
> + int (*perf_ui_init)(void);
> +
> + if (perf_gtk_handle)
> + return 0;
> +
> + perf_gtk_handle = dlopen("libperf-gtk.so", RTLD_LAZY);
> + if (perf_gtk_handle == NULL)
> + return -1;

shouldn't we try for known installed path here?

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

otherwise I need to do some ld.conf setup or run it like this:

LD_LIBRARY_PATH=/home/jolsa/lib64/ ./perf report --gtk
LD_LIBRARY_PATH=./ ./perf report --gtk

jirka


\
 
 \ /
  Last update: 2013-09-12 15:01    [W:0.154 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site