Re: [PATCH] perf/core: Add macros for possible sysctl_perf_event_paranoid values

From: Anshuman Khandual
Date: Mon Jul 11 2022 - 23:04:15 EST




On 7/11/22 17:49, Peter Zijlstra wrote:
> On Mon, Jul 11, 2022 at 02:55:12PM +0530, Anshuman Khandual wrote:
>> Enumerating [-1, 0, 1, 2] paranoid range values in kernel too, does not add
>> much value as well ?
>
> That's what the user-interface requires as well. How is obscuring the
> values the user has to explicitly poke in help things?

Right, users still have the write raw numbers into the sysfs file.