Lines Matching full:monitors

23 /* Define pointers to all monitors.  */
32 static struct cpuidle_monitor *monitors[MONITORS_MAX]; variable
106 need_len = monitors[mon]->hw_states_num * (MAX_COL_WIDTH + 1) in print_header()
110 sprintf(buf, "%s", monitors[mon]->name); in print_header()
126 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in print_header()
129 s = monitors[mon]->hw_states[state]; in print_header()
166 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in print_results()
170 s = monitors[mon]->hw_states[state]; in print_results()
191 monitors[mon]->name, s.name); in print_results()
211 /* param: string passed by -m param (The list of monitors to show)
213 * Monitors must have been registered already, matching monitors
214 * are picked out and available monitors array is overridden
217 * Monitors get sorted in the same order the user passes them
239 if (!strcmp(monitors[num]->name, token)) { in parse_monitor_param()
241 tmp_mons[hits] = monitors[num]; in parse_monitor_param()
251 /* Override detected/registerd monitors array with requested one */ in parse_monitor_param()
252 memcpy(monitors, tmp_mons, in parse_monitor_param()
266 monitors[mon]->name, monitors[mon]->hw_states_num, in list_monitors()
267 monitors[mon]->overflow_s); in list_monitors()
269 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in list_monitors()
270 s = monitors[mon]->hw_states[state]; in list_monitors()
293 monitors[num]->start(); in fork_it()
314 monitors[num]->stop(); in fork_it()
335 monitors[num]->name, monitors[num]->hw_states_num); in do_interval_measure()
336 monitors[num]->start(); in do_interval_measure()
346 monitors[num]->stop(); in do_interval_measure()
418 monitors[avail_monitors] = test_mon; in cmd_monitor()
425 printf(_("No HW Cstate monitors found\n")); in cmd_monitor()
463 if (monitors[num]->unregister) in cmd_monitor()
464 monitors[num]->unregister(); in cmd_monitor()