git: 13f5a3076bc8 - main - hwpmc_arm64: add a PMCDBG to the interrupt handler

Mitchell Horne mhorne at FreeBSD.org
Wed Jun 30 21:22:16 UTC 2021


The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=13f5a3076bc8f3774b82f2d5ca29e2e0e2af997b

commit 13f5a3076bc8f3774b82f2d5ca29e2e0e2af997b
Author:     Mitchell Horne <mhorne at FreeBSD.org>
AuthorDate: 2021-05-19 16:29:59 +0000
Commit:     Mitchell Horne <mhorne at FreeBSD.org>
CommitDate: 2021-06-30 21:21:23 +0000

    hwpmc_arm64: add a PMCDBG to the interrupt handler
    
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/hwpmc/hwpmc_arm64.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/hwpmc/hwpmc_arm64.c b/sys/dev/hwpmc/hwpmc_arm64.c
index 6b98fb46e7f1..84a8791287f7 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];
 


More information about the dev-commits-src-all mailing list