summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_pmc.c
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2005-05-30 06:29:29 +0000
committerjkoshy <jkoshy@FreeBSD.org>2005-05-30 06:29:29 +0000
commitad86ac4ba488543f1b0c0667a071e2bb197b7f9a (patch)
tree7e883bbffeb74552930e9883202ed3d7c3123a4a /sys/kern/kern_pmc.c
parentf570134192d2d751237ed54f0fb9baa2fea5aeb5 (diff)
downloadFreeBSD-src-ad86ac4ba488543f1b0c0667a071e2bb197b7f9a.zip
FreeBSD-src-ad86ac4ba488543f1b0c0667a071e2bb197b7f9a.tar.gz
Kernel hooks to support PMC sampling modes.
Reviewed by: alc
Diffstat (limited to 'sys/kern/kern_pmc.c')
-rw-r--r--sys/kern/kern_pmc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_pmc.c b/sys/kern/kern_pmc.c
index c6fbb45..ee0f8ec 100644
--- a/sys/kern/kern_pmc.c
+++ b/sys/kern/kern_pmc.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2003 Joseph Koshy
+ * Copyright (c) 2003-2005, Joseph Koshy
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -35,7 +35,9 @@ struct sx pmc_sx;
int (*pmc_hook)(struct thread *td, int function, void *arg) = NULL;
/* Interrupt handler */
-int (*pmc_intr)(int cpu, uintptr_t pc) = NULL;
+int (*pmc_intr)(int cpu, uintptr_t pc, int usermode) = NULL;
+
+cpumask_t pmc_cpumask;
/*
* Since PMC(4) may not be loaded in the current kernel, the
OpenPOWER on IntegriCloud