• Home
  • Raw
  • Download

Lines Matching refs:state

675 	WARN_ON_ONCE(vtime->state == VTIME_INACTIVE);  in get_vtime_delta()
705 if (vtime->state == VTIME_GUEST) in __vtime_account_kernel()
729 vtime->state = VTIME_USER; in vtime_user_enter()
743 vtime->state = VTIME_SYS; in vtime_user_exit()
760 vtime->state = VTIME_GUEST; in vtime_guest_enter()
772 vtime->state = VTIME_SYS; in vtime_guest_exit()
787 if (vtime->state == VTIME_IDLE) in vtime_task_switch_generic()
791 vtime->state = VTIME_INACTIVE; in vtime_task_switch_generic()
799 vtime->state = VTIME_IDLE; in vtime_task_switch_generic()
801 vtime->state = VTIME_GUEST; in vtime_task_switch_generic()
803 vtime->state = VTIME_SYS; in vtime_task_switch_generic()
816 vtime->state = VTIME_IDLE; in vtime_init_idle()
836 if (vtime->state == VTIME_GUEST) in task_gtime()
868 if (vtime->state < VTIME_SYS) in task_cputime()
877 if (vtime->state == VTIME_SYS) in task_cputime()
886 int state = READ_ONCE(vtime->state); in vtime_state_fetch() local
904 if (state == VTIME_INACTIVE) in vtime_state_fetch()
907 return state; in vtime_state_fetch()
912 if (vtime->state == VTIME_USER) in kcpustat_user_vtime()
914 else if (vtime->state == VTIME_GUEST) in kcpustat_user_vtime()
928 int state; in kcpustat_field_vtime() local
932 state = vtime_state_fetch(vtime, cpu); in kcpustat_field_vtime()
933 if (state < 0) in kcpustat_field_vtime()
934 return state; in kcpustat_field_vtime()
947 if (state == VTIME_SYS) in kcpustat_field_vtime()
959 if (state == VTIME_GUEST && task_nice(tsk) <= 0) in kcpustat_field_vtime()
963 if (state == VTIME_GUEST && task_nice(tsk) > 0) in kcpustat_field_vtime()
1018 int state; in kcpustat_cpu_fetch_vtime() local
1022 state = vtime_state_fetch(vtime, cpu); in kcpustat_cpu_fetch_vtime()
1023 if (state < 0) in kcpustat_cpu_fetch_vtime()
1024 return state; in kcpustat_cpu_fetch_vtime()
1030 if (state < VTIME_SYS) in kcpustat_cpu_fetch_vtime()
1039 if (state == VTIME_SYS) { in kcpustat_cpu_fetch_vtime()
1041 } else if (state == VTIME_USER) { in kcpustat_cpu_fetch_vtime()
1047 WARN_ON_ONCE(state != VTIME_GUEST); in kcpustat_cpu_fetch_vtime()