/illumos-gate/usr/src/uts/common/os/ |
H A D | msacct.c | 107 ms->ms_prev = LMS_SYSTEM; in init_mstate() 264 ms->ms_acct[LMS_SYSTEM] + ms->ms_acct[LMS_TRAP]; in mstate_thread_onproc_time() 272 if (mstate == LMS_USER || mstate == LMS_SYSTEM || mstate == LMS_TRAP) { in mstate_thread_onproc_time() 323 aggr_onp = ms->ms_acct[LMS_SYSTEM]; in mstate_systhread_times() 333 if (mstate == LMS_SYSTEM && state_start < waitrq) in mstate_systhread_times() 367 if (a_state == LMS_SYSTEM) in mstate_aggr_state() 383 if (a_state == LMS_SYSTEM) { in mstate_aggr_state() 432 } else if (fromms == LMS_SYSTEM) { in syscall_mstate() 628 return (LMS_SYSTEM); in new_mstate() 644 mstimep = &ms->ms_acct[LMS_SYSTEM]; in new_mstate() [all …]
|
H A D | clock_process.c | 59 hrt += mstate_aggr_state(p, LMS_SYSTEM); in clock_process_gettime()
|
H A D | main.c | 359 init_mstate(curthread, LMS_SYSTEM); in start_init_common() 462 init_mstate(&t0, LMS_SYSTEM); in main()
|
H A D | exit.c | 862 hrstime = mstate_aggr_state(p, LMS_SYSTEM); in proc_exit() 867 p->p_acct[LMS_SYSTEM] += p->p_cacct[LMS_SYSTEM]; in proc_exit() 1394 p->p_nextofkin->p_cacct[LMS_SYSTEM] += p->p_acct[LMS_SYSTEM]; in freeproc()
|
H A D | acct.c | 411 NSEC_TO_TICK(p->p_acct[LMS_SYSTEM] + p->p_acct[LMS_TRAP])); in acct()
|
H A D | exacct.c | 363 tu->tu_stime += mstate_aggr_state(p, LMS_SYSTEM); in exacct_snapshot_task_usage() 415 tu->tu_stime += mstate_aggr_state(p, LMS_SYSTEM); in exacct_update_task_mstate() 945 hrt2ts(mstate_aggr_state(p, LMS_SYSTEM), &ts); in exacct_calculate_proc_usage() 1768 tu->tu_stime = mstate_aggr_state(p, LMS_SYSTEM); in exacct_snapshot_proc_mstate()
|
H A D | timers.c | 683 case LMS_SYSTEM: in realprofexpire() 687 mstate = LMS_SYSTEM; in realprofexpire()
|
/illumos-gate/usr/src/uts/i86pc/ml/ |
H A D | syscall_asm_amd64.S | 521 MSTATE_TRANSITION(LMS_USER, LMS_SYSTEM) 572 MSTATE_TRANSITION(LMS_SYSTEM, LMS_USER) 730 MSTATE_TRANSITION(LMS_USER, LMS_SYSTEM) 735 MSTATE_TRANSITION(LMS_SYSTEM, LMS_USER) 821 MSTATE_TRANSITION(LMS_USER, LMS_SYSTEM) 890 MSTATE_TRANSITION(LMS_SYSTEM, LMS_USER) 948 MSTATE_TRANSITION(LMS_USER, LMS_SYSTEM) 953 MSTATE_TRANSITION(LMS_SYSTEM, LMS_USER) 1116 MSTATE_TRANSITION(LMS_USER, LMS_SYSTEM) 1169 MSTATE_TRANSITION(LMS_SYSTEM, LMS_USER)
|
H A D | genassym.c | 108 printf("#define\tLMS_SYSTEM 0x%x\n", LMS_SYSTEM); in main()
|
H A D | offsets.in | 161 \#define LWP_ACCT_SYSTEM _CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | times.c | 57 mstate_aggr_state(p, LMS_SYSTEM)); in times() 87 mstate_aggr_state(p, LMS_SYSTEM)); in times32()
|
H A D | rusagesys.c | 64 snsecs = mstate_aggr_state(p, LMS_SYSTEM); in getrusage() 135 snsecs = p->p_cacct[LMS_SYSTEM] + p->p_cacct[LMS_TRAP]; in getrusage_chld() 198 snsecs = ms->ms_acct[LMS_SYSTEM] + ms->ms_acct[LMS_TRAP]; in getrusage_lwp()
|
H A D | lwp_info.c | 52 hrstime = lwp->lwp_mstate.ms_acct[LMS_SYSTEM] + in lwp_info()
|
H A D | lwp_sobj.c | 1346 (void) new_mstate(t, LMS_SYSTEM); in lwp_mutex_timedlock() 1788 (void) new_mstate(t, LMS_SYSTEM); in lwp_cond_wait() 1837 (void) new_mstate(t, LMS_SYSTEM); in lwp_cond_wait() 2661 (void) new_mstate(t, LMS_SYSTEM); in lwp_rwlock_lock() 2697 (void) new_mstate(t, LMS_SYSTEM); in lwp_rwlock_lock() 3122 (void) new_mstate(t, LMS_SYSTEM); in lwp_mutex_trylock()
|
H A D | lwpsys.c | 538 (void) new_mstate(t, LMS_SYSTEM); in lwp_park()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | msacct.h | 36 #define LMS_SYSTEM 1 /* running in sys call or page fault */ macro
|
/illumos-gate/usr/src/uts/sun4/ml/ |
H A D | genconst.c | 111 printf("#define\tLMS_SYSTEM 0x%x\n", LMS_SYSTEM); in main()
|
H A D | offsets.in | 267 \#define LWP_ACCT_SYSTEM (LWP_MS_ACCT + (LMS_SYSTEM * LWP_MS_ACCT_INCR))
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prsubr.c | 916 hrt2ts(mstate_aggr_state(p, LMS_SYSTEM), &sp->pr_stime); in prgetstatus() 1052 sys = ms->ms_acct[LMS_SYSTEM] + ms->ms_acct[LMS_TRAP]; in prgetlwpstatus32() 1162 hrt2ts32(mstate_aggr_state(p, LMS_SYSTEM), &sp->pr_stime); in prgetstatus32() 1280 sys = ms->ms_acct[LMS_SYSTEM] + ms->ms_acct[LMS_TRAP]; in prgetlwpstatus() 2530 hrstime = mstate_aggr_state(p, LMS_SYSTEM); in prgetpsinfo() 3194 hrstime = mstate_aggr_state(p, LMS_SYSTEM); in prgetpsinfo32() 3325 hrstime = lwp->lwp_mstate.ms_acct[LMS_SYSTEM] + in prgetlwpsinfo() 3394 hrstime = lwp->lwp_mstate.ms_acct[LMS_SYSTEM] + in prgetlwpsinfo32() 3607 pup->pr_stime = ms->ms_acct[LMS_SYSTEM]; in prgetusage() 3662 state = LMS_SYSTEM; in prgetusage() [all …]
|
H A D | prioctl.c | 1046 pup->pr_stime = p->p_acct[LMS_SYSTEM]; in prioctl64() 1137 pup->pr_stime = p->p_acct[LMS_SYSTEM]; in prioctl64() 1383 hrt2ts32(mstate_aggr_state(p, LMS_SYSTEM), &sp->pr_stime); in oprgetstatus32() 1530 hrstime = mstate_aggr_state(p, LMS_SYSTEM); in oprgetpsinfo32() 2624 pup->pr_stime = p->p_acct[LMS_SYSTEM]; in prioctl32() 2715 pup->pr_stime = p->p_acct[LMS_SYSTEM]; in prioctl32() 3168 hrt2ts(mstate_aggr_state(p, LMS_SYSTEM), &sp->pr_stime); in oprgetstatus() 3317 hrstime = mstate_aggr_state(p, LMS_SYSTEM); in oprgetpsinfo()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mlsetup.c | 394 init_mstate(&t0, LMS_SYSTEM); in mlsetup()
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | syscall.c | 369 syscall_mstate(LMS_USER, LMS_SYSTEM); in pre_syscall() 893 syscall_mstate(LMS_SYSTEM, LMS_USER); in post_syscall()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | syscall.c | 868 syscall_mstate(LMS_TRAP, LMS_SYSTEM); in dosyscall() 886 syscall_mstate(LMS_SYSTEM, LMS_TRAP); in dosyscall()
|
/illumos-gate/usr/src/uts/sparc/v9/ml/ |
H A D | syscall_trap.S | 235 mov LMS_SYSTEM, %o0
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mlsetup.c | 209 init_mstate(&t0, LMS_SYSTEM); in mlsetup()
|