Skip to content

Commit

Permalink
perf trace: Don't use pager if scripting
Browse files Browse the repository at this point in the history
It's useful for paging through raw traces, but just gets in the
way when scripting.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: fweisbec@gmail.com
Cc: rostedt@goodmis.org
LKML-Reference: <1267599873-8193-3-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Tom Zanussi authored and Ingo Molnar committed Mar 4, 2010
1 parent 10c95f4 commit cf4fee5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/perf/builtin-trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,8 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used)

if (symbol__init() < 0)
return -1;
setup_pager();
if (!script_name)
setup_pager();

session = perf_session__new(input_name, O_RDONLY, 0);
if (session == NULL)
Expand Down

0 comments on commit cf4fee5

Please sign in to comment.