diff options
author | cognet <cognet@FreeBSD.org> | 2004-11-20 00:55:57 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-11-20 00:55:57 +0000 |
commit | d28f2052538d58cdcb59f35be3f08600f36792f8 (patch) | |
tree | 75986e6dcb8db4310c7f88e04b8dc8e951f72def /sys/arm | |
parent | 339fc9c24a395f116b20424910d55c5acadb414e (diff) | |
download | FreeBSD-src-d28f2052538d58cdcb59f35be3f08600f36792f8.zip FreeBSD-src-d28f2052538d58cdcb59f35be3f08600f36792f8.tar.gz |
Increase cnt.v_syscall and cnt.v_trap when needed.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/trap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arm/arm/trap.c b/sys/arm/arm/trap.c index 0500dbe..9bc390d 100644 --- a/sys/arm/arm/trap.c +++ b/sys/arm/arm/trap.c @@ -247,6 +247,7 @@ data_abort_handler(trapframe_t *tf) td = curthread; p = td->td_proc; + atomic_add_int(&cnt.v_trap, 1); /* Data abort came from user mode? */ user = TRAP_USERMODE(tf); @@ -711,6 +712,7 @@ prefetch_abort_handler(trapframe_t *tf) td = curthread; p = td->td_proc; + atomic_add_int(&cnt.v_trap, 1); if (TRAP_USERMODE(tf)) { td->td_frame = tf; @@ -861,6 +863,7 @@ syscall(struct thread *td, trapframe_t *frame, u_int32_t insn) int locked = 0; u_int sticks = 0; + atomic_add_int(&cnt.v_syscall, 1); sticks = td->td_sticks; if (td->td_ucred != td->td_proc->p_ucred) cred_update_thread(td); |