commit | 29f5ffd3d3ff9abdfc98928f7c4cb4097cefe434 | [log] [tgz] |
---|---|---|
author | Jiri Olsa <[email protected]> | Tue Dec 03 14:09:23 2013 +0100 |
committer | Arnaldo Carvalho de Melo <[email protected]> | Wed Dec 04 15:20:52 2013 -0300 |
tree | 92d0e87f316562c7e641473798d46165e6681688 | |
parent | cef82c9f5a3deab94c1f1f02cfc25213844852ed [diff] [blame] |
perf tools: Add trace-event object Add trace-event object to keep together 'struct pevent' object with its loaded plugins with following interface: int trace_event__init(struct trace_event *t); - Initalizes 'struct pevent' object and loads plugins for it void trace_event__cleanup(struct trace_event *t); - Cleanups both 'struct pevent' and plugins Signed-off-by: Jiri Olsa <[email protected]> Cc: Corey Ashford <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index c555bdd..4484886 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c
@@ -1786,7 +1786,7 @@ return -1; } - err = scripting_ops->generate_script(session->pevent, + err = scripting_ops->generate_script(session->tevent.pevent, "perf-script"); goto out; }