Lines Matching refs:current
224 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on()
332 pin_kill(task_active_pid_ns(current)->bacct); in SYSCALL_DEFINE1()
458 struct pacct_struct *pacct = ¤t->signal->pacct; in fill_ac()
484 strscpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac()
488 run_time -= current->group_leader->start_time; in fill_ac()
513 spin_lock_irq(¤t->sighand->siglock); in fill_ac()
514 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac()
523 spin_unlock_irq(¤t->sighand->siglock); in fill_ac()
536 ac->ac_pid = task_tgid_nr_ns(current, ns); in fill_ac()
538 ac->ac_ppid = task_tgid_nr_ns(rcu_dereference(current->real_parent), ns); in fill_ac()
575 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process()
578 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; in do_acct_process()
588 struct pacct_struct *pacct = ¤t->signal->pacct; in acct_collect()
592 if (group_dead && current->mm) { in acct_collect()
593 struct mm_struct *mm = current->mm; in acct_collect()
603 spin_lock_irq(¤t->sighand->siglock); in acct_collect()
606 if (thread_group_leader(current)) { in acct_collect()
608 if (current->flags & PF_FORKNOEXEC) in acct_collect()
611 if (current->flags & PF_SUPERPRIV) in acct_collect()
613 if (current->flags & PF_DUMPCORE) in acct_collect()
615 if (current->flags & PF_SIGNALED) in acct_collect()
618 task_cputime(current, &utime, &stime); in acct_collect()
621 pacct->ac_minflt += current->min_flt; in acct_collect()
622 pacct->ac_majflt += current->maj_flt; in acct_collect()
623 spin_unlock_irq(¤t->sighand->siglock); in acct_collect()
650 for (ns = task_active_pid_ns(current); ns != NULL; ns = ns->parent) { in acct_process()