diff options
author | avg <avg@FreeBSD.org> | 2014-02-17 12:57:13 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2014-02-17 12:57:13 +0000 |
commit | b46715eb45c047352cfcbd2055652d72d46e5deb (patch) | |
tree | 93785a3683b712612c87b437ee29ca2ce15939af /sys/i386/i386 | |
parent | 1e63cd3ce52448cd3bda34456af95882a3ae00b7 (diff) | |
download | FreeBSD-src-b46715eb45c047352cfcbd2055652d72d46e5deb.zip FreeBSD-src-b46715eb45c047352cfcbd2055652d72d46e5deb.tar.gz |
MFC r257417: Remove references to an unused fasttrap probe hook
Diffstat (limited to 'sys/i386/i386')
-rw-r--r-- | sys/i386/i386/trap.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index 3fe7c0c..f9a5bff 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -123,9 +123,8 @@ dtrace_doubletrap_func_t dtrace_doubletrap_func; systrace_probe_func_t systrace_probe_func; /* - * These hooks are necessary for the pid, usdt and fasttrap providers. + * These hooks are necessary for the pid and usdt providers. */ -dtrace_fasttrap_probe_ptr_t dtrace_fasttrap_probe_ptr; dtrace_pid_probe_ptr_t dtrace_pid_probe_ptr; dtrace_return_probe_ptr_t dtrace_return_probe_ptr; #endif @@ -139,7 +138,7 @@ void dblfault_handler(void); extern inthand_t IDTVEC(lcall_syscall); -#define MAX_TRAP_MSG 33 +#define MAX_TRAP_MSG 32 static char *trap_msg[] = { "", /* 0 unused */ "privileged instruction fault", /* 1 T_PRIVINFLT */ @@ -174,8 +173,6 @@ static char *trap_msg[] = { "reserved (unknown) fault", /* 30 T_RESERVED */ "", /* 31 unused (reserved) */ "DTrace pid return trap", /* 32 T_DTRACE_RET */ - "DTrace fasttrap probe trap", /* 33 T_DTRACE_PROBE */ - }; #if defined(I586_CPU) && !defined(NO_F00F_HACK) @@ -275,15 +272,10 @@ trap(struct trapframe *frame) * handled the trap and modified the trap frame so that this * function can return normally. */ - if (type == T_DTRACE_PROBE || type == T_DTRACE_RET || - type == T_BPTFLT) { + if (type == T_DTRACE_RET || type == T_BPTFLT) { struct reg regs; fill_frame_regs(frame, ®s); - if (type == T_DTRACE_PROBE && - dtrace_fasttrap_probe_ptr != NULL && - dtrace_fasttrap_probe_ptr(®s) == 0) - goto out; if (type == T_BPTFLT && dtrace_pid_probe_ptr != NULL && dtrace_pid_probe_ptr(®s) == 0) |