aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hwpmc/hwpmc_mips.c
diff options
context:
space:
mode:
authorFabien Thomas <fabient@FreeBSD.org>2012-03-28 20:58:30 +0000
committerFabien Thomas <fabient@FreeBSD.org>2012-03-28 20:58:30 +0000
commitf5f9340b9807d44d200658ba1bbbbbb57ab72e07 (patch)
treefadff08d26576c3d5c1cef9d47abd784602b237a /sys/dev/hwpmc/hwpmc_mips.c
parent1faacf5d0925fb593d0d5a17dbd3b0d705bdd478 (diff)
downloadsrc-f5f9340b9807d44d200658ba1bbbbbb57ab72e07.tar.gz
src-f5f9340b9807d44d200658ba1bbbbbb57ab72e07.zip
Add software PMC support.
New kernel events can be added at various location for sampling or counting. This will for example allow easy system profiling whatever the processor is with known tools like pmcstat(8). Simultaneous usage of software PMC and hardware PMC is possible, for example looking at the lock acquire failure, page fault while sampling on instructions. Sponsored by: NETASQ MFC after: 1 month
Notes
Notes: svn path=/head/; revision=233628
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_mips.c')
-rw-r--r--sys/dev/hwpmc/hwpmc_mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mips.c b/sys/dev/hwpmc/hwpmc_mips.c
index 3afa5d9b9866..8df27c908c8c 100644
--- a/sys/dev/hwpmc/hwpmc_mips.c
+++ b/sys/dev/hwpmc/hwpmc_mips.c
@@ -287,7 +287,7 @@ mips_pmc_intr(int cpu, struct trapframe *tf)
retval = 1;
if (pm->pm_state != PMC_STATE_RUNNING)
continue;
- error = pmc_process_interrupt(cpu, pm, tf,
+ error = pmc_process_interrupt(cpu, PMC_HR, pm, tf,
TRAPF_USERMODE(tf));
if (error) {
/* Clear/disable the relevant counter */