Get system call tracing using ktrace working for mips.
This commit is contained in:
parent
3e324aa481
commit
c111af420c
@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
#include "opt_global.h"
|
#include "opt_global.h"
|
||||||
|
#include "opt_ktrace.h"
|
||||||
|
|
||||||
#define NO_REG_DEFS 1 /* Prevent asm.h from including regdef.h */
|
#define NO_REG_DEFS 1 /* Prevent asm.h from including regdef.h */
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -747,7 +748,7 @@ trap(struct trapframe *trapframe)
|
|||||||
td->td_locks));
|
td->td_locks));
|
||||||
userret(td, trapframe);
|
userret(td, trapframe);
|
||||||
#ifdef KTRACE
|
#ifdef KTRACE
|
||||||
if (KTRPOINT(p, KTR_SYSRET))
|
if (KTRPOINT(td, KTR_SYSRET))
|
||||||
ktrsysret(code, i, td->td_retval[0]);
|
ktrsysret(code, i, td->td_retval[0]);
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user