From: Tom Zanussi Date: Wed, 3 Mar 2010 07:04:32 +0000 (-0600) Subject: perf trace/scripting: Remove extraneous header read X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=10c95f4f41889daaa8130e0bd12209825dbe8d39;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git perf trace/scripting: Remove extraneous header read perf_header__read() is already done in perf_session__open(), so remove it from the script gen case. Signed-off-by: Tom Zanussi Cc: fweisbec@gmail.com Cc: rostedt@goodmis.org LKML-Reference: <1267599873-8193-2-git-send-email-tzanussi@gmail.com> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 5db687fc13de..b8153db5a9eb 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -608,7 +608,6 @@ int cmd_trace(int argc, const char **argv, const char *prefix __used) return -1; } - perf_header__read(&session->header, input); err = scripting_ops->generate_script("perf-trace"); goto out; }