[PATCH v2 0/3] rust_binder: add and wire Binder tracepoints

From: Mohamad Alsadhan

Date: Sat Mar 07 2026 - 20:26:02 EST


This series introduces tracepoints for the Rust Binder implementation
and wires them into the relevant execution paths.

The first patch adjusts current naming to match the existing userspace
expectations. The second patch adds many tracepoints that exist in
C binder but not in Rust. The final patch wires the tracepoints into
the corresponding Binder execution paths.

Link: https://github.com/Rust-for-Linux/linux/issues/1226
Suggested-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
Signed-off-by: Mohamad Alsadhan <mo@xxxxxxx>
---
Changes in v2:
- fix broken formatting artifacts (rustfmtcheck passes now)
- Link to v1: https://lore.kernel.org/r/20260307-rust-binder-trace-v1-0-5e03283c6e53@xxxxxxx

---
Mohamad Alsadhan (3):
rust_binder: remove "rust_" prefix from tracepoints
rust_binder: add Rust binder tracepoints
rust_binder: add in the new tracepoint calls

drivers/android/binder/allocation.rs | 1 +
drivers/android/binder/page_range.rs | 17 +++
drivers/android/binder/process.rs | 7 +-
drivers/android/binder/rust_binder.h | 5 +
drivers/android/binder/rust_binder_events.h | 176 +++++++++++++++++++++++++++-
drivers/android/binder/rust_binder_main.rs | 1 +
drivers/android/binder/thread.rs | 15 ++-
drivers/android/binder/trace.rs | 117 +++++++++++++++++-
drivers/android/binder/transaction.rs | 2 +
9 files changed, 329 insertions(+), 12 deletions(-)
---
base-commit: 11439c4635edd669ae435eec308f4ab8a0804808
change-id: 20260307-rust-binder-trace-c3eb49918deb

Best regards,
--
Mohamad Alsadhan <mo@xxxxxxx>