linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/6] Add support for sysfs event.cpus and cpu event term
@ 2024-07-17 22:47 Ian Rogers
  2024-07-17 22:47 ` [PATCH v1 1/6] perf pmu: Merge boolean sysfs event option parsing Ian Rogers
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Ian Rogers @ 2024-07-17 22:47 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, Bjorn Helgaas,
	Jonathan Corbet, James Clark, Ravi Bangoria, Dominique Martinet,
	linux-kernel, linux-perf-users, Dhananjay Ugwekar, ananth.narayan,
	gautham.shenoy, kprateek.nayak, sandipan.das

The need for a sysfs event.cpus file is discussed here:
https://lore.kernel.org/lkml/CAP-5=fXXuWchzUK0n5KTH8kamr=DQoEni+bUoo8f-4j8Y+eMBg@mail.gmail.com/
following Dhananjay Ugwekar's work on the RAPL /sys/devices/power PMU.
These changes add support for the event.cpus file in sysfs and also a
cpu event term allowing events to have differing CPUs. This was adding
in order to test the parsing and map propagation for the sysfs case.

Ian Rogers (6):
  perf pmu: Merge boolean sysfs event option parsing
  perf parse-events: Pass cpu_list as a perf_cpu_map in __add_event
  perf pmu: Add support for event.cpus files in sysfs
  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

 .../sysfs-bus-event_source-devices-events     |  14 ++
 tools/lib/perf/cpumap.c                       |  10 ++
 tools/lib/perf/include/perf/cpumap.h          |   2 +
 tools/perf/Documentation/perf-list.txt        |   7 +
 tools/perf/util/evsel_config.h                |   1 +
 tools/perf/util/parse-events.c                | 156 ++++++++++++------
 tools/perf/util/parse-events.h                |   3 +-
 tools/perf/util/parse-events.l                |   1 +
 tools/perf/util/pmu.c                         |  92 ++++++++---
 tools/perf/util/pmu.h                         |   1 +
 10 files changed, 213 insertions(+), 74 deletions(-)

-- 
2.45.2.1089.g2a221341d9-goog


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

end of thread, other threads:[~2024-07-17 22:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 22:47 [PATCH v1 0/6] Add support for sysfs event.cpus and cpu event term Ian Rogers
2024-07-17 22:47 ` [PATCH v1 1/6] perf pmu: Merge boolean sysfs event option parsing Ian Rogers
2024-07-17 22:47 ` [PATCH v1 2/6] perf parse-events: Pass cpu_list as a perf_cpu_map in __add_event Ian Rogers
2024-07-17 22:47 ` [PATCH v1 3/6] perf pmu: Add support for event.cpus files in sysfs Ian Rogers
2024-07-17 22:47 ` [PATCH v1 4/6] libperf cpumap: Add ability to create CPU from a single CPU number Ian Rogers
2024-07-17 22:47 ` [PATCH v1 5/6] perf parse-events: Set is_pmu_core for legacy hardware events Ian Rogers
2024-07-17 22:47 ` [PATCH v1 6/6] perf parse-events: Add "cpu" term to set the CPU an event is recorded on 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).