Lines Matching defs:reactors
173 snprintf(path, MAX_PATH, "rv/monitors/%s/reactors", monitor_name);
175 debug_msg("ikm: write \"%s\" reactors: %d\n", reactor, retval);
181 * ikm_read_reactor - read the reactors file
184 * available reactors, or NULL on error.
189 char *reactors;
191 snprintf(path, MAX_PATH, "rv/monitors/%s/reactors", monitor_name);
192 reactors = tracefs_instance_file_read(NULL, path, NULL);
193 if (!reactors) {
194 err_msg("ikm: fail reading monitor's %s reactors file\n", monitor_name);
198 return reactors;
204 * Reads the reactors file and find the currently enabled
212 char *reactors = ikm_read_reactor(monitor_name);
217 if (!reactors)
220 start = strstr(reactors, "[");
240 free(reactors);
500 * ikm_usage_print_reactors - print all available reactors, one per line.
504 char *reactors = tracefs_instance_file_read(NULL, "rv/available_reactors", NULL);
507 if (!reactors)
510 fprintf(stderr, " available reactors:");
512 start = reactors;
613 "ikm: failed to read current reactor, are reactors enabled?");