]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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>
Wed, 18 Nov 2020 18:22:33 +0000 (19:22 +0100)
commit bb1860efc817c18fce4112f25f51043e44346d1b upstream.

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 be591b557df9438f410e6cc6ba35c16708a4d417..75379184f391b186816f8fe50238a762d9e92ecb 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;