Increase cnt.v_syscall and cnt.v_trap when needed.
This commit is contained in:
parent
339fc9c24a
commit
d28f205253
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user