Home
last modified time | relevance | path

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

/freebsd-13.1/sys/sys/
H A Dpmckern.h180 extern int (*pmc_hook)(struct thread *_td, int _function, void *_arg);
202 #define PMC_HOOK_INSTALLED(cmd) __predict_false(pmc_hook != NULL)
209 if (pmc_hook != NULL) \
210 (pmc_hook)((t), (cmd), (arg)); \
218 if (pmc_hook != NULL) \
219 (pmc_hook)((t), (cmd), (arg)); \
229 if (pmc_hook != NULL) \
230 (pmc_hook)((t), (cmd), (arg)); \
/freebsd-13.1/sys/powerpc/powerpc/
H A Dinterrupt.c122 if (pmc_hook && (PCPU_GET(curthread)->td_pflags & TDP_CALLCHAIN)) in powerpc_interrupt()
123 pmc_hook(PCPU_GET(curthread), PMC_FN_USER_CALLCHAIN, framep); in powerpc_interrupt()
/freebsd-13.1/sys/mips/mips/
H A Dintr_machdep.c299 if (pmc_hook && (PCPU_GET(curthread)->td_pflags & TDP_CALLCHAIN)) in cpu_intr()
300 pmc_hook(PCPU_GET(curthread), PMC_FN_USER_CALLCHAIN, tf); in cpu_intr()
H A Dmips_pic.c295 if (pmc_hook && (PCPU_GET(curthread)->td_pflags & TDP_CALLCHAIN)) { in mips_pic_intr()
298 pmc_hook(PCPU_GET(curthread), PMC_FN_USER_CALLCHAIN, tf); in mips_pic_intr()
/freebsd-13.1/sys/kern/
H A Dkern_pmc.c72 int __read_mostly (*pmc_hook)(struct thread *td, int function, void *arg) = NULL; variable
H A Dsubr_intr.c331 if (pmc_hook && TRAPF_USERMODE(tf) && in intr_irq_handler()
333 pmc_hook(PCPU_GET(curthread), PMC_FN_USER_CALLCHAIN, tf); in intr_irq_handler()
/freebsd-13.1/sys/i386/i386/
H A Dexception.s657 movl pmc_hook,%ecx
/freebsd-13.1/sys/dev/hwpmc/
H A Dhwpmc_mod.c3365 if (pmc_hook == NULL) { \
3388 if (pmc_hook == NULL) in pmc_syscall_handler()
5740 pmc_hook = pmc_hook_handler; in pmc_initialize()
5783 if (pmc_hook == NULL) { /* being unloaded already */ in pmc_cleanup()
5788 pmc_hook = NULL; /* prevent new threads from entering module */ in pmc_cleanup()
/freebsd-13.1/sys/amd64/amd64/
H A Dexception.S930 movq pmc_hook,%rax