Searched refs:pmc_hook (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/sys/ |
H A D | pmckern.h | 179 extern int (*pmc_hook)(struct thread *_td, int _function, void *_arg); 201 #define PMC_HOOK_INSTALLED(cmd) __predict_false(pmc_hook != NULL) 208 if (pmc_hook != NULL) \ 209 (pmc_hook)((t), (cmd), (arg)); \ 217 if (pmc_hook != NULL) \ 218 (pmc_hook)((t), (cmd), (arg)); \ 228 if (pmc_hook != NULL) \ 229 (pmc_hook)((t), (cmd), (arg)); \
|
/freebsd/sys/powerpc/powerpc/ |
H A D | interrupt.c | 120 if (pmc_hook && (PCPU_GET(curthread)->td_pflags & TDP_CALLCHAIN)) in powerpc_interrupt() 121 pmc_hook(PCPU_GET(curthread), PMC_FN_USER_CALLCHAIN, framep); in powerpc_interrupt()
|
/freebsd/sys/kern/ |
H A D | kern_pmc.c | 70 int __read_mostly (*pmc_hook)(struct thread *td, int function, void *arg) = NULL; variable
|
H A D | subr_intr.c | 364 if (pmc_hook && TRAPF_USERMODE(tf) && in intr_irq_handler() 366 pmc_hook(PCPU_GET(curthread), PMC_FN_USER_CALLCHAIN, tf); in intr_irq_handler()
|
H A D | kern_intr.c | 106 #define PMC_HOOK_INSTALLED_ANY() __predict_false(pmc_hook != NULL)
|
/freebsd/sys/i386/i386/ |
H A D | exception.S | 671 movl pmc_hook,%ecx
|
/freebsd/sys/dev/hwpmc/ |
H A D | hwpmc_mod.c | 3272 if (pmc_hook == NULL) { \ 3776 if (pmc_hook == NULL) in pmc_syscall_handler() 5651 pmc_hook = pmc_hook_handler; in pmc_initialize() 5694 if (pmc_hook == NULL) { /* being unloaded already */ in pmc_cleanup() 5699 pmc_hook = NULL; /* prevent new threads from entering module */ in pmc_cleanup()
|
/freebsd/sys/amd64/amd64/ |
H A D | exception.S | 922 movq pmc_hook,%rax
|