svn commit: r268869 - in head/sys: amd64/amd64 cddl/dev/dtrace/amd64 cddl/dev/fbt
Mark Johnston
markj at FreeBSD.org
Sun Jul 20 18:46:49 UTC 2014
On Sun, Jul 20, 2014 at 04:32:19PM +0200, Stefan Farfeleder wrote:
> Hi,
>
> On Sat, Jul 19, 2014 at 02:27:32AM +0000, Mark Johnston wrote:
> > Author: markj
> > Date: Sat Jul 19 02:27:31 2014
> > New Revision: 268869
> > URL: http://svnweb.freebsd.org/changeset/base/268869
>
> <snip>
>
> > Modified: head/sys/amd64/amd64/trap.c
> > ==============================================================================
> > --- head/sys/amd64/amd64/trap.c Sat Jul 19 02:15:28 2014 (r268868)
> > +++ head/sys/amd64/amd64/trap.c Sat Jul 19 02:27:31 2014 (r268869)
> > @@ -97,7 +97,8 @@ PMC_SOFT_DEFINE( , , page_fault, write);
> > #include <sys/dtrace_bsd.h>
> > #endif
> >
> > -extern void trap(struct trapframe *frame);
> > +extern void __noinline trap(struct trapframe *frame);
> > +extern void trap_check(struct trapframe *frame);
> > extern void syscall(struct trapframe *frame);
> > void dblfault_handler(struct trapframe *frame);
> >
> > @@ -604,6 +605,19 @@ out:
> > return;
> > }
> >
> > +/*
> > + * Ensure that we ignore any DTrace-induced faults. This function cannot
> > + * be instrumented, so it cannot generate such faults itself.
> > + */
> > +void
> > +trap_check(struct trapframe *frame)
> > +{
> > +
> > + if (dtrace_trap_func != NULL && (*dtrace_trap_func)(frame))
> > + return;
> > + trap(frame);
> > +}
> > +
> > static int
>
> /usr/src/sys/amd64/amd64/trap.c:616:6: error: use of undeclared identifier 'dtrace_trap_func'
> if (dtrace_trap_func != NULL && (*dtrace_trap_func)(frame))
> ^
>
> This is without KDTRACE_HOOKS.
Sorry about that. This is fixed in r268923.
-Mark
More information about the svn-src-head
mailing list