diff options
author | peter <peter@FreeBSD.org> | 2004-08-16 22:56:20 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-08-16 22:56:20 +0000 |
commit | 9f0b195d9f476a621d3469ca8e84548d543f405b (patch) | |
tree | 409e678f5573a82a71e47ea8be70f36ef5ebdf6e /sys/amd64 | |
parent | 795682e917fe907acc02843d5d809c70eb561e59 (diff) | |
download | FreeBSD-src-9f0b195d9f476a621d3469ca8e84548d543f405b.zip FreeBSD-src-9f0b195d9f476a621d3469ca8e84548d543f405b.tar.gz |
Sync with i386 - trace syscall entry/exit times, and a cosmetic fix.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/trap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index e1064f6..f12b288 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -286,7 +286,7 @@ trap(frame) */ if (kdb_on_nmi) { printf ("NMI ... going to debugger\n"); - kdb_trap (type, 0, &frame); + kdb_trap(type, 0, &frame); } #endif /* KDB */ goto userout; @@ -747,6 +747,9 @@ syscall(frame) ktrsyscall(code, narg, argp); #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); + if (error == 0) { td->td_retval[0] = 0; td->td_retval[1] = frame.tf_rdx; @@ -810,6 +813,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]); |