Searched refs:pmc_hook (Results 1 – 9 of 9) sorted by relevance
| /freebsd-13.1/sys/sys/ |
| H A D | pmckern.h | 180 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 D | interrupt.c | 122 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 D | intr_machdep.c | 299 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 D | mips_pic.c | 295 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 D | kern_pmc.c | 72 int __read_mostly (*pmc_hook)(struct thread *td, int function, void *arg) = NULL; variable
|
| H A D | subr_intr.c | 331 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 D | exception.s | 657 movl pmc_hook,%ecx
|
| /freebsd-13.1/sys/dev/hwpmc/ |
| H A D | hwpmc_mod.c | 3365 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 D | exception.S | 930 movq pmc_hook,%rax
|