lkml.org 
[lkml]   [2018]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC 3/5] perf: Allow per PMU access control
From
Date

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

\
 
 \ /
  Last update: 2018-09-28 10:58    [W:0.054 / U:3.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site