Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/subr_syscall.c
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
#include <security/audit/audit.h> | #include <security/audit/audit.h> | ||||
static inline int | static inline int | ||||
syscallenter(struct thread *td, struct syscall_args *sa) | syscallenter(struct thread *td, struct syscall_args *sa) | ||||
{ | { | ||||
struct proc *p; | struct proc *p; | ||||
int error, traced; | int error, traced; | ||||
PCPU_INC(cnt.v_syscall); | VM_CNT_INC(v_syscall); | ||||
p = td->td_proc; | p = td->td_proc; | ||||
td->td_pticks = 0; | td->td_pticks = 0; | ||||
if (td->td_cowgen != p->p_cowgen) | if (td->td_cowgen != p->p_cowgen) | ||||
thread_cow_update(td); | thread_cow_update(td); | ||||
traced = (p->p_flag & P_TRACED) != 0; | traced = (p->p_flag & P_TRACED) != 0; | ||||
if (traced || td->td_dbgflags & TDB_USERWR) { | if (traced || td->td_dbgflags & TDB_USERWR) { | ||||
PROC_LOCK(p); | PROC_LOCK(p); | ||||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |