Lines Matching refs:list
115 char **list = NULL; in traceevent_plugin_list_options() local
122 char **temp = list; in traceevent_plugin_list_options()
129 list = realloc(list, count + 2); in traceevent_plugin_list_options()
130 if (!list) { in traceevent_plugin_list_options()
131 list = temp; in traceevent_plugin_list_options()
135 list[count++] = name; in traceevent_plugin_list_options()
136 list[count] = NULL; in traceevent_plugin_list_options()
139 return list; in traceevent_plugin_list_options()
143 free(list[count]); in traceevent_plugin_list_options()
144 free(list); in traceevent_plugin_list_options()
149 void traceevent_plugin_free_options_list(char **list) in traceevent_plugin_free_options_list() argument
153 if (!list) in traceevent_plugin_free_options_list()
156 if (list == INVALID_PLUGIN_LIST_OPTION) in traceevent_plugin_free_options_list()
159 for (i = 0; list[i]; i++) in traceevent_plugin_free_options_list()
160 free(list[i]); in traceevent_plugin_free_options_list()
162 free(list); in traceevent_plugin_free_options_list()
275 const struct plugin_list *list) in traceevent_print_plugins() argument
277 while (list) { in traceevent_print_plugins()
278 trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix); in traceevent_print_plugins()
279 list = list->next; in traceevent_print_plugins()
289 struct plugin_list *list; in load_plugin() local
322 list = malloc(sizeof(*list)); in load_plugin()
323 if (!list) { in load_plugin()
328 list->next = *plugin_list; in load_plugin()
329 list->handle = handle; in load_plugin()
330 list->name = plugin; in load_plugin()
331 *plugin_list = list; in load_plugin()
442 struct plugin_list *list = NULL; in traceevent_load_plugins() local
444 load_plugins(pevent, ".so", load_plugin, &list); in traceevent_load_plugins()
445 return list; in traceevent_load_plugins()
452 struct plugin_list *list; in traceevent_unload_plugins() local
455 list = plugin_list; in traceevent_unload_plugins()
456 plugin_list = list->next; in traceevent_unload_plugins()
457 func = dlsym(list->handle, PEVENT_PLUGIN_UNLOADER_NAME); in traceevent_unload_plugins()
460 dlclose(list->handle); in traceevent_unload_plugins()
461 free(list->name); in traceevent_unload_plugins()
462 free(list); in traceevent_unload_plugins()