diff options
author | Namhyung Kim <namhyung@kernel.org> | 2013-09-13 02:27:43 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-09 14:55:25 -0400 |
commit | fc67297b16da335d610af2fac96233d51146300a (patch) | |
tree | f015cca3a70970e48b69b8fbb5c98a75c8911eca /tools/perf/util/hist.h | |
parent | fc2be6968e99b5314f20e938a547d44dcb1c40eb (diff) |
perf tools: Separate out GTK codes to libperf-gtk.so
Separate out GTK codes to a shared object called libperf-gtk.so. This
time only GTK codes are built with -fPIC and libperf remains as is. Now
run GTK hist and annotation browser using libdl.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1379053663-13706-1-git-send-email-namhyung@kernel.org
[ Fix it up wrt Ingo's tools/perf build speedups ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index ed4f90ebe0d5..20b175808cd3 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -228,20 +228,5 @@ static inline int script_browse(const char *script_opt __maybe_unused) | |||
228 | #define K_SWITCH_INPUT_DATA -3000 | 228 | #define K_SWITCH_INPUT_DATA -3000 |
229 | #endif | 229 | #endif |
230 | 230 | ||
231 | #ifdef HAVE_GTK2_SUPPORT | ||
232 | int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist, const char *help, | ||
233 | struct hist_browser_timer *hbt __maybe_unused, | ||
234 | float min_pcnt); | ||
235 | #else | ||
236 | static inline | ||
237 | int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist __maybe_unused, | ||
238 | const char *help __maybe_unused, | ||
239 | struct hist_browser_timer *hbt __maybe_unused, | ||
240 | float min_pcnt __maybe_unused) | ||
241 | { | ||
242 | return 0; | ||
243 | } | ||
244 | #endif | ||
245 | |||
246 | unsigned int hists__sort_list_width(struct hists *self); | 231 | unsigned int hists__sort_list_width(struct hists *self); |
247 | #endif /* __PERF_HIST_H */ | 232 | #endif /* __PERF_HIST_H */ |