Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-10-11 Thread Jin, Yao
On 10/11/2019 3:21 PM, Jiri Olsa wrote: On Fri, Oct 11, 2019 at 10:50:35AM +0800, Jin, Yao wrote: On 10/10/2019 8:33 PM, Arnaldo Carvalho de Melo wrote: Em Thu, Oct 10, 2019 at 04:33:57PM +0800, Jin, Yao escreveu: On 10/10/2019 4:00 PM, Jiri Olsa wrote: On Thu, Oct 10, 2019 at 02:46:36

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-10-11 Thread Jiri Olsa
On Fri, Oct 11, 2019 at 10:50:35AM +0800, Jin, Yao wrote: > > > On 10/10/2019 8:33 PM, Arnaldo Carvalho de Melo wrote: > > Em Thu, Oct 10, 2019 at 04:33:57PM +0800, Jin, Yao escreveu: > > > > > > > > > On 10/10/2019 4:00 PM, Jiri Olsa wrote: > > > > On Thu, Oct 10, 2019 at 02:46:36PM +0800, Jin

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-10-10 Thread Jin, Yao
On 10/10/2019 8:33 PM, Arnaldo Carvalho de Melo wrote: Em Thu, Oct 10, 2019 at 04:33:57PM +0800, Jin, Yao escreveu: On 10/10/2019 4:00 PM, Jiri Olsa wrote: On Thu, Oct 10, 2019 at 02:46:36PM +0800, Jin, Yao wrote: On 10/1/2019 10:17 AM, Andi Kleen wrote: I think it's useful. Makes it e

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-10-10 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 10, 2019 at 04:33:57PM +0800, Jin, Yao escreveu: > > > On 10/10/2019 4:00 PM, Jiri Olsa wrote: > > On Thu, Oct 10, 2019 at 02:46:36PM +0800, Jin, Yao wrote: > > > > > > > > > On 10/1/2019 10:17 AM, Andi Kleen wrote: > > > > > > I think it's useful. Makes it easy to do kernel/user br

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-10-10 Thread Jin, Yao
On 10/10/2019 4:00 PM, Jiri Olsa wrote: On Thu, Oct 10, 2019 at 02:46:36PM +0800, Jin, Yao wrote: On 10/1/2019 10:17 AM, Andi Kleen wrote: I think it's useful. Makes it easy to do kernel/user break downs. perf record should support the same. Don't we have this already with: [root@quaco

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-10-10 Thread Jiri Olsa
On Thu, Oct 10, 2019 at 02:46:36PM +0800, Jin, Yao wrote: > > > On 10/1/2019 10:17 AM, Andi Kleen wrote: > > > > I think it's useful. Makes it easy to do kernel/user break downs. > > > > perf record should support the same. > > > > > > Don't we have this already with: > > > > > > [root@quaco ~]

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-10-09 Thread Jin, Yao
On 10/1/2019 10:17 AM, Andi Kleen wrote: I think it's useful. Makes it easy to do kernel/user break downs. perf record should support the same. Don't we have this already with: [root@quaco ~]# perf stat -e cycles:u,instructions:u,cycles:k,instructions:k -a -- sleep 1 This only works for

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-09-30 Thread Andi Kleen
> > I think it's useful. Makes it easy to do kernel/user break downs. > > perf record should support the same. > > Don't we have this already with: > > [root@quaco ~]# perf stat -e cycles:u,instructions:u,cycles:k,instructions:k > -a -- sleep 1 This only works for simple cases. Try it for --top

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-09-30 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 30, 2019 at 11:21:36AM -0700, Andi Kleen escreveu: > On Sun, Sep 29, 2019 at 05:29:13PM +0200, Jiri Olsa wrote: > > On Wed, Sep 25, 2019 at 10:02:16AM +0800, Jin Yao wrote: > > > This patch series supports the new options "--all-kernel" and "--all-user" > > > in perf-stat. > > > For ex

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-09-30 Thread Andi Kleen
On Sun, Sep 29, 2019 at 05:29:13PM +0200, Jiri Olsa wrote: > On Wed, Sep 25, 2019 at 10:02:16AM +0800, Jin Yao wrote: > > This patch series supports the new options "--all-kernel" and "--all-user" > > in perf-stat. > > > > For example, > > > > root@kbl:~# perf stat -e cycles,instructions --all-ke

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-09-29 Thread Jiri Olsa
On Wed, Sep 25, 2019 at 10:02:16AM +0800, Jin Yao wrote: > This patch series supports the new options "--all-kernel" and "--all-user" > in perf-stat. > > For example, > > root@kbl:~# perf stat -e cycles,instructions --all-kernel --all-user -a -- > sleep 1 > > Performance counter stats for 'sys

[PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-09-24 Thread Jin Yao
This patch series supports the new options "--all-kernel" and "--all-user" in perf-stat. For example, root@kbl:~# perf stat -e cycles,instructions --all-kernel --all-user -a -- sleep 1 Performance counter stats for 'system wide': 19,156,665 cycles:k 7,265,342 instru