Lines Matching refs:current
220 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on()
308 pin_kill(task_active_pid_ns(current)->bacct); in SYSCALL_DEFINE1()
434 struct pacct_struct *pacct = ¤t->signal->pacct; in fill_ac()
460 strscpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac()
464 run_time -= current->group_leader->start_time; in fill_ac()
489 spin_lock_irq(¤t->sighand->siglock); in fill_ac()
490 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac()
499 spin_unlock_irq(¤t->sighand->siglock); in fill_ac()
512 ac->ac_pid = task_tgid_nr_ns(current, ns); in fill_ac()
514 ac->ac_ppid = task_tgid_nr_ns(rcu_dereference(current->real_parent), ns); in fill_ac()
548 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process()
551 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; in do_acct_process()
561 struct pacct_struct *pacct = ¤t->signal->pacct; in acct_collect()
565 if (group_dead && current->mm) { in acct_collect()
566 struct mm_struct *mm = current->mm; in acct_collect()
576 spin_lock_irq(¤t->sighand->siglock); in acct_collect()
579 if (thread_group_leader(current)) { in acct_collect()
581 if (current->flags & PF_FORKNOEXEC) in acct_collect()
584 if (current->flags & PF_SUPERPRIV) in acct_collect()
586 if (current->flags & PF_DUMPCORE) in acct_collect()
588 if (current->flags & PF_SIGNALED) in acct_collect()
591 task_cputime(current, &utime, &stime); in acct_collect()
594 pacct->ac_minflt += current->min_flt; in acct_collect()
595 pacct->ac_majflt += current->maj_flt; in acct_collect()
596 spin_unlock_irq(¤t->sighand->siglock); in acct_collect()
623 for (ns = task_active_pid_ns(current); ns != NULL; ns = ns->parent) { in acct_process()