aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2013-12-20 00:11:13 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-12-20 11:36:41 -0500
commit150e465ac99ed18fb9555c16e0def7ce01913a2a (patch)
tree40bd084ccbcbdcb3915c062cf1ff6fcce2a86d2f
parenta42101418072d3be357b534521be2849518611e6 (diff)
perf report: Print session information only if --stdio is given
Move those print functions under "if (use_browser == 0)" so that they don't interfere with TUI output. Maybe they can handle other UIs later. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1387516278-17024-3-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/builtin-report.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 0c9ec3e3f0fc..bf8dd2e893e4 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -469,15 +469,17 @@ static int __cmd_report(struct report *rep)
469 desc); 469 desc);
470 } 470 }
471 471
472 if (verbose > 3) 472 if (use_browser == 0) {
473 perf_session__fprintf(session, stdout); 473 if (verbose > 3)
474 perf_session__fprintf(session, stdout);
474 475
475 if (verbose > 2) 476 if (verbose > 2)
476 perf_session__fprintf_dsos(session, stdout); 477 perf_session__fprintf_dsos(session, stdout);
477 478
478 if (dump_trace) { 479 if (dump_trace) {
479 perf_session__fprintf_nr_events(session, stdout); 480 perf_session__fprintf_nr_events(session, stdout);
480 return 0; 481 return 0;
482 }
481 } 483 }
482 484
483 nr_samples = 0; 485 nr_samples = 0;