Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_pmc.c
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
const int pmc_kernel_version = PMC_KERNEL_VERSION; | const int pmc_kernel_version = PMC_KERNEL_VERSION; | ||||
/* Hook variable. */ | /* Hook variable. */ | ||||
int __read_mostly (*pmc_hook)(struct thread *td, int function, void *arg) = NULL; | int __read_mostly (*pmc_hook)(struct thread *td, int function, void *arg) = NULL; | ||||
/* Interrupt handler */ | /* Interrupt handler */ | ||||
int __read_mostly (*pmc_intr)(struct trapframe *tf) = NULL; | int __read_mostly (*pmc_intr)(struct trapframe *tf) = NULL; | ||||
DPCPU_DEFINE(uint8_t, pmc_sampled); | DPCPU_GLOBAL_DEFINE(uint8_t, pmc_sampled); | ||||
/* | /* | ||||
* A global count of SS mode PMCs. When non-zero, this means that | * A global count of SS mode PMCs. When non-zero, this means that | ||||
* we have processes that are sampling the system as a whole. | * we have processes that are sampling the system as a whole. | ||||
*/ | */ | ||||
volatile int pmc_ss_count; | volatile int pmc_ss_count; | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |