Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9993f9f9 authored by Neil Leeder's avatar Neil Leeder
Browse files

soc: qcom: add l2 cache perf events driver



Adds perf events support for L2 cache PMU.

The L2 cache PMU driver is named 'l2cache' and can be used
with perf events to profile L2 events such as cache hits
and misses.

Change-Id: Ic17087dfb48781fec8daf0063e5d556d377dbc7e
Signed-off-by: default avatarNeil Leeder <nleeder@codeaurora.org>
parent 0b8b6a94
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
L2 cache performance monitor unit

L2 cache controllers have a performance monitor unit to measure
events such as cache hits and misses. There is one L2 cache PMU
for each cluster of CPUs.

Required properties:

- compatible : should be "qcom,qcom-l2cache-pmu"
- interrupts : 1 interrupt for each cluster.
- qcom,cpu-affinity: specifies the id of the first CPU in the cluster.

Example:

	l2cache-pmu {
		    compatible = "qcom,qcom-l2cache-pmu";
		    interrupts = <0 0 1>, <0 8 1>;
		    qcom,cpu-affinity = <0>, <2>
	};
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ obj-$(CONFIG_MSM_RPM_RBCPR_STATS_V2_LOG) += rpm_rbcpr_stats_v2.o
obj-$(CONFIG_MEM_SHARE_QMI_SERVICE)		+= memshare/
obj-$(CONFIG_CP_ACCESS64) += cpaccess64.o
obj-$(CONFIG_MSM_RPM_STATS_LOG) += rpm_stats.o rpm_master_stat.o rpm_rail_stats.o
obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_kryo.o
obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_kryo.o perf_event_l2.o
obj-$(CONFIG_MSM_RPM_LOG) += rpm_log.o
obj-$(CONFIG_MSM_JTAG) += jtag-fuse.o jtag.o
obj-$(CONFIG_MSM_JTAG_MM) +=  jtag-fuse.o jtag-mm.o
+964 −0

File added.

Preview size limit exceeded, changes collapsed.

+80 −0

File added.

Preview size limit exceeded, changes collapsed.