Last active
May 9, 2024 18:57
-
-
Save cyring/14556fc52e5bea5a564bdda5a0852f09 to your computer and use it in GitHub Desktop.
ARM PMU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Orange Pi 5+ (DTS) |
- Disable
CONFIG_ARM_PMUV3
w/ kernel 6 - Disable
CONFIG_ARM_PMU
w/ kernel 5 - Disable
CONFIG_PERF_EVENTS
- Disable
CONFIG_KVM
- drivers/perf/arm_pmuv3.c
static irqreturn_t armv8pmu_handle_irq(struct arm_pmu *cpu_pmu)
{
armv8pmu_stop(cpu_pmu);
armv8pmu_start(cpu_pmu);
return IRQ_HANDLED;
}
armv8pmu_stop() -> armv8pmu_pmcr_write() -> write_pmcr() -> write_sysreg() -> __write_sysreg() -> pmcr_el0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.