diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-04-30 00:55:08 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-02 15:17:34 -0400 |
commit | 281ef544a8476f750b9f378593c42b3e8a0b8788 (patch) | |
tree | 685e23ed105380b167a36ccac54130c42aaf38c9 /tools/perf/builtin-report.c | |
parent | 28e62b90d95a4ed8ae2ba93879003665051581a6 (diff) |
perf ui: Add gtk2 support into setup_browser()
Now setup_browser can handle gtk2 front-end so split the TUI code to
ui/tui/setup.c in order to remove dependency.
To this end, make ui__init/exit global symbols and take an argument.
Also split gtk code to ui/gtk/setup.c.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.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/1335761711-31403-5-git-send-email-namhyung.kim@lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 06115ffaa0b4..5df829f5bbf4 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -676,14 +676,10 @@ int cmd_report(int argc, const char **argv, const char *prefix __used) | |||
676 | 676 | ||
677 | } | 677 | } |
678 | 678 | ||
679 | if (strcmp(report.input_name, "-") != 0) { | 679 | if (strcmp(report.input_name, "-") != 0) |
680 | if (report.use_gtk) | 680 | setup_browser(true); |
681 | perf_gtk__setup_browser(true); | 681 | else |
682 | else | ||
683 | setup_browser(true); | ||
684 | } else { | ||
685 | use_browser = 0; | 682 | use_browser = 0; |
686 | } | ||
687 | 683 | ||
688 | /* | 684 | /* |
689 | * Only in the newt browser we are doing integrated annotation, | 685 | * Only in the newt browser we are doing integrated annotation, |