• Home
  • Raw
  • Download

Lines Matching refs:tsk

300 void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times)  in thread_group_cputime()  argument
302 struct signal_struct *sig = tsk->signal; in thread_group_cputime()
316 if (same_thread_group(current, tsk)) in thread_group_cputime()
329 for_each_thread(tsk, t) { in thread_group_cputime()
441 void vtime_account_irq_enter(struct task_struct *tsk) in vtime_account_irq_enter() argument
443 if (!in_interrupt() && is_idle_task(tsk)) in vtime_account_irq_enter()
444 vtime_account_idle(tsk); in vtime_account_irq_enter()
446 vtime_account_system(tsk); in vtime_account_irq_enter()
721 static void __vtime_account_system(struct task_struct *tsk, in __vtime_account_system() argument
726 account_system_time(tsk, irq_count(), vtime->stime); in __vtime_account_system()
731 static void vtime_account_guest(struct task_struct *tsk, in vtime_account_guest() argument
736 account_guest_time(tsk, vtime->gtime); in vtime_account_guest()
741 void vtime_account_system(struct task_struct *tsk) in vtime_account_system() argument
743 struct vtime *vtime = &tsk->vtime; in vtime_account_system()
750 if (tsk->flags & PF_VCPU) in vtime_account_system()
751 vtime_account_guest(tsk, vtime); in vtime_account_system()
753 __vtime_account_system(tsk, vtime); in vtime_account_system()
757 void vtime_user_enter(struct task_struct *tsk) in vtime_user_enter() argument
759 struct vtime *vtime = &tsk->vtime; in vtime_user_enter()
762 __vtime_account_system(tsk, vtime); in vtime_user_enter()
767 void vtime_user_exit(struct task_struct *tsk) in vtime_user_exit() argument
769 struct vtime *vtime = &tsk->vtime; in vtime_user_exit()
774 account_user_time(tsk, vtime->utime); in vtime_user_exit()
781 void vtime_guest_enter(struct task_struct *tsk) in vtime_guest_enter() argument
783 struct vtime *vtime = &tsk->vtime; in vtime_guest_enter()
792 __vtime_account_system(tsk, vtime); in vtime_guest_enter()
793 tsk->flags |= PF_VCPU; in vtime_guest_enter()
798 void vtime_guest_exit(struct task_struct *tsk) in vtime_guest_exit() argument
800 struct vtime *vtime = &tsk->vtime; in vtime_guest_exit()
803 vtime_account_guest(tsk, vtime); in vtime_guest_exit()
804 tsk->flags &= ~PF_VCPU; in vtime_guest_exit()
809 void vtime_account_idle(struct task_struct *tsk) in vtime_account_idle() argument
811 account_idle_time(get_vtime_delta(&tsk->vtime)); in vtime_account_idle()