Date: Fri, 12 Dec 2008 16:09:34 +0000 (UTC) From: Joseph Koshy <jkoshy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185991 - in head/sys: amd64/amd64 i386/i386 Message-ID: <200812121609.mBCG9Ye4002214@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkoshy Date: Fri Dec 12 16:09:34 2008 New Revision: 185991 URL: http://svn.freebsd.org/changeset/base/185991 Log: Expose symbol `PMC_FN_USER_CALLCHAIN' to assembler code. Modified: head/sys/amd64/amd64/genassym.c head/sys/i386/i386/genassym.c Modified: head/sys/amd64/amd64/genassym.c ============================================================================== --- head/sys/amd64/amd64/genassym.c Fri Dec 12 15:56:38 2008 (r185990) +++ head/sys/amd64/amd64/genassym.c Fri Dec 12 16:09:34 2008 (r185991) @@ -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_U 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 Modified: head/sys/i386/i386/genassym.c ============================================================================== --- head/sys/i386/i386/genassym.c Fri Dec 12 15:56:38 2008 (r185990) +++ head/sys/i386/i386/genassym.c Fri Dec 12 16:09:34 2008 (r185991) @@ -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(str 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812121609.mBCG9Ye4002214>