Lines Matching refs:current
196 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on()
290 pin_kill(task_active_pid_ns(current)->bacct); in SYSCALL_DEFINE1()
414 struct pacct_struct *pacct = ¤t->signal->pacct; in fill_ac()
426 strlcpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac()
430 run_time -= current->group_leader->start_time; in fill_ac()
455 spin_lock_irq(¤t->sighand->siglock); in fill_ac()
456 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac()
465 spin_unlock_irq(¤t->sighand->siglock); in fill_ac()
481 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process()
504 ac.ac_pid = task_tgid_nr_ns(current, ns); in do_acct_process()
506 ac.ac_ppid = task_tgid_nr_ns(rcu_dereference(current->real_parent), in do_acct_process()
522 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; in do_acct_process()
533 struct pacct_struct *pacct = ¤t->signal->pacct; in acct_collect()
537 if (group_dead && current->mm) { in acct_collect()
540 mmap_read_lock(current->mm); in acct_collect()
541 vma = current->mm->mmap; in acct_collect()
546 mmap_read_unlock(current->mm); in acct_collect()
549 spin_lock_irq(¤t->sighand->siglock); in acct_collect()
552 if (thread_group_leader(current)) { in acct_collect()
554 if (current->flags & PF_FORKNOEXEC) in acct_collect()
557 if (current->flags & PF_SUPERPRIV) in acct_collect()
559 if (current->flags & PF_DUMPCORE) in acct_collect()
561 if (current->flags & PF_SIGNALED) in acct_collect()
564 task_cputime(current, &utime, &stime); in acct_collect()
567 pacct->ac_minflt += current->min_flt; in acct_collect()
568 pacct->ac_majflt += current->maj_flt; in acct_collect()
569 spin_unlock_irq(¤t->sighand->siglock); in acct_collect()
596 for (ns = task_active_pid_ns(current); ns != NULL; ns = ns->parent) { in acct_process()