summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.com>2018-07-06 13:34:13 -0300
committerGustavo Padovan <gustavo.padovan@collabora.com>2018-07-06 13:34:13 -0300
commite22e953189f7b3a3bfc7efb511d2b1d1454adde5 (patch)
tree87e56e966e1f676f2c9389c41aa5c37969f757f1 /tools/perf/builtin-annotate.c
parenta012024571d98e2e4bf29a9168fb7ddc44b7ab86 (diff)
parent4da1d4c751c9b1b713c13043bad7c4d27cd1418c (diff)
downloadtalos-op-linux-e22e953189f7b3a3bfc7efb511d2b1d1454adde5.tar.gz
talos-op-linux-e22e953189f7b3a3bfc7efb511d2b1d1454adde5.zip
Merge drm-upstream/drm-next into drm-misc-next
Pull in the malidp writeback implementation for further work on writeback in drm-misc-next. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 5eb22cc56363..8180319285af 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -283,6 +283,15 @@ out_put:
return ret;
}
+static int process_feature_event(struct perf_tool *tool,
+ union perf_event *event,
+ struct perf_session *session)
+{
+ if (event->feat.feat_id < HEADER_LAST_FEATURE)
+ return perf_event__process_feature(tool, event, session);
+ return 0;
+}
+
static int hist_entry__tty_annotate(struct hist_entry *he,
struct perf_evsel *evsel,
struct perf_annotate *ann)
@@ -471,7 +480,7 @@ int cmd_annotate(int argc, const char **argv)
.attr = perf_event__process_attr,
.build_id = perf_event__process_build_id,
.tracing_data = perf_event__process_tracing_data,
- .feature = perf_event__process_feature,
+ .feature = process_feature_event,
.ordered_events = true,
.ordering_requires_timestamps = true,
},
OpenPOWER on IntegriCloud