]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf/marvell: Odyssey LLC-TAD performance monitor support
authorGowthami Thiagarajan <gthiagarajan@marvell.com>
Fri, 8 Nov 2024 04:06:19 +0000 (09:36 +0530)
committerWill Deacon <will@kernel.org>
Mon, 9 Dec 2024 15:57:49 +0000 (15:57 +0000)
commit5fcccba1183374c84f2b2392655c15ec4dbe41bc
tree048f4b3b8c5a6d33b3426204c8d9675e79344ce5
parent59731e231c6fdcdcbb87beb31a10ba819c1fb7f6
perf/marvell: Odyssey LLC-TAD performance monitor support

Each TAD provides eight 64-bit counters for monitoring
cache behavior.The driver always configures the same counter for
all the TADs. The user would end up effectively reserving one of
eight counters in every TAD to look across all TADs.
The occurrences of events are aggregated and presented to the user
at the end of running the workload. The driver does not provide a
way for the user to partition TADs so that different TADs are used for
different applications.

The performance events reflect various internal or interface activities.
By combining the values from multiple performance counters, cache
performance can be measured in terms such as: cache miss rate, cache
allocations, interface retry rate, internal resource occupancy, etc.

Each supported counter's event and formatting information is exposed
to sysfs at /sys/devices/tad/. Use perf tool stat command to measure
the pmu events. For instance:

perf stat -e tad_hit_ltg,tad_hit_dtg <workload>

Signed-off-by: Gowthami Thiagarajan <gthiagarajan@marvell.com>
Link: https://lore.kernel.org/r/20241108040619.753343-6-gthiagarajan@marvell.com
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/admin-guide/perf/index.rst
Documentation/admin-guide/perf/mrvl-odyssey-tad-pmu.rst [new file with mode: 0644]
drivers/perf/marvell_cn10k_tad_pmu.c