diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2008-12-12 16:09:34 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2008-12-12 16:09:34 +0000 |
commit | e2774cc57386d7c73dc6d5ae32044de4e0472e63 (patch) | |
tree | 0b1dbeecac8dba86d61d7f70b10504bb4bc2cda6 /sys/i386 | |
parent | 3e21de6755bffe8880f9fc3b7887ff396b13e7fe (diff) | |
download | FreeBSD-src-e2774cc57386d7c73dc6d5ae32044de4e0472e63.zip FreeBSD-src-e2774cc57386d7c73dc6d5ae32044de4e0472e63.tar.gz |
Expose symbol `PMC_FN_USER_CALLCHAIN' to assembler code.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/genassym.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/i386/genassym.c b/sys/i386/i386/genassym.c index 4a76e0a..059e2ab 100644 --- a/sys/i386/i386/genassym.c +++ b/sys/i386/i386/genassym.c @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include "opt_apic.h" #include "opt_compat.h" +#include "opt_hwpmc_hooks.h" #include "opt_kstack_pages.h" #include <sys/param.h> @@ -44,6 +45,9 @@ __FBSDID("$FreeBSD$"); #include <sys/assym.h> #include <sys/bio.h> #include <sys/buf.h> +#ifdef HWPMC_HOOKS +#include <sys/pmckern.h> +#endif #include <sys/proc.h> #include <sys/errno.h> #include <sys/mount.h> @@ -234,3 +238,7 @@ ASSYM(BUS_SPACE_HANDLE_IAT, offsetof(struct bus_space_handle, bsh_iat)); ASSYM(PC_CR3, offsetof(struct pcpu, pc_cr3)); ASSYM(HYPERVISOR_VIRT_START, __HYPERVISOR_VIRT_START); #endif + +#ifdef HWPMC_HOOKS +ASSYM(PMC_FN_USER_CALLCHAIN, PMC_FN_USER_CALLCHAIN); +#endif |