Re: [BUG] perf report --pid not reporting correctly

2016-09-22 Thread Namhyung Kim
Hi Jiri, On Thu, Sep 22, 2016 at 10:36 PM, Jiri Olsa wrote: > On Thu, Sep 22, 2016 at 10:34:57AM +0900, Namhyung Kim wrote: > > SNIP > >> $ perf report -s pid,cpu --stdio --hierarchy >> # >> #Overhead Pid:Command / CPU >> # ... ... >> # >> 31.21%

Re: [BUG] perf report --pid not reporting correctly

2016-09-22 Thread Andi Kleen
> If not, I suggest to use --hierarchy mode with including the sort key > as the first one. In this case. It'll still show absolute > percentages of global total period, but you can see the desired result > easily IMHO. Please try something like this: > > $ perf report --hierarchy -s pid,cpu

Re: [BUG] perf report --pid not reporting correctly

2016-09-22 Thread Jiri Olsa
On Thu, Sep 22, 2016 at 10:34:57AM +0900, Namhyung Kim wrote: SNIP > $ perf report -s pid,cpu --stdio --hierarchy > # > #Overhead Pid:Command / CPU > # ... ... > # > 31.21% 0:swapper > 12.16% 000 > 3.09% 001

Re: [BUG] perf report --pid not reporting correctly

2016-09-21 Thread Namhyung Kim
On Wed, Sep 21, 2016 at 07:22:29PM -0700, Stephane Eranian wrote: > On Wed, Sep 21, 2016 at 6:34 PM, Namhyung Kim wrote: > > On Wed, Sep 21, 2016 at 01:18:52PM -0700, Stephane Eranian wrote: > >> On Wed, Sep 21, 2016 at 9:34 AM, Jiri Olsa wrote: > >> > On Wed, Sep 21, 2016 at 12:37:53PM -0300, Ar

Re: [BUG] perf report --pid not reporting correctly

2016-09-21 Thread Stephane Eranian
On Wed, Sep 21, 2016 at 6:34 PM, Namhyung Kim wrote: > On Wed, Sep 21, 2016 at 01:18:52PM -0700, Stephane Eranian wrote: >> On Wed, Sep 21, 2016 at 9:34 AM, Jiri Olsa wrote: >> > On Wed, Sep 21, 2016 at 12:37:53PM -0300, Arnaldo Carvalho de Melo wrote: >> >> Em Tue, Sep 20, 2016 at 06:29:59PM -07

Re: [BUG] perf report --pid not reporting correctly

2016-09-21 Thread Namhyung Kim
On Wed, Sep 21, 2016 at 01:18:52PM -0700, Stephane Eranian wrote: > On Wed, Sep 21, 2016 at 9:34 AM, Jiri Olsa wrote: > > On Wed, Sep 21, 2016 at 12:37:53PM -0300, Arnaldo Carvalho de Melo wrote: > >> Em Tue, Sep 20, 2016 at 06:29:59PM -0700, Stephane Eranian escreveu: > >> > Hi Arnaldo, > >> > >

Re: [BUG] perf report --pid not reporting correctly

2016-09-21 Thread Namhyung Kim
Hi Arnaldo and Stephane, On Thu, Sep 22, 2016 at 12:37 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Sep 20, 2016 at 06:29:59PM -0700, Stephane Eranian escreveu: >> Hi Arnaldo, >> >> I ran into an issue trying to use the --pid filtering option of perf report. >> >> I do a system-wide collection a

Re: [BUG] perf report --pid not reporting correctly

2016-09-21 Thread Stephane Eranian
On Wed, Sep 21, 2016 at 9:34 AM, Jiri Olsa wrote: > On Wed, Sep 21, 2016 at 12:37:53PM -0300, Arnaldo Carvalho de Melo wrote: >> Em Tue, Sep 20, 2016 at 06:29:59PM -0700, Stephane Eranian escreveu: >> > Hi Arnaldo, >> > >> > I ran into an issue trying to use the --pid filtering option of perf >>

Re: [BUG] perf report --pid not reporting correctly

2016-09-21 Thread Jiri Olsa
On Wed, Sep 21, 2016 at 12:37:53PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Sep 20, 2016 at 06:29:59PM -0700, Stephane Eranian escreveu: > > Hi Arnaldo, > > > > I ran into an issue trying to use the --pid filtering option of perf report. > > > > I do a system-wide collection and then I wa

Re: [BUG] perf report --pid not reporting correctly

2016-09-21 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 20, 2016 at 06:29:59PM -0700, Stephane Eranian escreveu: > Hi Arnaldo, > > I ran into an issue trying to use the --pid filtering option of perf report. > > I do a system-wide collection and then I want to narrow down the > reporting to a specific process: > > $ perf record -a -e cycl

[BUG] perf report --pid not reporting correctly

2016-09-20 Thread Stephane Eranian
Hi Arnaldo, I ran into an issue trying to use the --pid filtering option of perf report. I do a system-wide collection and then I want to narrow down the reporting to a specific process: $ perf record -a -e cycles:pp sleep 10 $ perf report --sort cpu,comm --pid X Where X is a process sampled du