aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNeel Natu <neel@FreeBSD.org>2010-02-04 06:42:30 +0000
committerNeel Natu <neel@FreeBSD.org>2010-02-04 06:42:30 +0000
commitce735fb428496a7a3bd0364ffb9e5ef30914838b (patch)
tree91f2ff503c7c66343383a05fe90c16877859e9a4 /sys
parent2f9f616df9c3453c9c7536092fd23545976fc74c (diff)
downloadsrc-ce735fb428496a7a3bd0364ffb9e5ef30914838b.tar.gz
src-ce735fb428496a7a3bd0364ffb9e5ef30914838b.zip
Get system call tracing using ktrace working for mips.
Notes
Notes: svn path=/head/; revision=203476
Diffstat (limited to 'sys')
-rw-r--r--sys/mips/mips/trap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/mips/mips/trap.c b/sys/mips/mips/trap.c
index 6f5b2aeebb80..5fdfabdb33ba 100644
--- a/sys/mips/mips/trap.c
+++ b/sys/mips/mips/trap.c
@@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
#include "opt_ddb.h"
#include "opt_global.h"
+#include "opt_ktrace.h"
#define NO_REG_DEFS 1 /* Prevent asm.h from including regdef.h */
#include <sys/param.h>
@@ -747,7 +748,7 @@ dofault:
td->td_locks));
userret(td, trapframe);
#ifdef KTRACE
- if (KTRPOINT(p, KTR_SYSRET))
+ if (KTRPOINT(td, KTR_SYSRET))
ktrsysret(code, i, td->td_retval[0]);
#endif
/*