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

Commit 00fd61ae authored by Steven Rostedt's avatar Steven Rostedt Committed by Ingo Molnar
Browse files

ftrace: do not init module on ftrace disabled



If one of the self tests of ftrace has disabled the function tracer,
do not run the code to convert the mcount calls in modules.

Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 98a983aa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -307,7 +307,7 @@ void ftrace_release(void *start, unsigned long size)
	unsigned long e = s + size;
	int i;

	if (!start)
	if (ftrace_disabled || !start)
		return;

	/* No interrupt should call this */
@@ -1567,7 +1567,7 @@ static int ftrace_convert_nops(unsigned long *start,

void ftrace_init_module(unsigned long *start, unsigned long *end)
{
	if (start == end)
	if (ftrace_disabled || start == end)
		return;
	ftrace_convert_nops(start, end);
}