• Home
  • Raw
  • Download

Lines Matching refs:state

697 	WARN_ON_ONCE(vtime->state == VTIME_INACTIVE);  in get_vtime_delta()
727 if (vtime->state == VTIME_GUEST) in __vtime_account_kernel()
751 vtime->state = VTIME_USER; in vtime_user_enter()
765 vtime->state = VTIME_SYS; in vtime_user_exit()
782 vtime->state = VTIME_GUEST; in vtime_guest_enter()
794 vtime->state = VTIME_SYS; in vtime_guest_exit()
809 if (vtime->state == VTIME_IDLE) in vtime_task_switch_generic()
813 vtime->state = VTIME_INACTIVE; in vtime_task_switch_generic()
821 vtime->state = VTIME_IDLE; in vtime_task_switch_generic()
823 vtime->state = VTIME_GUEST; in vtime_task_switch_generic()
825 vtime->state = VTIME_SYS; in vtime_task_switch_generic()
838 vtime->state = VTIME_IDLE; in vtime_init_idle()
858 if (vtime->state == VTIME_GUEST) in task_gtime()
892 if (vtime->state < VTIME_SYS) in task_cputime()
902 if (vtime->state == VTIME_SYS) in task_cputime()
913 int state = READ_ONCE(vtime->state); in vtime_state_fetch() local
931 if (state == VTIME_INACTIVE) in vtime_state_fetch()
934 return state; in vtime_state_fetch()
939 if (vtime->state == VTIME_USER) in kcpustat_user_vtime()
941 else if (vtime->state == VTIME_GUEST) in kcpustat_user_vtime()
955 int state; in kcpustat_field_vtime() local
959 state = vtime_state_fetch(vtime, cpu); in kcpustat_field_vtime()
960 if (state < 0) in kcpustat_field_vtime()
961 return state; in kcpustat_field_vtime()
974 if (state == VTIME_SYS) in kcpustat_field_vtime()
986 if (state == VTIME_GUEST && task_nice(tsk) <= 0) in kcpustat_field_vtime()
990 if (state == VTIME_GUEST && task_nice(tsk) > 0) in kcpustat_field_vtime()
1045 int state; in kcpustat_cpu_fetch_vtime() local
1049 state = vtime_state_fetch(vtime, cpu); in kcpustat_cpu_fetch_vtime()
1050 if (state < 0) in kcpustat_cpu_fetch_vtime()
1051 return state; in kcpustat_cpu_fetch_vtime()
1057 if (state < VTIME_SYS) in kcpustat_cpu_fetch_vtime()
1066 if (state == VTIME_SYS) { in kcpustat_cpu_fetch_vtime()
1068 } else if (state == VTIME_USER) { in kcpustat_cpu_fetch_vtime()
1074 WARN_ON_ONCE(state != VTIME_GUEST); in kcpustat_cpu_fetch_vtime()