diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2013-07-04 09:20:21 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-07-12 12:52:49 -0400 |
commit | 47c3d1091cb68e727b840efd6fa3709d5b1ddfc2 (patch) | |
tree | 0bf0d6b01a9df92162cc37ae3a7551b660c0935d /tools/perf/util/tool.h | |
parent | 63c2c9f8f24378ebf46d4a9d542863bb733ef05c (diff) |
perf tools: Fix missing tool parameter
The 'inject' command expects to get a reference to 'struct perf_inject'
from its 'tool' member. For that to work, 'tool' needs to be a
parameter of all tool callbacks. Make it so.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1372944040-32690-3-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/tool.h')
-rw-r--r-- | tools/perf/util/tool.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/perf/util/tool.h b/tools/perf/util/tool.h index b0e1aadba8d5..88f8cbdb8a34 100644 --- a/tools/perf/util/tool.h +++ b/tools/perf/util/tool.h | |||
@@ -18,12 +18,11 @@ typedef int (*event_sample)(struct perf_tool *tool, union perf_event *event, | |||
18 | typedef int (*event_op)(struct perf_tool *tool, union perf_event *event, | 18 | typedef int (*event_op)(struct perf_tool *tool, union perf_event *event, |
19 | struct perf_sample *sample, struct machine *machine); | 19 | struct perf_sample *sample, struct machine *machine); |
20 | 20 | ||
21 | typedef int (*event_attr_op)(union perf_event *event, | 21 | typedef int (*event_attr_op)(struct perf_tool *tool, |
22 | union perf_event *event, | ||
22 | struct perf_evlist **pevlist); | 23 | struct perf_evlist **pevlist); |
23 | typedef int (*event_simple_op)(struct perf_tool *tool, union perf_event *event); | ||
24 | 24 | ||
25 | typedef int (*event_synth_op)(union perf_event *event, | 25 | typedef int (*event_simple_op)(struct perf_tool *tool, union perf_event *event); |
26 | struct perf_session *session); | ||
27 | 26 | ||
28 | typedef int (*event_op2)(struct perf_tool *tool, union perf_event *event, | 27 | typedef int (*event_op2)(struct perf_tool *tool, union perf_event *event, |
29 | struct perf_session *session); | 28 | struct perf_session *session); |
@@ -39,7 +38,7 @@ struct perf_tool { | |||
39 | throttle, | 38 | throttle, |
40 | unthrottle; | 39 | unthrottle; |
41 | event_attr_op attr; | 40 | event_attr_op attr; |
42 | event_synth_op tracing_data; | 41 | event_op2 tracing_data; |
43 | event_simple_op event_type; | 42 | event_simple_op event_type; |
44 | event_op2 finished_round, | 43 | event_op2 finished_round, |
45 | build_id; | 44 | build_id; |