diff options
| author | Joseph Koshy <jkoshy@FreeBSD.org> | 2005-06-09 19:45:09 +0000 |
|---|---|---|
| committer | Joseph Koshy <jkoshy@FreeBSD.org> | 2005-06-09 19:45:09 +0000 |
| commit | f263522a45b9cf5cfb83a40e3135aa7108764d60 (patch) | |
| tree | 4970329c2802c6329dd4f6e781d84b27dbf8f412 /sys/kern/kern_pmc.c | |
| parent | a3f2d84279eabfd904a9897e2fbf6cc2a1ba0d27 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_pmc.c')
| -rw-r--r-- | sys/kern/kern_pmc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/kern_pmc.c b/sys/kern/kern_pmc.c index ee0f8ec6fcb5..43059cc2a4d8 100644 --- a/sys/kern/kern_pmc.c +++ b/sys/kern/kern_pmc.c @@ -37,7 +37,14 @@ int (*pmc_hook)(struct thread *td, int function, void *arg) = NULL; /* Interrupt handler */ int (*pmc_intr)(int cpu, uintptr_t pc, int usermode) = NULL; -cpumask_t pmc_cpumask; +volatile cpumask_t pmc_cpumask; + +/* + * A global count of SS mode PMCs. When non-zero, this means that + * we have processes that are sampling the system as a whole. + */ + +volatile int pmc_ss_count; /* * Since PMC(4) may not be loaded in the current kernel, the |
