Skip to content

arm64: perf: Add support for Perf NMI interrupts

Lecopzer Chen linux-arm-kernel linux-mediatek lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm_pmu: Add support for perf NMI interrupts registrationdrivers/perf/arm_pmu.c include/linux/perf/arm_pmu.h+49 -01 reply
2/3arm64: perf: Support NMI context for perf event ISRarch/arm64/kernel/perf_event.c+27 -90 replies
3/3arm64: Kconfig: Add support for the Perf NMIarch/arm64/Kconfig+12 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] arm64: perf: Add support for Perf NMI interrupts

These series implement Perf NMI funxtionality and depends on Pseudo NMI [1] which has been upstreamed.

In arm64 with GICv3, Pseudo NMI was implemented for NMI-like interruts. That can be extended to Perf NMI which is the prerequisite for hard-lockup detector which had already a standard interface inside Linux.

Thus the first step we need to implement perf NMI interface and make sure it works fine.

Perf NMI has been test by dd if=/dev/urandom of=/dev/null like the link [2] did.

[1] https://lkml.org/lkml/2019/1/31/535
[2] https://www.linaro.org/blog/debugging-arm-kernels-using-nmifiq

Lecopzer Chen (3):
arm_pmu: Add support for perf NMI interrupts registration
arm64: perf: Support NMI context for perf event ISR
arm64: Kconfig: Add support for the Perf NMI

 arch/arm64/Kconfig             | 10 +++++++
 arch/arm64/kernel/perf_event.c | 36 ++++++++++++++++++------
 drivers/perf/arm_pmu.c         | 51 ++++++++++++++++++++++++++++++----
 include/linux/perf/arm_pmu.h   |  6 ++++
 4 files changed, 88 insertions(+), 15 deletions(-)
Signature · 1 line
2.25.1