diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2006-08-11 18:42:49 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2006-08-11 18:42:49 +0000 |
| commit | a30b079b02d3fe9ddefbdd47778a8dabfa34f256 (patch) | |
| tree | 4efbf7db94817424e913e55fa84b33f837674852 /sys/amd64 | |
| parent | 0d4465906fc81176fb1e2b2cf9e425a67eee9001 (diff) | |
Notes
Diffstat (limited to 'sys/amd64')
| -rw-r--r-- | sys/amd64/ia32/ia32_syscall.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/amd64/ia32/ia32_syscall.c b/sys/amd64/ia32/ia32_syscall.c index 312d8df84b14..b70e83a7dfe2 100644 --- a/sys/amd64/ia32/ia32_syscall.c +++ b/sys/amd64/ia32/ia32_syscall.c @@ -171,6 +171,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. @@ -184,7 +187,7 @@ ia32_syscall(struct trapframe frame) STOPEVENT(p, S_SCE, narg); - PTRACESTOP_SC(p, td, S_PT_SCE); + PTRACESTOP_SC(p, td, S_PT_SCE); error = (*callp->sy_call)(td, args64); } @@ -238,6 +241,8 @@ ia32_syscall(struct trapframe frame) */ userret(td, &frame, sticks); + 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]); |
