From: "Liang, Kan" <kan.liang@linux.intel.com>
To: Ian Rogers <irogers@google.com>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
James Clark <james.clark@linaro.org>,
Ze Gao <zegao2021@gmail.com>, Weilin Wang <weilin.wang@intel.com>,
Jean-Philippe Romain <jean-philippe.romain@foss.st.com>,
Junhao He <hejunhao3@huawei.com>,
Yicong Yang <yangyicong@hisilicon.com>,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/5] perf hwmon related improvements
Date: Mon, 3 Feb 2025 11:05:57 -0500 [thread overview]
Message-ID: <b4fcdcb2-455d-4523-9a92-14dc9cc8be2b@linux.intel.com> (raw)
In-Reply-To: <20250201074320.746259-1-irogers@google.com>
On 2025-02-01 2:43 a.m., Ian Rogers wrote:
> Try to do less scanning of files/directories with or without hwmon
> PMUs. Don't merge all events with the same name, only merge those on
> the same PMU ignoring suffix. Tidy PMU name matching to distinguish no
> suffix or wildcard matching. Refactor uniquification so the evsels
> with the same name as other evsels in the evlist are uniquified.
>
> v3: Address potential segv and styling nits from Kan Liang.
> v2: Rename ignore suffix PMU name matching that is really a
> wildcard/prefix match. Use a proper ignore suffix when not merging
> counters purely on name.
>
> Ian Rogers (5):
> perf evsel: Reduce scanning core PMUs in is_hybrid
> perf pmus: Restructure pmu_read_sysfs to scan fewer PMUs
> perf pmu: Rename name matching for no suffix or wildcard variants
> perf stat: Don't merge counters purely on name
> perf stat: Changes to event name uniquification
>
I didn't do much tests on the hwmon. But it changes the common codes
which impact other PMUs. I did tests mainly on core, uncore and other HW
PMUs on a hybrid platform. No regression is found.
The patches look good to me.
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Thanks,
Kan
> tools/perf/pmu-events/empty-pmu-events.c | 8 +-
> tools/perf/pmu-events/jevents.py | 8 +-
> tools/perf/tests/pmu.c | 85 ++++----
> tools/perf/util/evsel.c | 4 +-
> tools/perf/util/evsel.h | 1 +
> tools/perf/util/parse-events.c | 2 +-
> tools/perf/util/pmu.c | 256 ++++++++++++++++-------
> tools/perf/util/pmu.h | 7 +-
> tools/perf/util/pmus.c | 146 ++++++++-----
> tools/perf/util/stat-display.c | 111 +++++++---
> tools/perf/util/stat.c | 13 +-
> 11 files changed, 424 insertions(+), 217 deletions(-)
>
next prev parent reply other threads:[~2025-02-03 16:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-01 7:43 [PATCH v3 0/5] perf hwmon related improvements Ian Rogers
2025-02-01 7:43 ` [PATCH v3 1/5] perf evsel: Reduce scanning core PMUs in is_hybrid Ian Rogers
2025-02-01 7:43 ` [PATCH v3 2/5] perf pmus: Restructure pmu_read_sysfs to scan fewer PMUs Ian Rogers
2025-02-01 7:43 ` [PATCH v3 3/5] perf pmu: Rename name matching for no suffix or wildcard variants Ian Rogers
2025-02-03 23:00 ` Namhyung Kim
2025-02-03 23:10 ` Ian Rogers
2025-02-05 5:26 ` Namhyung Kim
2025-02-01 7:43 ` [PATCH v3 4/5] perf stat: Don't merge counters purely on name Ian Rogers
2025-02-01 7:43 ` [PATCH v3 5/5] perf stat: Changes to event name uniquification Ian Rogers
2025-02-03 16:05 ` Liang, Kan [this message]
2025-02-05 18:39 ` [PATCH v3 0/5] perf hwmon related improvements Namhyung Kim
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=b4fcdcb2-455d-4523-9a92-14dc9cc8be2b@linux.intel.com \
--to=kan.liang@linux.intel.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=hejunhao3@huawei.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jean-philippe.romain@foss.st.com \
--cc=jolsa@kernel.org \
--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 \
--cc=weilin.wang@intel.com \
--cc=yangyicong@hisilicon.com \
--cc=zegao2021@gmail.com \
/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