5 #include "../util/cache.h" 6 #include "../util/debug.h" 7 #include "../util/hist.h" 8 #include "../util/util.h" 10 pthread_mutex_t
ui__lock = PTHREAD_MUTEX_INITIALIZER;
14 #define PERF_GTK_DSO "libperf-gtk.so" 16 #ifdef HAVE_GTK2_SUPPORT 20 int (*perf_ui_init)(void);
28 scnprintf(buf,
sizeof(buf),
"%s/%s", LIBDIR,
PERF_GTK_DSO);
35 if (perf_ui_init == NULL)
38 if (perf_ui_init() == 0)
48 void (*perf_ui_exit)(bool);
54 if (perf_ui_exit == NULL)
57 perf_ui_exit(wait_for_ok);
70 const char *mode,
int unset __maybe_unused)
89 printf(
"GTK browser requested but could not find %s\n",
100 if (fallback_to_pager)
int stdio__config_color(const struct option *opt __maybe_unused, const char *mode, int unset __maybe_unused)
int perf_config_colorbool(const char *var, const char *value, int stdout_is_tty)
void setup_browser(bool fallback_to_pager)
static void exit_gtk_browser(bool wait_for_ok __maybe_unused)
void exit_browser(bool wait_for_ok)
void ui__exit(bool wait_for_ok)
static int setup_gtk_browser(void)
int perf_use_color_default