Commit 150e465a authored by Namhyung Kim's avatar Namhyung Kim Committed by Arnaldo Carvalho de Melo

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: default avatarNamhyung 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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent a4210141
......@@ -469,6 +469,7 @@ static int __cmd_report(struct report *rep)
desc);
}
if (use_browser == 0) {
if (verbose > 3)
perf_session__fprintf(session, stdout);
......@@ -479,6 +480,7 @@ static int __cmd_report(struct report *rep)
perf_session__fprintf_nr_events(session, stdout);
return 0;
}
}
nr_samples = 0;
list_for_each_entry(pos, &session->evlist->entries, node)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment