Lines Matching defs:module

20 #include <linux/module.h>
47 struct module *module;
2719 __register_event(struct trace_event_call *call, struct module *mod)
2731 call->module = mod;
2834 static void add_str_to_module(struct module *module, char *str)
2842 * let the str memory leak when the module is removed.
2844 * a leaked string on module removal.
2849 modstr->module = module;
2893 * If the event is part of a module, then we need to free the string
2894 * when the module is removed. Otherwise, it will stay allocated
2897 if (call->module)
2898 add_str_to_module(call->module, str);
3215 static void trace_module_add_events(struct module *mod)
3224 pr_err("%s: module has bad taint, not creating trace events\n",
3238 static void trace_module_remove_events(struct module *mod)
3245 if ((call->flags & TRACE_EVENT_FL_DYNAMIC) || !call->module)
3247 if (call->module == mod)
3250 /* Check for any strings allocade for this module */
3252 if (modstr->module != mod)
3261 * It is safest to reset the ring buffer if the module being unloaded
3263 * a new module gets loaded, and takes on the same id as the events
3264 * of this module. When printing out the buffer, traced events left
3265 * over from this module may be passed to the new module events and
3274 struct module *mod = data;
3294 .priority = 1, /* higher than trace.c module notify */
3362 * increment the event's module refcount to prevent it from being
3366 * trace_array_put() and decrement the event's module refcount.
3423 * event's module refcount.
3793 WARN_ON_ONCE(call->module))
4123 pr_warn("Failed to register trace events module notifier\n");