linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Add support for cpu event term
@ 2024-09-18 22:01 Ian Rogers
  2024-09-18 22:01 ` [PATCH v3 1/3] libperf cpumap: Add ability to create CPU from a single CPU number Ian Rogers
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ian Rogers @ 2024-09-18 22:01 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Ian Rogers, Adrian Hunter, Kan Liang, James Clark, Ravi Bangoria,
	Weilin Wang, Dominique Martinet, Jing Zhang, linux-perf-users,
	linux-kernel

Being able to set the cpu mask per event was discussed in the context
of a sysfs event.cpus file is discussed here:
https://lore.kernel.org/lkml/CAP-5=fXXuWchzUK0n5KTH8kamr=DQoEni+bUoo8f-4j8Y+eMBg@mail.gmail.com/
Ultimately Kan preferred to have multiple PMUs with a cpumask each
rather than an event.cpus file per event. It is still useful to have
the cpu event term and so the sysfs part of the original patch series
is dropped.

v3: Drop sysfs event.cpus file support patch from series.  Reference
    to using cpu to modify uncore events is dropped from the commit
    message. Reference counting issues on the cpumap are addressed.
v2: Add support for multiple cpu terms on an event that are
    merged. For example, an event of "l1d-misses/cpu=4,cpu=5/" will
    now be opened on both CPU 4 and 5 rather than just CPU 4.

Ian Rogers (3):
  libperf cpumap: Add ability to create CPU from a single CPU number
  perf parse-events: Set is_pmu_core for legacy hardware events
  perf parse-events: Add "cpu" term to set the CPU an event is recorded
    on

 tools/lib/perf/cpumap.c                |  10 +++
 tools/lib/perf/include/perf/cpumap.h   |   2 +
 tools/perf/Documentation/perf-list.txt |   9 +++
 tools/perf/tests/event_update.c        |   1 +
 tools/perf/util/evsel_config.h         |   1 +
 tools/perf/util/parse-events.c         | 108 +++++++++++++++++++------
 tools/perf/util/parse-events.h         |   3 +-
 tools/perf/util/parse-events.l         |   1 +
 tools/perf/util/pmu.c                  |   1 +
 9 files changed, 110 insertions(+), 26 deletions(-)

-- 
2.46.0.662.g92d0881bb0-goog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-10-01 23:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-18 22:01 [PATCH v3 0/3] Add support for cpu event term Ian Rogers
2024-09-18 22:01 ` [PATCH v3 1/3] libperf cpumap: Add ability to create CPU from a single CPU number Ian Rogers
2024-09-18 22:01 ` [PATCH v3 2/3] perf parse-events: Set is_pmu_core for legacy hardware events Ian Rogers
2024-09-18 22:01 ` [PATCH v3 3/3] perf parse-events: Add "cpu" term to set the CPU an event is recorded on Ian Rogers
2024-09-30 21:42   ` Namhyung Kim
2024-10-01  2:03     ` Ian Rogers
2024-10-01 22:53       ` Namhyung Kim
2024-10-01 23:18         ` Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).