[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-cf4fee50282312528e1f8adf73b1831d1d6ae389@git.kernel.org>
Date: Thu, 4 Mar 2010 16:34:10 GMT
From: tip-bot for Tom Zanussi <tzanussi@...il.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
tzanussi@...il.com, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:perf/pebs] perf trace: Don't use pager if scripting
Commit-ID: cf4fee50282312528e1f8adf73b1831d1d6ae389
Gitweb: http://git.kernel.org/tip/cf4fee50282312528e1f8adf73b1831d1d6ae389
Author: Tom Zanussi <tzanussi@...il.com>
AuthorDate: Wed, 3 Mar 2010 01:04:33 -0600
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Thu, 4 Mar 2010 12:19:55 +0100
perf trace: Don't use pager if scripting
It's useful for paging through raw traces, but just gets in the
way when scripting.
Signed-off-by: Tom Zanussi <tzanussi@...il.com>
Cc: fweisbec@...il.com
Cc: rostedt@...dmis.org
LKML-Reference: <1267599873-8193-3-git-send-email-tzanussi@...il.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
tools/perf/builtin-trace.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index b8153db..407041d 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists