diff options
author | jhb <jhb@FreeBSD.org> | 2006-07-27 21:25:50 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-07-27 21:25:50 +0000 |
commit | d832089727940c20baeb04e3e758321140630059 (patch) | |
tree | 1813963b0b82f0b1f12e4f23f585709371fc9598 /sys/ia64/ia32 | |
parent | 4a3cc37070bfef294651ec1db11ed58c79d378c9 (diff) | |
download | FreeBSD-src-d832089727940c20baeb04e3e758321140630059.zip FreeBSD-src-d832089727940c20baeb04e3e758321140630059.tar.gz |
Add KTR_SYSC tracing to the syscall() implementations that didn't have it
yet.
MFC after: 1 week
Diffstat (limited to 'sys/ia64/ia32')
-rw-r--r-- | sys/ia64/ia32/ia32_trap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/ia64/ia32/ia32_trap.c b/sys/ia64/ia32/ia32_trap.c index 07c7d2e..c3cacf5 100644 --- a/sys/ia64/ia32/ia32_trap.c +++ b/sys/ia64/ia32/ia32_trap.c @@ -113,6 +113,9 @@ ia32_syscall(struct trapframe *tf) if (KTRPOINT(td, KTR_SYSCALL)) ktrsyscall(code, narg, args64); #endif + CTR4(KTR_SYSC, "syscall enter thread %p pid %d proc %s code %d", td, + td->td_proc->p_pid, td->td_proc->p_comm, code); + /* * Try to run the syscall without Giant if the syscall * is MP safe. @@ -179,6 +182,11 @@ ia32_syscall(struct trapframe *tf) trapsignal(td, &ksi); } + /* + * End of syscall tracing. + */ + CTR4(KTR_SYSC, "syscall exit thread %p pid %d proc %s code %d", td, + td->td_proc->p_pid, td->td_proc->p_comm, code); #ifdef KTRACE if (KTRPOINT(td, KTR_SYSRET)) ktrsysret(code, error, td->td_retval[0]); |