aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c
index e797812a4d95..a0394706f10c 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -18,6 +18,7 @@
18*/ 18*/
19#include <linux/module.h> 19#include <linux/module.h>
20#include <linux/moduleloader.h> 20#include <linux/moduleloader.h>
21#include <linux/ftrace_event.h>
21#include <linux/init.h> 22#include <linux/init.h>
22#include <linux/kallsyms.h> 23#include <linux/kallsyms.h>
23#include <linux/fs.h> 24#include <linux/fs.h>
@@ -2172,6 +2173,12 @@ static noinline struct module *load_module(void __user *umod,
2172 sizeof(*mod->tracepoints), 2173 sizeof(*mod->tracepoints),
2173 &mod->num_tracepoints); 2174 &mod->num_tracepoints);
2174#endif 2175#endif
2176#ifdef CONFIG_EVENT_TRACING
2177 mod->trace_events = section_objs(hdr, sechdrs, secstrings,
2178 "_ftrace_events",
2179 sizeof(*mod->trace_events),
2180 &mod->num_trace_events);
2181#endif
2175 2182
2176#ifdef CONFIG_MODVERSIONS 2183#ifdef CONFIG_MODVERSIONS
2177 if ((mod->num_syms && !mod->crcs) 2184 if ((mod->num_syms && !mod->crcs)