[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170220071300.GA12002@krava>
Date: Mon, 20 Feb 2017 08:13:00 +0100
From: Jiri Olsa <jolsa@...hat.com>
To: Borislav Petkov <bp@...en8.de>
Cc: Arnaldo Carvalho de Melo <acme@...nel.org>,
Jiri Olsa <jolsa@...nel.org>, David Ahern <dsahern@...il.com>,
Namhyung Kim <namhyung@...nel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
lkml <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...nel.org>
Subject: Re: [PATCHv2 4/5] perf stat: Add -a as a default target
On Sat, Feb 18, 2017 at 06:52:25PM +0100, Borislav Petkov wrote:
> On Fri, Feb 17, 2017 at 06:48:13PM +0100, Boris Petkov wrote:
> > LGTM.
> >
> > Acked-by: me
>
> Well, it looks good but actually trying it is a different story. For
> example:
>
> $ ./perf stat -e amd_nb/event=0xe0,umask=0x1f/ sleep 1
>
> still says <not supported> because argc is not 0.
>
> So how about the below diff instead?
>
> $ ./perf stat -e amd_nb/event=0xe0,umask=0x1f/
>
> without args dumps the usage message and
>
> $ ./perf stat -e amd_nb/event=0xe0,umask=0x1f/ sleep 1
>
> actually does the system-wide thing:
>
> Performance counter stats for 'system wide':
>
> 196,469 amd_nb/event=0xe0,umask=0x1f/
>
> 1.001815180 seconds time elapsed
>
> Hmmm?
ugh, I thought it was too easy ;-)
it looks good to me
thanks,
jirka
Powered by blists - more mailing lists