perf trace: Don't use pager if scripting
Tom Zanussi [Wed, 3 Mar 2010 07:04:33 +0000 (01:04 -0600)]
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>

tools/perf/builtin-trace.c

index b8153db..407041d 100644 (file)
@@ -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)