aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2021-05-19 16:29:59 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2021-07-29 15:05:55 +0000
commit862ea25915ccb70d8a25ee2b2e792c3974717e51 (patch)
tree026ec2ac07d3dbb52faaf969d8b3ab3648d79835
parent83166f87140764c36d7c6bdfab0433aceada66a9 (diff)
downloadsrc-862ea25915ccb70d8a25ee2b2e792c3974717e51.tar.gz
src-862ea25915ccb70d8a25ee2b2e792c3974717e51.zip
hwpmc_arm64: add a PMCDBG to the interrupt handler
MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit 13f5a3076bc8f3774b82f2d5ca29e2e0e2af997b)
-rw-r--r--sys/dev/hwpmc/hwpmc_arm64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/hwpmc/hwpmc_arm64.c b/sys/dev/hwpmc/hwpmc_arm64.c
index 06e2e66c7fda..8a149f5f508f 100644
--- a/sys/dev/hwpmc/hwpmc_arm64.c
+++ b/sys/dev/hwpmc/hwpmc_arm64.c
@@ -359,6 +359,9 @@ arm64_intr(struct trapframe *tf)
KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
("[arm64,%d] CPU %d out of range", __LINE__, cpu));
+ PMCDBG3(MDP,INT,1, "cpu=%d tf=%p um=%d", cpu, (void *)tf,
+ TRAPF_USERMODE(tf));
+
retval = 0;
pc = arm64_pcpu[cpu];