Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1beee96b authored by Frederic Weisbecker's avatar Frederic Weisbecker
Browse files

ftrace: Rename set_bootup_ftrace into set_cmdline_ftrace



set_cmdline_ftrace is a better match against what does this function:
apply a tracer name from the kernel command line.

Reported-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
parent 06f43d66
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -129,7 +129,7 @@ static int tracing_set_tracer(const char *buf);
static char bootup_tracer_buf[MAX_TRACER_SIZE] __initdata;
static char bootup_tracer_buf[MAX_TRACER_SIZE] __initdata;
static char *default_bootup_tracer;
static char *default_bootup_tracer;


static int __init set_bootup_ftrace(char *str)
static int __init set_cmdline_ftrace(char *str)
{
{
	strncpy(bootup_tracer_buf, str, MAX_TRACER_SIZE);
	strncpy(bootup_tracer_buf, str, MAX_TRACER_SIZE);
	default_bootup_tracer = bootup_tracer_buf;
	default_bootup_tracer = bootup_tracer_buf;
@@ -137,7 +137,7 @@ static int __init set_bootup_ftrace(char *str)
	ring_buffer_expanded = 1;
	ring_buffer_expanded = 1;
	return 1;
	return 1;
}
}
__setup("ftrace=", set_bootup_ftrace);
__setup("ftrace=", set_cmdline_ftrace);


static int __init set_ftrace_dump_on_oops(char *str)
static int __init set_ftrace_dump_on_oops(char *str)
{
{