Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-02-27 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 27, 2018 at 08:53:13AM +0800, Jin, Yao escreveu: > > > On 1/23/2018 10:19 PM, Jiri Olsa wrote: > > On Mon, Jan 22, 2018 at 01:10:31PM +0800, Jin, Yao wrote: > > > > > > > > > On 1/16/2018 9:17 PM, Jiri Olsa wrote: > > > > On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: >

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-02-27 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 27, 2018 at 08:53:13AM +0800, Jin, Yao escreveu: > > > On 1/23/2018 10:19 PM, Jiri Olsa wrote: > > On Mon, Jan 22, 2018 at 01:10:31PM +0800, Jin, Yao wrote: > > > > > > > > > On 1/16/2018 9:17 PM, Jiri Olsa wrote: > > > > On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: >

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-02-26 Thread Jin, Yao
On 1/23/2018 10:19 PM, Jiri Olsa wrote: On Mon, Jan 22, 2018 at 01:10:31PM +0800, Jin, Yao wrote: On 1/16/2018 9:17 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much..

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-02-26 Thread Jin, Yao
On 1/23/2018 10:19 PM, Jiri Olsa wrote: On Mon, Jan 22, 2018 at 01:10:31PM +0800, Jin, Yao wrote: On 1/16/2018 9:17 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much..

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-23 Thread Jiri Olsa
On Mon, Jan 22, 2018 at 01:10:31PM +0800, Jin, Yao wrote: > > > On 1/16/2018 9:17 PM, Jiri Olsa wrote: > > On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: > > > Just tested. But looks it's not OK for '--per-thread' case. > > > > yea, I haven't tested much.. might need soem tweaking, >

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-23 Thread Jiri Olsa
On Mon, Jan 22, 2018 at 01:10:31PM +0800, Jin, Yao wrote: > > > On 1/16/2018 9:17 PM, Jiri Olsa wrote: > > On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: > > > Just tested. But looks it's not OK for '--per-thread' case. > > > > yea, I haven't tested much.. might need soem tweaking, >

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-21 Thread Jin, Yao
On 1/16/2018 9:17 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much.. might need soem tweaking, but my point was that it could be doable on one place instead of introducing

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-21 Thread Jin, Yao
On 1/16/2018 9:17 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much.. might need soem tweaking, but my point was that it could be doable on one place instead of introducing

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jin, Yao
On 1/16/2018 9:17 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much.. might need soem tweaking, but my point was that it could be doable on one place instead of introducing

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jin, Yao
On 1/16/2018 9:17 PM, Jiri Olsa wrote: On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much.. might need soem tweaking, but my point was that it could be doable on one place instead of introducing

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jiri Olsa
On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: > Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much.. might need soem tweaking, but my point was that it could be doable on one place instead of introducing another if possible jirka

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jiri Olsa
On Tue, Jan 16, 2018 at 09:06:09PM +0800, Jin, Yao wrote: > Just tested. But looks it's not OK for '--per-thread' case. yea, I haven't tested much.. might need soem tweaking, but my point was that it could be doable on one place instead of introducing another if possible jirka

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jin, Yao
Just tested. But looks it's not OK for '--per-thread' case. jinyao@skl:~/$ ./perf stat --per-thread WARNING: Ignored open failure for pid 1 WARNING: Ignored open failure for pid 2 WARNING: Ignored open failure for pid 4 WARNING: Ignored open failure for pid 6 WARNING: Ignored open failure for

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jin, Yao
Just tested. But looks it's not OK for '--per-thread' case. jinyao@skl:~/$ ./perf stat --per-thread WARNING: Ignored open failure for pid 1 WARNING: Ignored open failure for pid 2 WARNING: Ignored open failure for pid 4 WARNING: Ignored open failure for pid 6 WARNING: Ignored open failure for

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jiri Olsa
On Tue, Jan 16, 2018 at 11:43:08PM +0800, Jin Yao wrote: > If we execute 'perf stat --per-thread' with non-root account > (even set kernel.perf_event_paranoid = -1 yet), it reports the error: > > jinyao@skl:~$ perf stat --per-thread > Error: > You may not have permission to collect system-wide

Re: [PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-16 Thread Jiri Olsa
On Tue, Jan 16, 2018 at 11:43:08PM +0800, Jin Yao wrote: > If we execute 'perf stat --per-thread' with non-root account > (even set kernel.perf_event_paranoid = -1 yet), it reports the error: > > jinyao@skl:~$ perf stat --per-thread > Error: > You may not have permission to collect system-wide

[PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-15 Thread Jin Yao
If we execute 'perf stat --per-thread' with non-root account (even set kernel.perf_event_paranoid = -1 yet), it reports the error: jinyao@skl:~$ perf stat --per-thread Error: You may not have permission to collect system-wide stats. Consider tweaking /proc/sys/kernel/perf_event_paranoid, which

[PATCH] perf stat: Ignore error thread when enabling system-wide --per-thread

2018-01-15 Thread Jin Yao
If we execute 'perf stat --per-thread' with non-root account (even set kernel.perf_event_paranoid = -1 yet), it reports the error: jinyao@skl:~$ perf stat --per-thread Error: You may not have permission to collect system-wide stats. Consider tweaking /proc/sys/kernel/perf_event_paranoid, which