mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
trace: rename trace.c enum functions
Rename the init and trace_enum_jmp_to_tail() routines to reflect their use by more than enumerated types. Link: http://lkml.kernel.org/r/20170531215653.3240-7-jeremy.linton@arm.com Signed-off-by: Jeremy Linton <jeremy.linton@arm.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
1793ed939b
commit
5f60b351a7
1 changed files with 6 additions and 6 deletions
|
@ -4837,7 +4837,7 @@ static const struct file_operations tracing_enum_map_fops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline union trace_eval_map_item *
|
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 tail of array given the head */
|
||||||
return ptr + ptr->head.length + 1;
|
return ptr + ptr->head.length + 1;
|
||||||
|
@ -4872,7 +4872,7 @@ trace_insert_enum_map_file(struct module *mod, struct trace_eval_map **start,
|
||||||
else {
|
else {
|
||||||
ptr = trace_eval_maps;
|
ptr = trace_eval_maps;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
ptr = trace_enum_jmp_to_tail(ptr);
|
ptr = trace_eval_jmp_to_tail(ptr);
|
||||||
if (!ptr->tail.next)
|
if (!ptr->tail.next)
|
||||||
break;
|
break;
|
||||||
ptr = ptr->tail.next;
|
ptr = ptr->tail.next;
|
||||||
|
@ -7735,7 +7735,7 @@ struct dentry *tracing_init_dentry(void)
|
||||||
extern struct trace_eval_map *__start_ftrace_eval_maps[];
|
extern struct trace_eval_map *__start_ftrace_eval_maps[];
|
||||||
extern struct trace_eval_map *__stop_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;
|
int len;
|
||||||
|
|
||||||
|
@ -7775,14 +7775,14 @@ static void trace_module_remove_enums(struct module *mod)
|
||||||
while (map) {
|
while (map) {
|
||||||
if (map->head.mod == mod)
|
if (map->head.mod == mod)
|
||||||
break;
|
break;
|
||||||
map = trace_enum_jmp_to_tail(map);
|
map = trace_eval_jmp_to_tail(map);
|
||||||
last = &map->tail.next;
|
last = &map->tail.next;
|
||||||
map = map->tail.next;
|
map = map->tail.next;
|
||||||
}
|
}
|
||||||
if (!map)
|
if (!map)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
*last = trace_enum_jmp_to_tail(map)->tail.next;
|
*last = trace_eval_jmp_to_tail(map)->tail.next;
|
||||||
kfree(map);
|
kfree(map);
|
||||||
out:
|
out:
|
||||||
mutex_unlock(&trace_eval_mutex);
|
mutex_unlock(&trace_eval_mutex);
|
||||||
|
@ -7839,7 +7839,7 @@ static __init int tracer_init_tracefs(void)
|
||||||
trace_create_file("saved_cmdlines_size", 0644, d_tracer,
|
trace_create_file("saved_cmdlines_size", 0644, d_tracer,
|
||||||
NULL, &tracing_saved_cmdlines_size_fops);
|
NULL, &tracing_saved_cmdlines_size_fops);
|
||||||
|
|
||||||
trace_enum_init();
|
trace_eval_init();
|
||||||
|
|
||||||
trace_create_enum_file(d_tracer);
|
trace_create_enum_file(d_tracer);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue