Lines Matching refs:state
49 * Buffer containing DTrace program to track CPU idle state transitions
52 ":::idle-state-transition"
56 " self->state = arg0;"
59 ":::idle-state-transition"
62 " @number[self->state] = count();"
63 " @times[self->state] = sum(timestamp - self->start);"
65 " self->state = 0;"
72 ":::idle-state-transition"
77 " self->state = arg0;"
80 ":::idle-state-transition"
84 " @number[self->state] = count();"
85 " @times[self->state] = sum(timestamp - self->start);"
87 " self->state = 0;"
93 * Perform setup necessary to track CPU idle state transitions
153 * The DTrace probes have been enabled, and are tracking CPU idle state
166 * be the default "0" state. The DTrace walker will reallocate
187 * in each C state and update the number of C states in g_max_cstate
207 * collected during firings of the idle-state-transition probe.
209 * XXX A way of querying the current idle state for a CPU is needed in addition
218 uint64_t n = 0, state;
226 state = *(uint32_t *)(data->dtada_data +
231 state = *(uint64_t *)(data->dtada_data +
242 g_cstate_info[state].events += n;
250 g_cstate_info[state].last_time = n;
251 g_cstate_info[state].total_time += n;