summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/ui
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-01-31 18:08:39 -0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-31 18:08:39 -0200
commit229ade9ba36341f7369ecb4f134bcec9133520bf (patch)
tree34a691fe2862d5686c48a684c2ab0c42eb8991e4 /tools/perf/util/ui
parent8c3e10eb1968877d6a1957b7e790c6ce01bd56fc (diff)
downloadtalos-obmc-linux-229ade9ba36341f7369ecb4f134bcec9133520bf.tar.gz
talos-obmc-linux-229ade9ba36341f7369ecb4f134bcec9133520bf.zip
perf tools: Don't fallback to setup_pager unconditionally
Because in tools like 'top' we don't want the pager. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/ui')
-rw-r--r--tools/perf/util/ui/setup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/ui/setup.c b/tools/perf/util/ui/setup.c
index 662085032eb7..fbf1a145492f 100644
--- a/tools/perf/util/ui/setup.c
+++ b/tools/perf/util/ui/setup.c
@@ -14,11 +14,12 @@ static void newt_suspend(void *d __used)
newtResume();
}
-void setup_browser(void)
+void setup_browser(bool fallback_to_pager)
{
if (!isatty(1) || !use_browser || dump_trace) {
use_browser = 0;
- setup_pager();
+ if (fallback_to_pager)
+ setup_pager();
return;
}
OpenPOWER on IntegriCloud