coresight: etm: perf: Sink selection using sysfs is deprecated
authorLinu Cherian <lcherian@marvell.com>
Wed, 16 Sep 2020 19:17:34 +0000 (13:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 16:46:04 +0000 (18:46 +0200)
When using the perf interface, sink selection using sysfs is
deprecated.

Signed-off-by: Linu Cherian <lcherian@marvell.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200916191737.4001561-14-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm-perf.c

index 9d61a71..b4e5758 100644 (file)
@@ -222,8 +222,6 @@ static void *etm_setup_aux(struct perf_event *event, void **pages,
        if (event->attr.config2) {
                id = (u32)event->attr.config2;
                sink = coresight_get_sink_by_id(id);
-       } else {
-               sink = coresight_get_enabled_sink(true);
        }
 
        mask = &event_data->mask;