Re: [RFC] perf: Allow fine-grained PMU access control

2018-06-18 Thread Alexey Budankov
Hi Tvrtko, On 11.06.2018 11:08, Tvrtko Ursulin wrote: > > Hi, > > On 22/05/2018 18:19, Andi Kleen wrote: >>> IMHO, it is unsafe for CBOX pmu but could IMC, UPI pmus be an exception >>> here? >>> Because currently perf stat -I from IMC, UPI counters is only allowed when >>> system wide

Re: [RFC] perf: Allow fine-grained PMU access control

2018-06-18 Thread Alexey Budankov
Hi Tvrtko, On 11.06.2018 11:08, Tvrtko Ursulin wrote: > > Hi, > > On 22/05/2018 18:19, Andi Kleen wrote: >>> IMHO, it is unsafe for CBOX pmu but could IMC, UPI pmus be an exception >>> here? >>> Because currently perf stat -I from IMC, UPI counters is only allowed when >>> system wide

Re: [RFC] perf: Allow fine-grained PMU access control

2018-06-11 Thread Tvrtko Ursulin
Hi, On 22/05/2018 18:19, Andi Kleen wrote: IMHO, it is unsafe for CBOX pmu but could IMC, UPI pmus be an exception here? Because currently perf stat -I from IMC, UPI counters is only allowed when system wide monitoring is permitted and this prevents joint perf record and perf stat -I in

Re: [RFC] perf: Allow fine-grained PMU access control

2018-06-11 Thread Tvrtko Ursulin
Hi, On 22/05/2018 18:19, Andi Kleen wrote: IMHO, it is unsafe for CBOX pmu but could IMC, UPI pmus be an exception here? Because currently perf stat -I from IMC, UPI counters is only allowed when system wide monitoring is permitted and this prevents joint perf record and perf stat -I in

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Andi Kleen
> IMHO, it is unsafe for CBOX pmu but could IMC, UPI pmus be an exception here? > Because currently perf stat -I from IMC, UPI counters is only allowed when > system wide monitoring is permitted and this prevents joint perf record and > perf stat -I in cluster environments where users usually

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Andi Kleen
> IMHO, it is unsafe for CBOX pmu but could IMC, UPI pmus be an exception here? > Because currently perf stat -I from IMC, UPI counters is only allowed when > system wide monitoring is permitted and this prevents joint perf record and > perf stat -I in cluster environments where users usually

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Tvrtko Ursulin
On 22/05/2018 13:32, Peter Zijlstra wrote: On Tue, May 22, 2018 at 10:29:29AM +0100, Tvrtko Ursulin wrote: On 22/05/18 10:05, Peter Zijlstra wrote: On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For situations where sysadmins

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Tvrtko Ursulin
On 22/05/2018 13:32, Peter Zijlstra wrote: On Tue, May 22, 2018 at 10:29:29AM +0100, Tvrtko Ursulin wrote: On 22/05/18 10:05, Peter Zijlstra wrote: On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For situations where sysadmins might want to allow

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Alexey Budankov
Hi, On 22.05.2018 15:32, Peter Zijlstra wrote: > On Tue, May 22, 2018 at 10:29:29AM +0100, Tvrtko Ursulin wrote: >> >> On 22/05/18 10:05, Peter Zijlstra wrote: >>> On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Alexey Budankov
Hi, On 22.05.2018 15:32, Peter Zijlstra wrote: > On Tue, May 22, 2018 at 10:29:29AM +0100, Tvrtko Ursulin wrote: >> >> On 22/05/18 10:05, Peter Zijlstra wrote: >>> On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For situations where sysadmins

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Peter Zijlstra
On Tue, May 22, 2018 at 10:29:29AM +0100, Tvrtko Ursulin wrote: > > On 22/05/18 10:05, Peter Zijlstra wrote: > > On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin > > > > > > For situations where sysadmins might want to allow

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Peter Zijlstra
On Tue, May 22, 2018 at 10:29:29AM +0100, Tvrtko Ursulin wrote: > > On 22/05/18 10:05, Peter Zijlstra wrote: > > On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin > > > > > > For situations where sysadmins might want to allow different level of > > > of

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Tvrtko Ursulin
On 22/05/18 10:05, Peter Zijlstra wrote: On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs, we start creating per-PMU

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Tvrtko Ursulin
On 22/05/18 10:05, Peter Zijlstra wrote: On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs, we start creating per-PMU perf_event_paranoid controls in

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Peter Zijlstra
On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > For situations where sysadmins might want to allow different level of > of access control for different PMUs, we start creating per-PMU > perf_event_paranoid controls in sysfs.

