Skip to content

Commit

Permalink
perf trace/scripting: Remove extraneous header read
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tom Zanussi authored and Ingo Molnar committed Mar 4, 2010
1 parent da7196e commit 10c95f4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/perf/builtin-trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 10c95f4

Please sign in to comment.