From: Namhyung Kim <namhyung@kernel.org>
To: Stephane Eranian <eranian@google.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
"mingo\@elte.hu" <mingo@elte.hu>,
"ak\@linux.intel.com" <ak@linux.intel.com>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung.kim@lge.com>
Subject: Re: [PATCH v4 2/2] perf stat: add interval printing
Date: Tue, 22 Jan 2013 14:03:40 +0900 [thread overview]
Message-ID: <87txq9kdw3.fsf@sejong.aot.lge.com> (raw)
In-Reply-To: <CABPqkBQD-v8aEP=cgGDw8g4jGTGMA--mK_vvs73TxtDpmcKizg@mail.gmail.com> (Stephane Eranian's message of "Mon, 21 Jan 2013 13:38:29 +0100")
Hi Stephane,
On Mon, 21 Jan 2013 13:38:29 +0100, Stephane Eranian wrote:
> On Mon, Jan 21, 2013 at 3:53 AM, Namhyung Kim <namhyung@kernel.org> wrote:
>> AFAICS the only caller of print_stat() is cmd_stat() and it'll call this
>> only if interval is 0. So why not just setting prefix to NULL then?
>>
> I don't understand your point here. Prefix is set ONLY when interval
> is non zero. Prefix is setup before print_counter() so that each counter
> for each interval is timestamped with the same value.
Please see below.
>>> - if (status != -1)
>>> + if (status != -1 && !interval)
>>> print_stat(argc, argv);
Here, print_stat() is called only if interval is 0. So no need to check
the interval inside the print_stat(), right?
Thanks,
Namhyung
next prev parent reply other threads:[~2013-01-22 5:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 23:13 [PATCH v4 0/2] perf stat: add interval counter printing Stephane Eranian
2013-01-18 23:13 ` [PATCH v4 1/2] perf tools: add evsel prev_raw_count field Stephane Eranian
2013-01-18 23:13 ` [PATCH v4 2/2] perf stat: add interval printing Stephane Eranian
2013-01-21 2:53 ` Namhyung Kim
2013-01-21 12:38 ` Stephane Eranian
2013-01-22 5:03 ` Namhyung Kim [this message]
2013-01-22 13:08 ` Stephane Eranian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87txq9kdw3.fsf@sejong.aot.lge.com \
--to=namhyung@kernel.org \
--cc=acme@redhat.com \
--cc=ak@linux.intel.com \
--cc=eranian@google.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=namhyung.kim@lge.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome