diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-02 09:23:43 +0300 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-02 09:23:43 +0300 | 
| commit | 16ecf49c10a1e8ecf917f91b93dd85624349e930 (patch) | |
| tree | f05d0a17219ae9173c45deee57b06e807632c6d0 /tools/perf/builtin-annotate.c | |
| parent | 708d0bff9121506db08adb73845a3c70312fadf3 (diff) | |
| parent | 021c91791a5e7e85c567452f1be3e4c2c6cb6063 (diff) | |
| download | linux-16ecf49c10a1e8ecf917f91b93dd85624349e930.tar.xz | |
Merge 4.18-rc3 into tty-next
We want ths tty core changes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
| -rw-r--r-- | tools/perf/builtin-annotate.c | 11 | 
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,  		},  | 
