diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-11 22:45:41 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 10:37:43 -0200 |
commit | 10d0f086df77f3ff259b46cb501362dbaf2c7989 (patch) | |
tree | 69c8d8ccca5545c524abe0ac52a149e78fbc279f /tools/perf/util/session.h | |
parent | 81e36bffad95e015af9741b5b1ee16afe08aab05 (diff) | |
download | op-kernel-dev-10d0f086df77f3ff259b46cb501362dbaf2c7989.zip op-kernel-dev-10d0f086df77f3ff259b46cb501362dbaf2c7989.tar.gz |
perf event: perf_event_ops->attr() manipulates only an evlist
Removing another case where a perf_session is required when processing
events.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-ug1wtjbnva4bxwknflkkrlrh@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r-- | tools/perf/util/session.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index 76d462d..13bd5e0 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h @@ -63,6 +63,8 @@ typedef int (*event_op)(union perf_event *self, struct perf_sample *sample, struct perf_session *session); typedef int (*event_synth_op)(union perf_event *self, struct perf_session *session); +typedef int (*event_attr_op)(union perf_event *event, + struct perf_evlist **pevlist); typedef int (*event_op2)(union perf_event *self, struct perf_session *session, struct perf_event_ops *ops); @@ -76,8 +78,8 @@ struct perf_event_ops { read, throttle, unthrottle; - event_synth_op attr, - event_type, + event_attr_op attr; + event_synth_op event_type, tracing_data, build_id; event_op2 finished_round; |