]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: Refactor ftrace_{en/dis}able_ftrace_graph_caller
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 20 Dec 2021 16:38:31 +0000 (16:38 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Feb 2022 10:03:11 +0000 (21:03 +1100)
commit02c253751bf8734ceca76cf4b66f86a6bd7e62ec
treebb456b0b2c3fc10ec8dc28a2bc09aa88e943a7ac
parentcf4e1809c66b4a1ca4c94d843805fd60ff31e381
powerpc/ftrace: Refactor ftrace_{en/dis}able_ftrace_graph_caller

ftrace_enable_ftrace_graph_caller() and
ftrace_disable_ftrace_graph_caller() have common code.

They will have even more common code after following patch.

Refactor into a single ftrace_modify_ftrace_graph_caller() function.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f37785a531f1a8f201e1b3da45997a5c77e9d820.1640017960.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/trace/ftrace.c