Lines Matching defs:reactors
244 snprintf(path, MAX_PATH, "rv/monitors/%s/reactors", monitor_name);
246 debug_msg("ikm: write \"%s\" reactors: %d\n", reactor, retval);
252 * ikm_read_reactor - read the reactors file
255 * available reactors, or NULL on error.
260 char *reactors;
262 snprintf(path, MAX_PATH, "rv/monitors/%s/reactors", monitor_name);
263 reactors = tracefs_instance_file_read(NULL, path, NULL);
264 if (!reactors) {
265 err_msg("ikm: fail reading monitor's %s reactors file\n", monitor_name);
269 return reactors;
275 * Reads the reactors file and find the currently enabled
283 char *reactors = ikm_read_reactor(monitor_name);
288 if (!reactors)
291 start = strstr(reactors, "[");
311 free(reactors);
646 * ikm_usage_print_reactors - print all available reactors, one per line.
650 char *reactors = tracefs_instance_file_read(NULL, "rv/available_reactors", NULL);
653 if (!reactors)
656 fprintf(stderr, " available reactors:");
658 start = reactors;
759 "ikm: failed to read current reactor, are reactors enabled?");