Skip to content

Commit

Permalink
parisc: select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY
Browse files Browse the repository at this point in the history
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.

Reported-by: Guenter Roeck <[email protected]>
Fixes: 3b15cdc ("tracing: move function tracer options to Kconfig")
Signed-off-by: Sami Tolvanen <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Tested-by: Kees Cook <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
samitolvanen authored and kees committed Feb 25, 2021
1 parent 5e95325 commit 3d1dc71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/parisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d1dc71

Please sign in to comment.