diff options
Diffstat (limited to 'tools/lib/traceevent/event-plugin.c')
-rw-r--r-- | tools/lib/traceevent/event-plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/traceevent/event-plugin.c b/tools/lib/traceevent/event-plugin.c index 125f5676bcb5..0c8bf6780e4d 100644 --- a/tools/lib/traceevent/event-plugin.c +++ b/tools/lib/traceevent/event-plugin.c | |||
@@ -197,7 +197,7 @@ traceevent_load_plugins(struct pevent *pevent) | |||
197 | } | 197 | } |
198 | 198 | ||
199 | void | 199 | void |
200 | traceevent_unload_plugins(struct plugin_list *plugin_list) | 200 | traceevent_unload_plugins(struct plugin_list *plugin_list, struct pevent *pevent) |
201 | { | 201 | { |
202 | pevent_plugin_unload_func func; | 202 | pevent_plugin_unload_func func; |
203 | struct plugin_list *list; | 203 | struct plugin_list *list; |
@@ -207,7 +207,7 @@ traceevent_unload_plugins(struct plugin_list *plugin_list) | |||
207 | plugin_list = list->next; | 207 | plugin_list = list->next; |
208 | func = dlsym(list->handle, PEVENT_PLUGIN_UNLOADER_NAME); | 208 | func = dlsym(list->handle, PEVENT_PLUGIN_UNLOADER_NAME); |
209 | if (func) | 209 | if (func) |
210 | func(); | 210 | func(pevent); |
211 | dlclose(list->handle); | 211 | dlclose(list->handle); |
212 | free(list->name); | 212 | free(list->name); |
213 | free(list); | 213 | free(list); |