Add ftrace direct call for arm64
JIRA: https://issues.redhat.com/browse/RHEL-101598
This series backport the ftrace direct call on arm64 [1] that is needed for LSM BPF.
It depends on the "Refactor ftrace direct call APIs" [2] and "arm64/ftrace: Add support for DYNAMIC_FTRACE_WITH_CALL_OPS" [3] series.
The "arm64/ftrace: move to DYNAMIC_FTRACE_WITH_ARGS" [4] series was also backported. That one might not have been strictly necessary, but it keeps the backport closer to upstream.
[1] https://lore.kernel.org/all/20230405180250.2046566-1-revest@chromium.org/
[2] https://lore.kernel.org/all/20230321140424.345218-1-revest@chromium.org/
[3] https://lore.kernel.org/all/20230123134603.1064407-1-mark.rutland@arm.com/
[4] https://lore.kernel.org/all/20221103170520.931305-1-mark.rutland@arm.com/
Ommited-fix: 68a63a412d18b ("arm64: Fix build with CC=clang, CONFIG_FTRACE=y and CONFIG_STACK_TRACER=y")
This commit has been squashed upstream by the merge of 2aa6ac03516d078c ("arm64: ftrace: Add direct call support") and is basically folded in the backport of said patch. The final fix is brought by commit aa67524f ("arm64: fix selection of HAVE_DYNAMIC_FTRACE_WITH_ARGS").
Signed-off-by: Jerome Marchand jmarchan@redhat.com