Commit ea1992f3 authored by James Clark's avatar James Clark Committed by Peter Zijlstra

perf/x86/intel/bts: Fix comment about default perf_event_paranoid setting

The default paranoid setting was updated in commit 0161028b
("perf/core: Change the default paranoia level to 2") so this comment is
no longer true.
Signed-off-by: default avatarJames Clark <james.clark@linaro.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20240802105256.335961-1-james.clark@linaro.org
parent aaad0e2a
......@@ -557,9 +557,6 @@ static int bts_event_init(struct perf_event *event)
* disabled, so disallow intel_bts driver for unprivileged
* users on paranoid systems since it provides trace data
* to the user in a zero-copy fashion.
*
* Note that the default paranoia setting permits unprivileged
* users to profile the kernel.
*/
if (event->attr.exclude_kernel) {
ret = perf_allow_kernel(&event->attr);
......
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