diff options
author | Tom Zanussi <tzanussi@gmail.com> | 2010-03-03 02:04:32 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-04 06:19:54 -0500 |
commit | 10c95f4f41889daaa8130e0bd12209825dbe8d39 (patch) | |
tree | 7498ca6847199d32459944efb1dfaa5bd573f2f9 /tools/perf | |
parent | da7196e1f986c846ffa8b2ec385223fad38e8518 (diff) |
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 <tzanussi@gmail.com>
Cc: fweisbec@gmail.com
Cc: rostedt@goodmis.org
LKML-Reference: <1267599873-8193-2-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/builtin-trace.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) | |||
608 | return -1; | 608 | return -1; |
609 | } | 609 | } |
610 | 610 | ||
611 | perf_header__read(&session->header, input); | ||
612 | err = scripting_ops->generate_script("perf-trace"); | 611 | err = scripting_ops->generate_script("perf-trace"); |
613 | goto out; | 612 | goto out; |
614 | } | 613 | } |