Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1654661
| From | Jeremy Linton <jeremy.linton@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 06/12] trace: rename trace.c enum functions |
| Date | 2017-06-01 00:00 +0200 |
| Message-ID | <tNjOO-28K-41@gated-at.bofh.it> (permalink) |
| References | <tNjON-28K-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Rename the init and trace_enum_jmp_to_tail() routines
to reflect their use by more than enumerated types.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
---
kernel/trace/trace.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index e1bc56c..5eda252 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -4810,7 +4810,7 @@ static const struct file_operations tracing_enum_map_fops = {
};
static inline union trace_eval_map_item *
-trace_enum_jmp_to_tail(union trace_eval_map_item *ptr)
+trace_eval_jmp_to_tail(union trace_eval_map_item *ptr)
{
/* Return tail of array given the head */
return ptr + ptr->head.length + 1;
@@ -4845,7 +4845,7 @@ trace_insert_enum_map_file(struct module *mod, struct trace_eval_map **start,
else {
ptr = trace_eval_maps;
for (;;) {
- ptr = trace_enum_jmp_to_tail(ptr);
+ ptr = trace_eval_jmp_to_tail(ptr);
if (!ptr->tail.next)
break;
ptr = ptr->tail.next;
@@ -7707,7 +7707,7 @@ struct dentry *tracing_init_dentry(void)
extern struct trace_eval_map *__start_ftrace_eval_maps[];
extern struct trace_eval_map *__stop_ftrace_eval_maps[];
-static void __init trace_enum_init(void)
+static void __init trace_eval_init(void)
{
int len;
@@ -7747,14 +7747,14 @@ static void trace_module_remove_enums(struct module *mod)
while (map) {
if (map->head.mod == mod)
break;
- map = trace_enum_jmp_to_tail(map);
+ map = trace_eval_jmp_to_tail(map);
last = &map->tail.next;
map = map->tail.next;
}
if (!map)
goto out;
- *last = trace_enum_jmp_to_tail(map)->tail.next;
+ *last = trace_eval_jmp_to_tail(map)->tail.next;
kfree(map);
out:
mutex_unlock(&trace_eval_mutex);
@@ -7811,7 +7811,7 @@ static __init int tracer_init_tracefs(void)
trace_create_file("saved_cmdlines_size", 0644, d_tracer,
NULL, &tracing_saved_cmdlines_size_fops);
- trace_enum_init();
+ trace_eval_init();
trace_create_enum_file(d_tracer);
--
2.9.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/12] trace: add the ability to parse sizeof() Jeremy Linton <jeremy.linton@arm.com> - 2017-06-01 00:00 +0200 [PATCH 07/12] trace: rename enum_map functions Jeremy Linton <jeremy.linton@arm.com> - 2017-06-01 00:00 +0200 [PATCH 09/12] tracing: define TRACE_DEFINE_SIZEOF() macro to map sizeof's to their values Jeremy Linton <jeremy.linton@arm.com> - 2017-06-01 00:00 +0200 [PATCH 06/12] trace: rename trace.c enum functions Jeremy Linton <jeremy.linton@arm.com> - 2017-06-01 00:00 +0200 [PATCH 03/12] trace: rename struct module entry for trace enums Jeremy Linton <jeremy.linton@arm.com> - 2017-06-01 00:00 +0200 [PATCH 11/12] tracing: Add TRACE_DEFINE_SIZEOF() macros Jeremy Linton <jeremy.linton@arm.com> - 2017-06-01 00:00 +0200 Re: [PATCH 00/12] trace: add the ability to parse sizeof() Steven Rostedt <rostedt@goodmis.org> - 2017-06-01 03:20 +0200
csiph-web