Skip to content

Commit 889fc01

Browse files
JamesH65popcornmix
authored andcommitted
AXI performance monitor driver (raspberrypi#2222)
Uses the debugfs I/F to provide access to the AXI bus performance monitors. Requires the new mailbox peripheral access for access to the VPU performance registers, system bus access is done using direct register reads. Signed-off-by: James Hughes <james.hughes@raspberrypi.org> raspberrypi_axi_monitor: suppress warning Suppress the following warning by casting the pointer to and uintptr_t before to u32: Signed-off-by: Matteo Croce <mcroce@redhat.com>
1 parent 44b470d commit 889fc01

3 files changed

Lines changed: 645 additions & 0 deletions

File tree

‎drivers/perf/Kconfig‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,11 @@ config ARM_SPE_PMU
129129
Extension, which provides periodic sampling of operations in
130130
the CPU pipeline and reports this via the perf AUX interface.
131131

132+
config RPI_AXIPERF
133+
depends on ARCH_BCM2835
134+
tristate "RaspberryPi AXI Performance monitors"
135+
default n
136+
help
137+
Say y if you want to use Raspberry Pi AXI performance monitors, m if
138+
you want to build it as a module.
132139
endmenu

‎drivers/perf/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ obj-$(CONFIG_QCOM_L3_PMU) += qcom_l3_pmu.o
1212
obj-$(CONFIG_THUNDERX2_PMU) += thunderx2_pmu.o
1313
obj-$(CONFIG_XGENE_PMU) += xgene_pmu.o
1414
obj-$(CONFIG_ARM_SPE_PMU) += arm_spe_pmu.o
15+
obj-$(CONFIG_RPI_AXIPERF) += raspberrypi_axi_monitor.o

0 commit comments

Comments
 (0)