From: Linu Cherian <lcherian@marvell.com>
To: <stable@vger.kernel.org>, <gregkh@linuxfoundation.org>
Cc: kernel test robot <lkp@intel.com>,
mathieu.poirier@linaro.org, suzuki.poulose@arm.com,
coresight@lists.linaro.org, Linu Cherian <lcherian@marvell.com>,
linuc.decode@gmail.com, linux-arm-kernel@lists.infradead.org,
mike.leach@linaro.org
Subject: [PATCH stable-5.9 1/2] coresight: etm: perf: Sink selection using sysfs is deprecated
Date: Mon, 16 Nov 2020 18:05:09 +0530 [thread overview]
Message-ID: <20201116123510.28980-1-lcherian@marvell.com> (raw)
commit bb1860efc817c18fce4112f25f51043e44346d1b upstream.
When commit 6d578258b955 ("coresight: Make sysfs functional on
topologies with per core sink")
was merged to stable, this patch was a pre-requisite and got
missed out leading to build breakages.
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>
Reported-by: kernel test robot <lkp@intel.com>
---
drivers/hwtracing/coresight/coresight-etm-perf.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c
index be591b557df9..75379184f391 100644
--- a/drivers/hwtracing/coresight/coresight-etm-perf.c
+++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
@@ -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;
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2020-11-16 12:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-16 12:35 Linu Cherian [this message]
2020-11-16 12:35 ` [PATCH stable-v5.9 2/2] coresight: Fix uninitialised pointer bug in etm_setup_aux() Linu Cherian
2020-11-17 11:45 ` [PATCH stable-5.9 1/2] coresight: etm: perf: Sink selection using sysfs is deprecated Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201116123510.28980-1-lcherian@marvell.com \
--to=lcherian@marvell.com \
--cc=coresight@lists.linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=linuc.decode@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=lkp@intel.com \
--cc=mathieu.poirier@linaro.org \
--cc=mike.leach@linaro.org \
--cc=stable@vger.kernel.org \
--cc=suzuki.poulose@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).