tracing: Allow for modules to convert their enums to values
[deliverable/linux.git] / kernel / module.c
index b3d634ed06c94f1b2ce986293d0cda84078d4a46..d8f8ab271c2b93910cf994486e743a36338b44d2 100644 (file)
@@ -2753,6 +2753,9 @@ static int find_module_sections(struct module *mod, struct load_info *info)
        mod->trace_events = section_objs(info, "_ftrace_events",
                                         sizeof(*mod->trace_events),
                                         &mod->num_trace_events);
+       mod->trace_enums = section_objs(info, "_ftrace_enum_map",
+                                       sizeof(*mod->trace_enums),
+                                       &mod->num_trace_enums);
 #endif
 #ifdef CONFIG_TRACING
        mod->trace_bprintk_fmt_start = section_objs(info, "__trace_printk_fmt",
This page took 0.058983 seconds and 5 git commands to generate.