mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
It is an existing convention to use suffixes with PMU names. Try to capture that convention so that future PMU devices may adhere to it. The name of the file and date within the file try to follow existing conventions, particularly sysfs-bus-event_source-devices-events. Reviewed-by: James Clark <[email protected]> Reviewed-by: Kan Liang <[email protected]> Reviewed-by: Leo Yan <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Bharat Bhushan <[email protected]> Cc: Bhaskara Budiredla <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ravi Bangoria <[email protected]> Cc: Robin Murphy <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Richter <[email protected]> Cc: Tuan Phan <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
What: /sys/bus/event_source/devices/<pmu>
|
|
Date: 2014/02/24
|
|
Contact: Linux kernel mailing list <[email protected]>
|
|
Description: Performance Monitoring Unit (<pmu>)
|
|
|
|
Each <pmu> directory, for a PMU device, is a name
|
|
optionally followed by an underscore and then either a
|
|
decimal or hexadecimal number. For example, cpu is a
|
|
PMU name without a suffix as is intel_bts,
|
|
uncore_imc_0 is a PMU name with a 0 numeric suffix,
|
|
ddr_pmu_87e1b0000000 is a PMU name with a hex
|
|
suffix. The hex suffix must be more than two
|
|
characters long to avoid ambiguity with PMUs like the
|
|
S390 cpum_cf.
|
|
|
|
Tools can treat PMUs with the same name that differ by
|
|
suffix as instances of the same PMU for the sake of,
|
|
for example, opening an event. For example, the PMUs
|
|
uncore_imc_free_running_0 and
|
|
uncore_imc_free_running_1 have an event data_read;
|
|
opening the data_read event on a PMU specified as
|
|
uncore_imc_free_running should be treated as opening
|
|
the data_read event on PMU uncore_imc_free_running_0
|
|
and PMU uncore_imc_free_running_1.
|