Re: [RFC] perf: Allow fine-grained PMU access control

2018-05-22 Thread Peter Zijlstra
On Mon, May 21, 2018 at 10:25:49AM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > For situations where sysadmins might want to allow different level of > of access control for different PMUs, we start creating per-PMU > perf_event_paranoid controls in sysfs. Could you explain how

[RFC] perf: Allow fine-grained PMU access control

2018-05-21 Thread Tvrtko Ursulin
From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs, we start creating per-PMU perf_event_paranoid controls in sysfs. These work in equivalent fashion as the existing perf_event_paranoid

[RFC] perf: Allow fine-grained PMU access control

2018-05-21 Thread Tvrtko Ursulin
From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs, we start creating per-PMU perf_event_paranoid controls in sysfs. These work in equivalent fashion as the existing perf_event_paranoid sysctl, which now becomes the

Re: [Intel-gfx] [RFC] perf: Allow fine-grained PMU access control

2018-02-23 Thread Tvrtko Ursulin
Hi, On 19/01/2018 17:10, Tvrtko Ursulin wrote: Hi, On 19/01/2018 16:45, Peter Zijlstra wrote: On Thu, Jan 18, 2018 at 06:40:07PM +, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access

Re: [Intel-gfx] [RFC] perf: Allow fine-grained PMU access control

2018-02-23 Thread Tvrtko Ursulin
Hi, On 19/01/2018 17:10, Tvrtko Ursulin wrote: Hi, On 19/01/2018 16:45, Peter Zijlstra wrote: On Thu, Jan 18, 2018 at 06:40:07PM +, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs,

Re: [Intel-gfx] [RFC] perf: Allow fine-grained PMU access control

2018-01-19 Thread Tvrtko Ursulin
Hi, On 19/01/2018 16:45, Peter Zijlstra wrote: On Thu, Jan 18, 2018 at 06:40:07PM +, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs, we start creating per-PMU

Re: [Intel-gfx] [RFC] perf: Allow fine-grained PMU access control

2018-01-19 Thread Tvrtko Ursulin
Hi, On 19/01/2018 16:45, Peter Zijlstra wrote: On Thu, Jan 18, 2018 at 06:40:07PM +, Tvrtko Ursulin wrote: From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs, we start creating per-PMU perf_event_paranoid

Re: [RFC] perf: Allow fine-grained PMU access control

2018-01-19 Thread Peter Zijlstra
On Thu, Jan 18, 2018 at 06:40:07PM +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > For situations where sysadmins might want to allow different level of > of access control for different PMUs, we start creating per-PMU > perf_event_paranoid controls in sysfs.

Re: [RFC] perf: Allow fine-grained PMU access control

2018-01-19 Thread Peter Zijlstra
On Thu, Jan 18, 2018 at 06:40:07PM +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > For situations where sysadmins might want to allow different level of > of access control for different PMUs, we start creating per-PMU > perf_event_paranoid controls in sysfs. You've completely and

[RFC] perf: Allow fine-grained PMU access control

2018-01-18 Thread Tvrtko Ursulin
From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs, we start creating per-PMU perf_event_paranoid controls in sysfs. These work in equivalent fashion as the existing perf_event_paranoid

[RFC] perf: Allow fine-grained PMU access control

2018-01-18 Thread Tvrtko Ursulin
From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of of access control for different PMUs, we start creating per-PMU perf_event_paranoid controls in sysfs. These work in equivalent fashion as the existing perf_event_paranoid sysctl, which now becomes the