diff options
author | markj <markj@FreeBSD.org> | 2014-05-29 01:41:19 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2014-05-29 01:41:19 +0000 |
commit | 12b89b902d67d1d44fdb4f245878755482951413 (patch) | |
tree | 98d3c02623a59e7b2ad20d73b830fd5dee7abf96 /sys/sys/dtrace_bsd.h | |
parent | 8cfb727def26a27a45d27023f3ad6e6729e310e6 (diff) | |
download | FreeBSD-src-12b89b902d67d1d44fdb4f245878755482951413.zip FreeBSD-src-12b89b902d67d1d44fdb4f245878755482951413.tar.gz |
Move some duplicated hook definitions from machine-dependent files to
kern_dtrace.c.
Reviewed by: rpaulo
MFC after: 1 week
Diffstat (limited to 'sys/sys/dtrace_bsd.h')
-rw-r--r-- | sys/sys/dtrace_bsd.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/sys/dtrace_bsd.h b/sys/sys/dtrace_bsd.h index bc1fdc5..6dd9024 100644 --- a/sys/sys/dtrace_bsd.h +++ b/sys/sys/dtrace_bsd.h @@ -59,10 +59,12 @@ int dtrace_trap(struct trapframe *, u_int); extern dtrace_trap_func_t dtrace_trap_func; -/* Used by the machine dependent trap() code. */ +/* + * A hook which removes active FBT probes before executing the double fault + * handler. We want to ensure that DTrace doesn't trigger another trap, which + * would result in a reset. + */ typedef void (*dtrace_doubletrap_func_t)(void); - -/* Global variables in trap.c */ extern dtrace_doubletrap_func_t dtrace_doubletrap_func; /* Pid provider hooks */ |