Commit f4d2c234 authored by Ze Zuo's avatar Ze Zuo
Browse files

drivers/arm/spe: In-kernel SPE driver for page access profiling

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I9GZAQ


CVE: NA

--------------------------------

Use SPE (Statistical Profiling Extension) feature present
in ARM processors for memory access tracking.

Each cpu core has two buffers, one for storing the raw SPE
data and the other for decoded records.

Signed-off-by: default avatarZe Zuo <zuoze1@huawei.com>
Signed-off-by: default avatarTong Tiangen <tongtiangen@huawei.com>
parent 623051c7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -244,4 +244,6 @@ source "drivers/ub/Kconfig"

source "drivers/cpuinspect/Kconfig"

source "drivers/arm/Kconfig"

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -195,3 +195,4 @@ obj-$(CONFIG_COUNTER) += counter/
obj-$(CONFIG_MOST)		+= most/
obj-$(CONFIG_ROH)		+= roh/
obj-$(CONFIG_UB)      += ub/
obj-$(CONFIG_ARM_SPE_MEM_SAMPLING)		+= arm/spe/

drivers/arm/Kconfig

0 → 100644
+2 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
source "drivers/arm/spe/Kconfig"
+10 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
#
# arm spe dirver
#
config ARM_SPE_MEM_SAMPLING
	bool "In-kernel SPE for driver for page access profiling"
	depends on ARM64 && !ARM_SPE_PMU
        help
	  Enable support for the ARMv8.2 Statistical Profiling Extension, which
	  provides periodic sampling of operations in the CPU pipeline.
+2 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_ARM_SPE_MEM_SAMPLING) += spe.o spe-decoder/arm-spe-decoder.o spe-decoder/arm-spe-pkt-decoder.o
Loading