Home
last modified time | relevance | path

Searched refs:pmc_hook (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/sys/
H A Dpmckern.h179 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 Dinterrupt.c120 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 Dkern_pmc.c70 int __read_mostly (*pmc_hook)(struct thread *td, int function, void *arg) = NULL; variable
H A Dsubr_intr.c364 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 Dkern_intr.c106 #define PMC_HOOK_INSTALLED_ANY() __predict_false(pmc_hook != NULL)
/freebsd/sys/i386/i386/
H A Dexception.S671 movl pmc_hook,%ecx
/freebsd/sys/dev/hwpmc/
H A Dhwpmc_mod.c3272 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 Dexception.S922 movq pmc_hook,%rax