Lines Matching defs:module

20 #include <linux/module.h>
47 struct module *module;
2707 __register_event(struct trace_event_call *call, struct module *mod)
2719 call->module = mod;
2822 static void add_str_to_module(struct module *module, char *str)
2830 * let the str memory leak when the module is removed.
2832 * a leaked string on module removal.
2837 modstr->module = module;
2881 * If the event is part of a module, then we need to free the string
2882 * when the module is removed. Otherwise, it will stay allocated
2885 if (call->module)
2886 add_str_to_module(call->module, str);
3203 static void trace_module_add_events(struct module *mod)
3212 pr_err("%s: module has bad taint, not creating trace events\n",
3226 static void trace_module_remove_events(struct module *mod)
3233 if ((call->flags & TRACE_EVENT_FL_DYNAMIC) || !call->module)
3235 if (call->module == mod)
3238 /* Check for any strings allocade for this module */
3240 if (modstr->module != mod)
3249 * It is safest to reset the ring buffer if the module being unloaded
3251 * a new module gets loaded, and takes on the same id as the events
3252 * of this module. When printing out the buffer, traced events left
3253 * over from this module may be passed to the new module events and
3262 struct module *mod = data;
3282 .priority = 1, /* higher than trace.c module notify */
3350 * increment the event's module refcount to prevent it from being
3354 * trace_array_put() and decrement the event's module refcount.
3411 * event's module refcount.
3781 WARN_ON_ONCE(call->module))
4111 pr_warn("Failed to register trace events module notifier\n");