]> Git Repo - linux.git/commitdiff
perf trace: Don't use pager if scripting
authorTom Zanussi <[email protected]>
Wed, 3 Mar 2010 07:04:33 +0000 (01:04 -0600)
committerIngo Molnar <[email protected]>
Thu, 4 Mar 2010 11:19:55 +0000 (12:19 +0100)
It's useful for paging through raw traces, but just gets in the
way when scripting.

Signed-off-by: Tom Zanussi <[email protected]>
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <1267599873[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
tools/perf/builtin-trace.c

index b8153db5a9eb0e2ec34f024b5402b825555eb050..407041d20de065027e9f2a32eff7b5e6a078419c 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)
This page took 0.054723 seconds and 4 git commands to generate.