All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>,
	Kan Liang <kan.liang@linux.intel.com>,
	Athira Rajeev <atrajeev@linux.vnet.ibm.com>,
	Claire Jensen <cjense@google.com>,
	linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] perf stat: Don't display zero tool counts
Date: Tue, 8 Aug 2023 16:50:38 -0300	[thread overview]
Message-ID: <ZNKcjv0PTvSIn5lb@kernel.org> (raw)
In-Reply-To: <ZNJ9qBoBt2spEy4Y@tassilo>

Em Tue, Aug 08, 2023 at 10:38:48AM -0700, Andi Kleen escreveu:
> On Mon, Aug 07, 2023 at 04:57:31PM -0300, Arnaldo Carvalho de Melo wrote:
> > Em Mon, Aug 07, 2023 at 04:43:38PM -0300, Arnaldo Carvalho de Melo escreveu:
> > > Em Mon, Aug 07, 2023 at 07:54:47AM -0700, Andi Kleen escreveu:
> > > > On Thu, Aug 03, 2023 at 05:54:59PM -0300, Arnaldo Carvalho de Melo wrote:
> > > > > Em Tue, Aug 01, 2023 at 01:54:52PM -0700, Ian Rogers escreveu:
> > > > > > Skip zero counts for tool events.
> > > > > > 
> > > > > > Reported-by: Andi Kleen <ak@linux.intel.com>
> > > > > 
> > > > > Andi,
> > > > > 
> > > > > 	Have you tested this? Can we please have your Tested-by?
> > > > 
> > > > I thought I had sent it earlier?
> > > > 
> > > > Tested-by: Andi Kleen <ak@linux.intel.com>
> > > 
> > > Yeah, you did it, sorry, somehow I didn't notice.
> > > 
> > > Applying.
> > 
> > Would be good to have the original link with your report and to figure
> > out the cset that introduced the problem, so that we could have a Fixes
> > tag to help justifying getting this into 6.5.
> 
> Just bisected it. The original patch was below. Remarkably it had a "Fixes"
> tag too)
> 
> My report was 
> 
> https://lore.kernel.org/linux-perf-users/ZMlrzcVrVi1lTDmn@tassilo/

Thanks, I did this research and bisection earlier today, some more tests
and the result matches yours and is available at:

https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools.git/commit/?h=perf-tools

I used that ZMlrzcVrVi1lTDmn@tassilo in the Link: tag, as Linus stated
he prefers the discussion leading to the patch than the URL for the
patch itself once submitted.

Now I'll wait a bit till it lands in linux-next/pending-fixes to then
send it to Linus.

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/?h=pending-fixes

Thanks again!

- Arnaldo

 
> commit b897613510890d6e92b6a276a20f6c3d96fe90e8
> Author: Namhyung Kim <namhyung@kernel.org>
> Date:   Tue Dec 6 09:58:04 2022 -0800
> 
>     perf stat: Update event skip condition for system-wide per-thread mode and merged uncore and hybrid events
> 
>     In print_counter_aggrdata(), it skips some events that has no aggregate
>     count.  It's actually for system-wide per-thread mode and merged uncore
>     and hybrid events.
> 
>     Let's update the condition to check them explicitly.
> 
>     Fixes: 91f85f98da7ab8c3 ("perf stat: Display event stats using aggr counts")

      reply	other threads:[~2023-08-08 20:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-01 20:54 [PATCH v1] perf stat: Don't display zero tool counts Ian Rogers
2023-08-03 20:38 ` Andi Kleen
2023-08-03 20:54 ` Arnaldo Carvalho de Melo
2023-08-07 14:54   ` Andi Kleen
2023-08-07 19:43     ` Arnaldo Carvalho de Melo
2023-08-07 19:57       ` Arnaldo Carvalho de Melo
2023-08-08 17:38         ` Andi Kleen
2023-08-08 19:50           ` Arnaldo Carvalho de Melo [this message]

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=ZNKcjv0PTvSIn5lb@kernel.org \
    --to=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=ak@linux.intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=atrajeev@linux.vnet.ibm.com \
    --cc=cjense@google.com \
    --cc=irogers@google.com \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.