aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/tool.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-03-03 10:37:54 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-03-12 11:39:49 -0400
commitd704ebdae4aaeec89180dcfd0ca74e5bba318853 (patch)
treefeb48de01669999de08213cde76525c222ef9634 /tools/perf/util/tool.h
parentd10eb1eb76a86266354ecab6e42c1606e3b8bc4c (diff)
perf tools: tool->finished_round() doesn't need perf_session
It is all about flushing the ordered queue or piping it thru, no need for a perf_session pointer. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-g47fx3ys0t9271cp0dcabjc7@git.kernel.org 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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/util/tool.h b/tools/perf/util/tool.h
index bb2708bbfaca..51d9e56c0f84 100644
--- a/tools/perf/util/tool.h
+++ b/tools/perf/util/tool.h
@@ -10,6 +10,7 @@ struct perf_evsel;
10struct perf_sample; 10struct perf_sample;
11struct perf_tool; 11struct perf_tool;
12struct machine; 12struct machine;
13struct ordered_events;
13 14
14typedef int (*event_sample)(struct perf_tool *tool, union perf_event *event, 15typedef int (*event_sample)(struct perf_tool *tool, union perf_event *event,
15 struct perf_sample *sample, 16 struct perf_sample *sample,
@@ -25,6 +26,9 @@ typedef int (*event_attr_op)(struct perf_tool *tool,
25typedef int (*event_op2)(struct perf_tool *tool, union perf_event *event, 26typedef int (*event_op2)(struct perf_tool *tool, union perf_event *event,
26 struct perf_session *session); 27 struct perf_session *session);
27 28
29typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event,
30 struct ordered_events *oe);
31
28struct perf_tool { 32struct perf_tool {
29 event_sample sample, 33 event_sample sample,
30 read; 34 read;
@@ -38,8 +42,8 @@ struct perf_tool {
38 unthrottle; 42 unthrottle;
39 event_attr_op attr; 43 event_attr_op attr;
40 event_op2 tracing_data; 44 event_op2 tracing_data;
41 event_op2 finished_round, 45 event_oe finished_round;
42 build_id, 46 event_op2 build_id,
43 id_index; 47 id_index;
44 bool ordered_events; 48 bool ordered_events;
45 bool ordering_requires_timestamps; 49 bool ordering_requires_timestamps;