aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2012-05-28 10:53:22 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-05-28 12:29:54 -0400
commit21f0d423b989284f82004d0f80c75581fec91fb2 (patch)
treee1e99b860748b50c254a9f54a3461ec456bcc96c /tools
parent42c59cdab42b8909454e0d434e3977cd3b636fbd (diff)
perf ui: Make --stdio default when TUI is not supported
The commit dc41b9b8f02db ("perf ui: Change fallback policy of setup_browser") changed default behavior of the function but missed setting the use_browser variable to 0 accidently. So perf report ends up doing nothing in such cases. Fix it. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1338216802-5675-1-git-send-email-namhyung@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/ui/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/ui/setup.c b/tools/perf/ui/setup.c
index 9f5f888f73e3..791fb15ce350 100644
--- a/tools/perf/ui/setup.c
+++ b/tools/perf/ui/setup.c
@@ -22,6 +22,7 @@ void setup_browser(bool fallback_to_pager)
22 break; 22 break;
23 /* fall through */ 23 /* fall through */
24 default: 24 default:
25 use_browser = 0;
25 if (fallback_to_pager) 26 if (fallback_to_pager)
26 setup_pager(); 27 setup_pager();
27 break; 28 break;