From cd001f7b40f9dd1e5dfbf0c436531a03064f9391 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Fri, 4 Dec 2009 00:41:44 -0500 Subject: Add handler to pevent functions Currently pevent uses global variables to store the event types. This will eventually bite us since we may someday want to be able to read multiple files with different formats. This patch adds a handle to pevent, to keep it encapsulated. Signed-off-by: Steven Rostedt --- plugin_mac80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin_mac80211.c') diff --git a/plugin_mac80211.c b/plugin_mac80211.c index bf12bd0..7758b58 100644 --- a/plugin_mac80211.c +++ b/plugin_mac80211.c @@ -194,11 +194,11 @@ static int drv_config(struct trace_seq *s, void *data, return 0; } -int PEVENT_PLUGIN_LOADER(void) +int PEVENT_PLUGIN_LOADER(struct pevent *pevent) { - pevent_register_event_handler(-1, "mac80211", "drv_bss_info_changed", + pevent_register_event_handler(pevent, -1, "mac80211", "drv_bss_info_changed", drv_bss_info_changed); - pevent_register_event_handler(-1, "mac80211", "drv_config", + pevent_register_event_handler(pevent, -1, "mac80211", "drv_config", drv_config); return 0; -- cgit v1.2.2