]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
perf: qcom: Add L3 cache PMU driver
authorAgustin Vega-Frias <agustinv@codeaurora.org>
Fri, 31 Mar 2017 18:13:43 +0000 (14:13 -0400)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 17 May 2017 16:41:14 +0000 (13:41 -0300)
commit1b26155ddeb0cfb1e981d1b1657b288a55098d23
treec87e46d10bca2f0e4bac80a269e06ada5713818c
parentc68bc606ae298ea3640f7cea7c9d4002f4526530
perf: qcom: Add L3 cache PMU driver

BugLink: https://bugs.launchpad.net/bugs/1689856
This adds a new dynamic PMU to the Perf Events framework to program
and control the L3 cache PMUs in some Qualcomm Technologies SOCs.

The driver supports a distributed cache architecture where the overall
cache for a socket is comprised of multiple slices each with its own PMU.
Access to each individual PMU is provided even though all CPUs share all
the slices. User space needs to aggregate to individual counts to provide
a global picture.

The driver exports formatting and event information to sysfs so it can
be used by the perf user space tools with the syntaxes:
   perf stat -a -e l3cache_0_0/read-miss/
   perf stat -a -e l3cache_0_0/event=0x21/

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Agustin Vega-Frias <agustinv@codeaurora.org>
[will: fixed sparse issues]
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 3071f13d75f627ed8648535815a0506d50cbc6ed)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Documentation/perf/qcom_l3_pmu.txt [new file with mode: 0644]
drivers/perf/Kconfig
drivers/perf/Makefile
drivers/perf/qcom_l3_pmu.c [new file with mode: 0644]
include/linux/cpuhotplug.h