Messages in this thread | | | Subject | Re: [RFC 3/5] perf: Allow per PMU access control | From | Tvrtko Ursulin <> | Date | Fri, 28 Sep 2018 09:57:37 +0100 |
| |
On 27/09/2018 21:15, Andi Kleen wrote: >> + mutex_lock(&pmus_lock); >> + list_for_each_entry(pmu, &pmus, entry) >> + pmu->perf_event_paranoid = sysctl_perf_event_paranoid; >> + mutex_unlock(&pmus_lock); > > What happens to pmus that got added later?
There is a hunk a bit lower in the patch where in perf_pmu_register the initial setting is assigned from the global sysctl.
> The rest looks good. > > Can you post a non RFC version?
Sure!
Regards,
Tvrtko
| |