arm64: ftrace: Change CONFIG_FTRACE_WITH_REGS to CONFIG_DYNAMIC_FTRACE_WITH_REGS
PATCH 1/1 arm64: ftrace: Change CONFIG_FTRACE_WITH_REGS to CONFIG_DYNAMIC_FTRACE_WITH_REGS
CONFIG_FTRACE_WITH_REGS does not exist as a Kconfig symbol.
---
I don't have the hardware, so I can't tell if this is a correct change, but it is a logical one.
Found by a test script that looks for IS_ENABLED(FOO) where FOO must also exist in Kconfig files.
arch/arm64/kernel/ftrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/kernel/ftrace.c +2 -1
@@ -69,7 +69,8 @@ static struct plt_entry *get_ftrace_plt(struct module *mod, unsigned long addr)if (addr ==FTRACE_ADDR )return &plt[FTRACE_PLT_IDX ]; -if (addr ==FTRACE_REGS_ADDR &&IS_ENABLED (CONFIG_FTRACE_WITH_REGS )) +if (addr ==FTRACE_REGS_ADDR && +IS_ENABLED (CONFIG_DYNAMIC_FTRACE_WITH_REGS ))return &plt[FTRACE_REGS_PLT_IDX ];#endif return NULL ;
Will Deacon
maintainerQuoted 19 lines · Joe Perches
CONFIG_FTRACE_WITH_REGSdoes not exist as aKconfigsymbol.Signed-off-by Joe Perches <[email protected]>---
I don't have the hardware, so I can't tell if this is a correct change, but it is a logical one.
Found by a test script that looks for
IS_ENABLED(FOO)where FOO must also exist inKconfigfiles.arch/arm64/kernel/ftrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/arm64/kernel/ftrace.c +0
-0
arch/arm64/kernel/ftrace.c static struct plt_entry *get_ftrace_plt(struct module *mod, unsigned long addr) · line 74
Quoted 7 lines
arch/arm64/kernel/ftrace.c +2
-1@@ -69,7 +69,8 @@ static struct plt_entry *get_ftrace_plt(struct module *mod, unsigned long addr)if (addr ==FTRACE_ADDR )return &plt[FTRACE_PLT_IDX ]; -if (addr ==FTRACE_REGS_ADDR &&IS_ENABLED (CONFIG_FTRACE_WITH_REGS )) +if (addr ==FTRACE_REGS_ADDR && +IS_ENABLED (CONFIG_DYNAMIC_FTRACE_WITH_REGS ))return &plt[FTRACE_REGS_PLT_IDX ];
Ha! So much for 100-char lines ;)
(fix looks good to me, I'll queue it for -rc1)
Will
Quoted 19 lines · Joe Perches
CONFIG_FTRACE_WITH_REGSdoes not exist as aKconfigsymbol.Signed-off-by Joe Perches <[email protected]>---
I don't have the hardware, so I can't tell if this is a correct change, but it is a logical one.
Found by a test script that looks for
IS_ENABLED(FOO)where FOO must also exist inKconfigfiles.arch/arm64/kernel/ftrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/arm64/kernel/ftrace.c +0
-0
arch/arm64/kernel/ftrace.c static struct plt_entry *get_ftrace_plt(struct module *mod, unsigned long addr) · line 74
Quoted 7 lines
arch/arm64/kernel/ftrace.c +2
-1@@ -69,7 +69,8 @@ static struct plt_entry *get_ftrace_plt(struct module *mod, unsigned long addr)if (addr ==FTRACE_ADDR )return &plt[FTRACE_PLT_IDX ]; -if (addr ==FTRACE_REGS_ADDR &&IS_ENABLED (CONFIG_FTRACE_WITH_REGS )) +if (addr ==FTRACE_REGS_ADDR && +IS_ENABLED (CONFIG_DYNAMIC_FTRACE_WITH_REGS ))return &plt[FTRACE_REGS_PLT_IDX ];
This was my bad; I broke this among some cleanup, and evidently I did not test that as well as I thought I had.
This should be backported, so we should add:
Looks good to me, so:
Thanks,
Mark.
Quoted 1 line · Joe Perches
CONFIG_FTRACE_WITH_REGSdoes not exist as aKconfigsymbol.
Applied to arm64 (for-next/core), thanks!
[1/1] arm64: ftrace: Change CONFIG_FTRACE_WITH_REGS to CONFIG_DYNAMIC_FTRACE_WITH_REGS
https://git.kernel.org/arm64/c/91970bef48d6
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev