aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>2008-12-12 16:09:34 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>2008-12-12 16:09:34 +0000
commit5abe7b5623072ed8e277c1de565ab34cdac49867 (patch)
tree0b1dbeecac8dba86d61d7f70b10504bb4bc2cda6 /sys
parent59cf6deb68004220304d03cdc61f23f35b48260d (diff)
downloadsrc-5abe7b5623072ed8e277c1de565ab34cdac49867.tar.gz
src-5abe7b5623072ed8e277c1de565ab34cdac49867.zip
Expose symbol `PMC_FN_USER_CALLCHAIN' to assembler code.
Notes
Notes: svn path=/head/; revision=185991
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/genassym.c8
-rw-r--r--sys/i386/i386/genassym.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/sys/amd64/amd64/genassym.c b/sys/amd64/amd64/genassym.c
index f749dd62aadf..1924be7f534b 100644
--- a/sys/amd64/amd64/genassym.c
+++ b/sys/amd64/amd64/genassym.c
@@ -36,6 +36,7 @@
__FBSDID("$FreeBSD$");
#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/bio.h>
#include <sys/buf.h>
#include <sys/proc.h>
+#ifdef HWPMC_HOOKS
+#include <sys/pmckern.h>
+#endif
#include <sys/errno.h>
#include <sys/mount.h>
#include <sys/mutex.h>
@@ -216,3 +220,7 @@ ASSYM(KUC32SEL, GSEL(GUCODE32_SEL, SEL_UPL));
ASSYM(SEL_RPL_MASK, SEL_RPL_MASK);
ASSYM(MSR_GSBASE, MSR_GSBASE);
+
+#ifdef HWPMC_HOOKS
+ASSYM(PMC_FN_USER_CALLCHAIN, PMC_FN_USER_CALLCHAIN);
+#endif
diff --git a/sys/i386/i386/genassym.c b/sys/i386/i386/genassym.c
index 4a76e0ae8b21..059e2ab394c2 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