mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT PULL] probes: Updates for v7.4
@ 2026-10-22  0:14 Masami Hiramatsu
  2026-10-23 22:26 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Masami Hiramatsu @ 2026-10-22  0:14 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Alexander Gordeev, Bradley Morgan, Kees Cook, Masami Hiramatsu,
	Steven Rostedt, Masami Hiramatsu, linux-kernel

Hi Linus,

Probes updates for v7.4:

- kprobes: Asynchronous optprobe optimizer and cleanups
  . Make optprobe optimizer multi-generational and asynchronous: Rework
    the optimizer as a state machine to avoid calling time-consuming
    synchronize_rcu_tasks() while holding kprobe_mutex, text_mutex, and
    cpus_read_lock(). Uses call_rcu_tasks() and a fixed ring of generation
    slots instead, so locks are only held during the brief instruction-
    patching window.
  . Use DEFINE_DEBUGFS_ATTRIBUTE for the kprobes enabled knob: Replace a
    hand-rolled debugfs read/write pair (dating from 2007) with the proper
    DEFINE_DEBUGFS_ATTRIBUTE macro, removing dead code and the stale XXX
    comment.

- tracing/probes: Code quality and documentation cleanups
  . Add const qualifier to new_argv allocation type in trace_probe.c,
    preparing for the type-aware kmalloc_obj allocator conversion.
  . Clarify btf_find_struct_member() container parameter: Rename the
    misleading @member_type parameter to @container_type and add proper
    kernel-doc documentation for all parameters and return values.

- selftests/ftrace: Boot tracing test framework and testcases
  . Add a generic boot tracing test framework under
    tools/testing/selftests/ftrace/boottime/. The test runner builds a
    minimal initramfs with busybox, boots QEMU, and runs tracefs checker
    scripts, supporting bootconfig, kernel command-line options, and
    multi-boot crash/reboot scenarios.
  . Add boot-time tracing testcases: Verify dynamic kprobe, synthetic
    events, eprobe, fprobe, tprobe, and trace instance creation via
    bootconfig.
  . Add kernel cmdline tracing testcases: Verify ftrace, trace_event,
    trace_buf_size, trace_options, trace_clock, and trace_instance kernel
    parameters.
  . Add persistent ring buffer testcases: Verify memory reservation via
    reserve_mem= and trace data retention across guest crash/reboot, as
    well as backup instance creation and boot log preservation.
  . Change non-unique test symbol from name_show to init_once in
    kprobe_non_uniq_symbol.tc for more reliable cross-architecture
    testing.


Please pull the latest probes-v7.4 tree, which can be found at:


  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
probes-v7.4

Tag SHA1: 81b0103429bc0286c4ea57ba2d496b452f653a44
Head SHA1: d4d028a7ae6401ce70825a3eb663f0a2dfc49db6


Alexander Gordeev (1):
      ftrace/selftests: Change non-unique test symbol to init_once

Bradley Morgan (1):
      kprobes: use DEFINE_DEBUGFS_ATTRIBUTE for the enabled knob

Kees Cook (1):
      tracing/probes: Add const to new_argv allocation type

Masami Hiramatsu (Google) (6):
      selftests/ftrace: Add generic boot tracing test framework
      selftests/ftrace: Add boot-time tracing testcases
      selftests/ftrace: Add kernel cmdline tracing testcases
      selftests/ftrace: Add persistent ring buffer testcases
      kprobes: Make optprobe optimizer multi-generational and asynchronous
      tracing/probes: Clarify btf_find_struct_member() container parameter and add kernel-doc

