diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-08-06 21:56:26 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-08-06 21:56:26 +0000 |
| commit | f6b61a6442b9cf2bd9ce7ce0c5927323be166052 (patch) | |
| tree | c66b37f3f3780f3795652efc097c7f739ce73300 /sys | |
| parent | 3659f747f162ac3b131d9c0d4e887f891641181d (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/i386/i386/trap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index de8f099461fbb..fd3c89c3e0bd6 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -983,6 +983,9 @@ syscall(frame) ktrsyscall(code, narg, args); #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. @@ -1050,6 +1053,9 @@ syscall(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]); |
