Skip to contentSkip to conversation

probes: Updates for v7.2

GIT PULL Merged Masami Hiramatsu (Google) 2 participants 2 messages Jun 16

lore
Share & tools
lore
#0 lore raw

Hi Linus,

Probes updates for v7.2

- eprobes: BTF support for dereferencing pointers
. tracing/eprobes: Allow use of BTF names to dereference pointers. Add syntax
to the parsing of eprobes to typecast structure pointer trace event fields, enabling BTF-based dereferencing instead of relying on manual offsets.

- probes: Improvements and robustness enhancements
. tracing: Use flexible array for entry fetch code. Store probe entry fetch
instructions in the probe_entry_arg allocation via a flexible array member to simplify memory allocation and lifetime management.
. tracing: Replace BUG_ON with lockdep_assert_held in uprobe_buffer functions.
Replace BUG_ON() calls with lockdep_assert_held() in uprobe buffer enable/disable paths to prevent kernel crashes and better verify lock ownership.
. tracing/probes: Ensure the uprobe buffer size is bigger than event size.
Add a BUILD_BUG_ON() assertion to guarantee that the per-CPU uprobe working buffer size is always larger than the maximum probe event size.

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

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

Tag SHA1: ccffe554d710dba03357fc8d0c1f76ffc9d38f5b Head SHA1: 69efd863a78584b9416ed6be0e1e7349124b4a00

Masami Hiramatsu (Google) (1):
tracing/probes: Ensure the uprobe buffer size is bigger than event size

Rosen Penev (1):
tracing: Use flexible array for entry fetch code

Steven Rostedt (1):
tracing/eprobes: Allow use of BTF names to dereference pointers

Yash Suthar (1):
tracing: Replace BUG_ON with lockdep_assert_held in uprobe_buffer functions

----

 Documentation/trace/eprobetrace.rst |   4 +
 kernel/trace/trace_probe.c          | 181 +++++++++++++++++++++++++++++-------
 kernel/trace/trace_probe.h          |   7 +-
 kernel/trace/trace_uprobe.c         |   5 +-
 4 files changed, 159 insertions(+), 38 deletions(-)
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>
merge bot Merged
#1 lore raw
The pull request you sent on Tue, 16 Jun 2026 10:04:22 +0900:

The pull request you sent on Tue, 16 Jun 2026 10:04:22 +0900:

Quoted 1 line

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

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/18ecdd4d0aabc428318bbc2ca6134483a90ea697

Thank you!

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