----
 kernel/kprobes.c                                   | 514 +++++++++++++++------
 kernel/trace/trace_btf.c                           |  34 +-
 kernel/trace/trace_btf.h                           |   2 +-
 kernel/trace/trace_probe.c                         |   8 +-
 tools/testing/selftests/ftrace/Makefile            |   4 +-
 tools/testing/selftests/ftrace/boottime-ktap       |   6 +
 tools/testing/selftests/ftrace/boottime/Makefile   |  10 +
 tools/testing/selftests/ftrace/boottime/README     |  74 +++
 .../ftrace/boottime/bootconfigs/01-kprobe.bconf    |   4 +
 .../ftrace/boottime/bootconfigs/02-synth.bconf     |   4 +
 .../ftrace/boottime/bootconfigs/03-eprobe.bconf    |   4 +
 .../ftrace/boottime/bootconfigs/04-fprobe.bconf    |   4 +
 .../ftrace/boottime/bootconfigs/05-tprobe.bconf    |   4 +
 .../ftrace/boottime/bootconfigs/06-instance.bconf  |   5 +
 .../boottime/cmdlines/cmdline-01-ftrace.cmdline    |   1 +
 .../cmdlines/cmdline-02-trace-event.cmdline        |   1 +
 .../cmdlines/cmdline-03-trace-buf-size.cmdline     |   1 +
 .../cmdlines/cmdline-04-trace-options.cmdline      |   1 +
 .../cmdlines/cmdline-05-trace-clock.cmdline        |   1 +
 .../cmdlines/cmdline-06-trace-instance.cmdline     |   1 +
 .../cmdlines/persistent-01-reserve-mem.cmdline     |   1 +
 .../cmdlines/persistent-02-backup-instance.cmdline |   1 +
 .../selftests/ftrace/boottime/run_boottime_test.sh | 403 ++++++++++++++++
 .../selftests/ftrace/boottime/tests/01-kprobe.sh   |  25 +
 .../selftests/ftrace/boottime/tests/02-synth.sh    |  25 +
 .../selftests/ftrace/boottime/tests/03-eprobe.sh   |  25 +
 .../selftests/ftrace/boottime/tests/04-fprobe.sh   |  25 +
 .../selftests/ftrace/boottime/tests/05-tprobe.sh   |  25 +
 .../selftests/ftrace/boottime/tests/06-instance.sh |  30 ++
 .../ftrace/boottime/tests/cmdline-01-ftrace.sh     |  19 +
 .../boottime/tests/cmdline-02-trace-event.sh       |  26 ++
 .../boottime/tests/cmdline-03-trace-buf-size.sh    |  29 ++
 .../boottime/tests/cmdline-04-trace-options.sh     |  23 +
 .../boottime/tests/cmdline-05-trace-clock.sh       |  19 +
 .../boottime/tests/cmdline-06-trace-instance.sh    |  24 +
 .../boottime/tests/persistent-01-reserve-mem.sh    |  28 ++
 .../tests/persistent-02-backup-instance.sh         |  40 ++
 tools/testing/selftests/ftrace/config              |   6 +
 .../ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc |   2 +-
 39 files changed, 1289 insertions(+), 170 deletions(-)
 create mode 100755 tools/testing/selftests/ftrace/boottime-ktap
 create mode 100644 tools/testing/selftests/ftrace/boottime/Makefile
 create mode 100644 tools/testing/selftests/ftrace/boottime/README
 create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/01-kprobe.bconf
 create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/02-synth.bconf
 create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/03-eprobe.bconf
 create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/04-fprobe.bconf
 create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/05-tprobe.bconf
 create mode 100644 tools/testing/selftests/ftrace/boottime/bootconfigs/06-instance.bconf
 create mode 100644 tools/testing/selftests/ftrace/boottime/cmdlines/cmdline-01-ftrace.cmdline
 create mode 100644 tools/testing/selftests/ftrace/boottime/cmdlines/cmdline-02-trace-event.cmdline
 create mode 100644 tools/testing/selftests/ftrace/boottime/cmdlines/cmdline-03-trace-buf-size.cmdline
 create mode 100644 tools/testing/selftests/ftrace/boottime/cmdlines/cmdline-04-trace-options.cmdline
 create mode 100644 tools/testing/selftests/ftrace/boottime/cmdlines/cmdline-05-trace-clock.cmdline
 create mode 100644 tools/testing/selftests/ftrace/boottime/cmdlines/cmdline-06-trace-instance.cmdline
 create mode 100644 tools/testing/selftests/ftrace/boottime/cmdlines/persistent-01-reserve-mem.cmdline
 create mode 100644 tools/testing/selftests/ftrace/boottime/cmdlines/persistent-02-backup-instance.cmdline
 create mode 100755 tools/testing/selftests/ftrace/boottime/run_boottime_test.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/01-kprobe.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/02-synth.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/03-eprobe.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/04-fprobe.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/05-tprobe.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/06-instance.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/cmdline-01-ftrace.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/cmdline-02-trace-event.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/cmdline-03-trace-buf-size.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/cmdline-04-trace-options.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/cmdline-05-trace-clock.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/cmdline-06-trace-instance.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/persistent-01-reserve-mem.sh
 create mode 100644 tools/testing/selftests/ftrace/boottime/tests/persistent-02-backup-instance.sh
---------------------------
-- 
Masami Hiramatsu (Google) <mhiramat@kernel.org>




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] probes: Updates for v7.4
  2026-10-22  0:14 [GIT PULL] probes: Updates for v7.4 Masami Hiramatsu
@ 2026-10-23 22:26 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2026-10-23 22:26 UTC (permalink / raw)
  To: Masami Hiramatsu (Google)
  Cc: Linus Torvalds, Alexander Gordeev, Bradley Morgan, Kees Cook,
	Masami Hiramatsu (Google),
	Steven Rostedt, Masami Hiramatsu, linux-kernel

The pull request you sent on Thu, 22 Oct 2026 09:14:39 +0900:

> git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git probes-v7.4

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/3f942403bbad36a120432be69445154891b65398

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-23 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22  0:14 [GIT PULL] probes: Updates for v7.4 Masami Hiramatsu
2026-10-23 22:26 ` pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®