From d832089727940c20baeb04e3e758321140630059 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 27 Jul 2006 21:25:50 +0000 Subject: Add KTR_SYSC tracing to the syscall() implementations that didn't have it yet. MFC after: 1 week --- sys/amd64/ia32/ia32_syscall.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/amd64/ia32') diff --git a/sys/amd64/ia32/ia32_syscall.c b/sys/amd64/ia32/ia32_syscall.c index c8349bd..5b3086a 100644 --- a/sys/amd64/ia32/ia32_syscall.c +++ b/sys/amd64/ia32/ia32_syscall.c @@ -172,6 +172,9 @@ ia32_syscall(struct trapframe frame) 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. @@ -245,6 +248,8 @@ ia32_syscall(struct trapframe frame) */ userret(td, &frame); + 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]); -- cgit v1.1