perf: add qcom l2 cache perf events driver
authorNeil Leeder <nleeder@codeaurora.org>
Tue, 7 Feb 2017 18:14:04 +0000 (13:14 -0500)
committerWill Deacon <will.deacon@arm.com>
Wed, 8 Feb 2017 19:32:24 +0000 (19:32 +0000)
commit21bdbb7102edeaebb5ec4ef530c8f442f7562c96
tree5f531423c18fe74f1d38144707f51bd21f35a2aa
parentfe0a7ef74d1f65b86820a54636323df2b31e0c3f
perf: add qcom l2 cache perf events driver

Adds perf events support for L2 cache PMU.

The L2 cache PMU driver is named 'l2cache_0' and can be used
with perf events to profile L2 events such as cache hits
and misses on Qualcomm Technologies processors.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
[will: minimise nesting in l2_cache_associate_cpu_with_cluster]
[will: use kstrtoul for unsigned long, remove redunant .owner setting]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Documentation/perf/qcom_l2_pmu.txt [new file with mode: 0644]
drivers/perf/Kconfig
drivers/perf/Makefile
drivers/perf/qcom_l2_pmu.c [new file with mode: 0644]
include/linux/cpuhotplug.h