Skip to contentSkip to conversation

parisc: select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY

PATCH Applied Sami Tolvanen 3 participants 4 messages Feb 24, 2021 – Feb 25, 2021 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 parisc: select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY

parisc uses -fpatchable-function-entry with dynamic ftrace, which means we don't need recordmcount. Select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY to tell that to the build system.

Fixes 3b15cdc15956 ("tracing: move function tracer options to Kconfig")
---
 arch/parisc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/parisc/Kconfig +1 -0
index ecef9aff9d72..f56c67bbe495 100644
@@ -61,6 +61,7 @@ config PARISC
 	select HAVE_KRETPROBES
 	select HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1)
 	select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE
+	select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if DYNAMIC_FTRACE
 	select HAVE_KPROBES_ON_FTRACE
 	select HAVE_DYNAMIC_FTRACE_WITH_REGS
 	select SET_FS

base-commit: 062c84fccc4444805738d76a2699c4d3c95184ec

Signature · 1 line
2.30.0.617.g56c4b15f3c-goog
Tested-by on v2 1/1
#1 lore raw
Quoted 7 lines · Sami Tolvanen

parisc uses -fpatchable-function-entry with dynamic ftrace, which means we don't need recordmcount. Select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY to tell that to the build system.

Fixes 3b15cdc15956 ("tracing: move function tracer options to Kconfig")

Guenter

Quoted 21 lines
---
 arch/parisc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/parisc/Kconfig +1 -0
index ecef9aff9d72..f56c67bbe495 100644
@@ -61,6 +61,7 @@ config PARISC
 	select HAVE_KRETPROBES
 	select HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1)
 	select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE
+	select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if DYNAMIC_FTRACE
 	select HAVE_KPROBES_ON_FTRACE
 	select HAVE_DYNAMIC_FTRACE_WITH_REGS
 	select SET_FS

base-commit: 062c84fccc4444805738d76a2699c4d3c95184ec

Signature · 1 line
2.30.0.617.g56c4b15f3c-goog
Reviewed-by Tested-by on v2 1/1
#2 lore raw
In reply to Sami Tolvanen
Quoted 7 lines · Sami Tolvanen

parisc uses -fpatchable-function-entry with dynamic ftrace, which means we don't need recordmcount. Select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY to tell that to the build system.

Fixes 3b15cdc15956 ("tracing: move function tracer options to Kconfig")

Cross-build tested for defconfig, allmodconfig, allyesconfig:

-Kees

Quoted 21 lines
---
 arch/parisc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/parisc/Kconfig +1 -0
index ecef9aff9d72..f56c67bbe495 100644
@@ -61,6 +61,7 @@ config PARISC
 	select HAVE_KRETPROBES
 	select HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1)
 	select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE
+	select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if DYNAMIC_FTRACE
 	select HAVE_KPROBES_ON_FTRACE
 	select HAVE_DYNAMIC_FTRACE_WITH_REGS
 	select SET_FS

base-commit: 062c84fccc4444805738d76a2699c4d3c95184ec

Signature · 1 line
2.30.0.617.g56c4b15f3c-goog
Signature · 1 line
Kees Cook
Applied
#3 lore raw
In reply to Sami Tolvanen
Quoted 3 lines · Sami Tolvanen

parisc uses -fpatchable-function-entry with dynamic ftrace, which means we don't need recordmcount. Select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY to tell that to the build system.

Applied to kspp/clang-lto, thanks!

[1/1] parisc: select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY

      https://git.kernel.org/kees/c/3d1dc719bca9
Signature · 1 line
Kees Cook