Commit bb1860ef authored by Linu Cherian's avatar Linu Cherian Committed by Greg Kroah-Hartman

coresight: etm: perf: Sink selection using sysfs is deprecated

When using the perf interface, sink selection using sysfs is
deprecated.
Signed-off-by: default avatarLinu Cherian <lcherian@marvell.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200916191737.4001561-14-mathieu.poirier@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2fee15c1
...@@ -222,8 +222,6 @@ static void *etm_setup_aux(struct perf_event *event, void **pages, ...@@ -222,8 +222,6 @@ static void *etm_setup_aux(struct perf_event *event, void **pages,
if (event->attr.config2) { if (event->attr.config2) {
id = (u32)event->attr.config2; id = (u32)event->attr.config2;
sink = coresight_get_sink_by_id(id); sink = coresight_get_sink_by_id(id);
} else {
sink = coresight_get_enabled_sink(true);
} }
mask = &event_data->mask; mask = &event_data->mask;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment