[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52497F3C.9070908@gmail.com>
Date: Mon, 30 Sep 2013 07:40:12 -0600
From: David Ahern <dsahern@...il.com>
To: Namhyung Kim <namhyung@...nel.org>
CC: acme@...stprotocols.net, linux-kernel@...r.kernel.org,
Ingo Molnar <mingo@...nel.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung.kim@....com>,
Stephane Eranian <eranian@...gle.com>,
"David (me)" <dsahern@...il.com>
Subject: Re: [PATCH 2/3] perf stat: Don't require a workload when using system
wide or CPU options
On 9/30/13 2:47 AM, Namhyung Kim wrote:
>> @@ -1517,8 +1517,10 @@ int cmd_stat(int argc, const char **argv, const char *prefix __maybe_unused)
>> } else if (big_num_opt == 0) /* User passed --no-big-num */
>> big_num = false;
>>
>> - if (!argc && !perf_target__has_task(&target))
>> + if (!argc && !perf_target__has_task(&target) &&
>> + !perf_target__has_cpu(&target))
>
> You can use perf_target__none() for this.
Indeed. Updated patch attached.
David
View attachment "0002-perf-stat-Don-t-require-a-workload-when-using-system.patch" of type "text/plain" (1386 bytes)
Powered by blists - more mailing lists