[GIT PULL] probes: Updates for 6.3

From: Google
Date: Tue Feb 21 2023 - 07:15:28 EST



Hi Linus,

probes updates for 6.3:

- Skip negative return code check for snprintf in eprobe.

- Add recursive call test cases for kprobe unit test

- Add 'char' type to probe events to show it as the character instead of value.

- Update kselftest kprobe-event testcase to ignore '__pfx_' symbols.

- Fix kselftest to check filter on eprobe event correctly.

- Add filter on eprobe to the README file in tracefs.

- Fix optprobes to check whether there is 'under unoptimizing' optprobe when optimizing another kprobe correctly.

- Fix optprobe to check whether there is 'under unoptimizing' optprobe when fetching the original instruction correctly.

- Fix optprobe to free 'forcibly unoptimized' optprobe correctly.


Please pull the latest probes-v6.3 tree, which can be found at:


git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
probes-v6.3

Tag SHA1: 7aa067de8b9767c68e828eabb15b830175dc0325
Head SHA1: c96abaec78f34366b3ddf1c6be52ca5c1241e15b


Donglin Peng (1):
tracing/probe: add a char type to show the character value of traced arguments

Masami Hiramatsu (Google) (5):
kprobes: Fix to handle forcibly unoptimized kprobes on freeing_list
tracing/eprobe: Fix to add filter on eprobe description in README file
selftests/ftrace: Fix eprobe syntax test case to check filter support
selftests/ftrace: Fix probepoint testcase to ignore __pfx_* symbols
test_kprobes: Add recursed kprobe test case

Quanfa Fu (1):
tracing/eprobe: no need to check for negative ret value for snprintf

Yang Jihong (2):
x86/kprobes: Fix __recover_optprobed_insn check optimizing logic
x86/kprobes: Fix arch_check_optimized_kprobe check within optimized_kprobe range

----
Documentation/trace/kprobetrace.rst | 3 +-
arch/x86/kernel/kprobes/opt.c | 6 +--
include/linux/kprobes.h | 2 +
kernel/kprobes.c | 27 ++++++-------
kernel/trace/trace.c | 4 +-
kernel/trace/trace_eprobe.c | 12 ++----
kernel/trace/trace_probe.c | 2 +
kernel/trace/trace_probe.h | 1 +
lib/test_kprobes.c | 39 +++++++++++++++++-
.../test.d/dynevent/eprobes_syntax_errors.tc | 4 +-
.../ftrace/test.d/kprobe/kprobe_args_char.tc | 47 ++++++++++++++++++++++
.../selftests/ftrace/test.d/kprobe/probepoint.tc | 2 +-
12 files changed, 116 insertions(+), 33 deletions(-)
create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc
---------------------------

--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>