Lines Matching refs:state

72 	register State_t*	state = (State_t*)handle;  in key()  local
76 *pn = state->vs.extent; in key()
78 *pn = integralof(state->vm); in key()
80 *pn = state->vs.n_seg; in key()
82 *pn = state->vs.s_busy; in key()
84 *pn = state->vs.n_busy; in key()
86 *pn = state->vs.m_busy; in key()
91 if (state->vs.mode & VM_TRUST) in key()
94 if (state->vs.mode & VM_TRACE) in key()
96 if (state->vs.mode & VM_DBCHECK) in key()
98 if (state->vs.mode & VM_DBABORT) in key()
106 *pn = state->vs.s_free; in key()
108 *pn = state->vs.n_free; in key()
110 *pn = state->vs.m_free; in key()
112 *ps = (char*)state->format; in key()
115 if (state->vs.mode & VM_MTBEST) in key()
117 else if (state->vs.mode & VM_MTPOOL) in key()
119 else if (state->vs.mode & VM_MTLAST) in key()
121 else if (state->vs.mode & VM_MTDEBUG) in key()
123 else if (state->vs.mode & VM_MTPROFILE) in key()
139 State_t* state = (State_t*)handle; in visit() local
141 if (vm != state->vm) in visit()
143 state->vm = vm; in visit()
144 if (state->regions < elementsof(state->region)) in visit()
145 state->region[state->regions++] = vm; in visit()
154 State_t state; in b_vmstate() local
156 memset(&state, 0, sizeof(state)); in b_vmstate()
163 state.format = opt_info.arg; in b_vmstate()
177 if (!state.format) in b_vmstate()
178 state.format = FORMAT; in b_vmstate()
184 vmwalk(NiL, visit, &state); in b_vmstate()
190 for (i = 0; i < state.regions; i++) in b_vmstate()
192 state.vm = state.region[i]; in b_vmstate()
193 vmstat(state.vm, &state.vs); in b_vmstate()
194 sfkeyprintf(sfstdout, &state, state.format, key, NiL); in b_vmstate()