提交 02fd7f68 编写于 作者: J Jeremy Linton 提交者: Steven Rostedt (VMware)

trace: rename kernel enum section to eval

The kernel and its modules have sections containing the enum
string to value conversions. Rename this section because we
intend to store more than enums in it.

Link: http://lkml.kernel.org/r/20170531215653.3240-2-jeremy.linton@arm.comSigned-off-by: NJeremy Linton <jeremy.linton@arm.com>
Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
上级 6a5ae63a
...@@ -125,9 +125,9 @@ ...@@ -125,9 +125,9 @@
VMLINUX_SYMBOL(__start_ftrace_events) = .; \ VMLINUX_SYMBOL(__start_ftrace_events) = .; \
KEEP(*(_ftrace_events)) \ KEEP(*(_ftrace_events)) \
VMLINUX_SYMBOL(__stop_ftrace_events) = .; \ VMLINUX_SYMBOL(__stop_ftrace_events) = .; \
VMLINUX_SYMBOL(__start_ftrace_enum_maps) = .; \ VMLINUX_SYMBOL(__start_ftrace_eval_maps) = .; \
KEEP(*(_ftrace_enum_map)) \ KEEP(*(_ftrace_eval_map)) \
VMLINUX_SYMBOL(__stop_ftrace_enum_maps) = .; VMLINUX_SYMBOL(__stop_ftrace_eval_maps) = .;
#else #else
#define FTRACE_EVENTS() #define FTRACE_EVENTS()
#endif #endif
......
...@@ -43,7 +43,7 @@ TRACE_MAKE_SYSTEM_STR(); ...@@ -43,7 +43,7 @@ TRACE_MAKE_SYSTEM_STR();
.enum_value = a \ .enum_value = a \
}; \ }; \
static struct trace_enum_map __used \ static struct trace_enum_map __used \
__attribute__((section("_ftrace_enum_map"))) \ __attribute__((section("_ftrace_eval_map"))) \
*TRACE_SYSTEM##_##a = &__##TRACE_SYSTEM##_##a *TRACE_SYSTEM##_##a = &__##TRACE_SYSTEM##_##a
/* /*
......
...@@ -3077,7 +3077,7 @@ static int find_module_sections(struct module *mod, struct load_info *info) ...@@ -3077,7 +3077,7 @@ static int find_module_sections(struct module *mod, struct load_info *info)
mod->trace_events = section_objs(info, "_ftrace_events", mod->trace_events = section_objs(info, "_ftrace_events",
sizeof(*mod->trace_events), sizeof(*mod->trace_events),
&mod->num_trace_events); &mod->num_trace_events);
mod->trace_enums = section_objs(info, "_ftrace_enum_map", mod->trace_enums = section_objs(info, "_ftrace_eval_map",
sizeof(*mod->trace_enums), sizeof(*mod->trace_enums),
&mod->num_trace_enums); &mod->num_trace_enums);
#endif #endif
......
...@@ -7732,15 +7732,15 @@ struct dentry *tracing_init_dentry(void) ...@@ -7732,15 +7732,15 @@ struct dentry *tracing_init_dentry(void)
return NULL; return NULL;
} }
extern struct trace_enum_map *__start_ftrace_enum_maps[]; extern struct trace_enum_map *__start_ftrace_eval_maps[];
extern struct trace_enum_map *__stop_ftrace_enum_maps[]; extern struct trace_enum_map *__stop_ftrace_eval_maps[];
static void __init trace_enum_init(void) static void __init trace_enum_init(void)
{ {
int len; int len;
len = __stop_ftrace_enum_maps - __start_ftrace_enum_maps; len = __stop_ftrace_eval_maps - __start_ftrace_eval_maps;
trace_insert_enum_map(NULL, __start_ftrace_enum_maps, len); trace_insert_enum_map(NULL, __start_ftrace_eval_maps, len);
} }
#ifdef CONFIG_MODULES #ifdef CONFIG_MODULES
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册