[for-linus][PATCH 0/5] tracing: Minor fixes and clean ups

Steven Rostedt
2023-07-11T14:07:21Z

Tracing fixes and clean ups:

- Fix some missing-prototype warnings

- Fix user events struct args (did not include size of struct)
When creating a user event, the "struct" keyword is to denote
that the size of the field will be passed in. But the parsing
failed to handle this case.

- Fix sample code for direct trampolines.
The sample code for direct trampolines attached to handle_mm_fault().
But the prototype changed and the direct trampoline sample code
was not updated. Direct trampolines needs to have the arguments correct
otherwise it can fail or crash the system.

- Remove unused ftrace_regs_caller_ret() prototype.

git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace/core

Head SHA1: 46b77ea28faeed56f1d1b63f9049c40b9eb3cbf5

Arnd Bergmann (1):
tracing: arm64: Avoid missing-prototype warnings

Beau Belgrave (1):
tracing/user_events: Fix struct arg size match check

Florent Revest (2):
samples: ftrace: Save required argument registers in sample trampolines
arm64: ftrace: Add direct call trampoline samples support

YueHaibing (1):
x86/ftrace: Remove unsued extern declaration ftrace_regs_caller_ret()

----
arch/arm64/Kconfig | 2 ++
arch/arm64/include/asm/ftrace.h | 4 +++
arch/arm64/include/asm/syscall.h | 3 +++
arch/arm64/kernel/syscall.c | 3 ---
arch/x86/kernel/ftrace.c | 1 -
include/linux/ftrace.h | 8 ++++++
kernel/trace/fgraph.c | 1 +
kernel/trace/ftrace_internal.h | 5 ++--
kernel/trace/trace_events_user.c | 3 +++
kernel/trace/trace_kprobe_selftest.c | 3 +++
samples/ftrace/ftrace-direct-modify.c | 34 ++++++++++++++++++++++++
samples/ftrace/ftrace-direct-multi-modify.c | 40 +++++++++++++++++++++++++++++
samples/ftrace/ftrace-direct-multi.c | 25 ++++++++++++++++++
samples/ftrace/ftrace-direct-too.c | 40 ++++++++++++++++++++++++-----
samples/ftrace/ftrace-direct.c | 24 +++++++++++++++++
15 files changed, 184 insertions(+), 12 deletions(-)