summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2013-10-31 02:35:00 +0000
committermarkj <markj@FreeBSD.org>2013-10-31 02:35:00 +0000
commita5fb1fbfd8ec5b3b112fca82f25072c50ee715c1 (patch)
tree10a3a0c8e0004a200eb68bc4ad21759932c2dfd9 /sys/i386
parentcf9248a5cda83b0ec5fbc57bd655497cf93c4aec (diff)
downloadFreeBSD-src-a5fb1fbfd8ec5b3b112fca82f25072c50ee715c1.zip
FreeBSD-src-a5fb1fbfd8ec5b3b112fca82f25072c50ee715c1.tar.gz
Remove references to an unused fasttrap probe hook, and remove the
corresponding x86 trap type. Userland DTrace probes are currently handled by the other fasttrap hooks (dtrace_pid_probe_ptr and dtrace_return_probe_ptr). Discussed with: rpaulo
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/trap.c14
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, &regs);
- if (type == T_DTRACE_PROBE &&
- dtrace_fasttrap_probe_ptr != NULL &&
- dtrace_fasttrap_probe_ptr(&regs) == 0)
- goto out;
if (type == T_BPTFLT &&
dtrace_pid_probe_ptr != NULL &&
dtrace_pid_probe_ptr(&regs) == 0)
OpenPOWER on IntegriCloud