[PATCH 4/4] rust_binder: add call site for `trace_transaction_update_buffer_release()`

From: Sagar Taunk

Date: Sun Sep 27 2026 - 08:57:34 EST


Call `trace_transaction_update_buffer_release()` when an outdated
oneway transaction is superseded by a newer one.

Signed-off-by: Sagar Taunk <sagartaunk@xxxxxxxxx>
---
drivers/android/binder/transaction.rs | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/android/binder/transaction.rs b/drivers/android/binder/transaction.rs
index 245f1556b5db..ff5ff23d8488 100644
--- a/drivers/android/binder/transaction.rs
+++ b/drivers/android/binder/transaction.rs
@@ -24,6 +24,7 @@
process::{Process, ProcessInner},
ptr_align,
thread::{PushWorkRes, Thread},
+ trace::trace_transaction_update_buffer_release,
BinderReturnWriter, DArc, DLArc, DTRWrap, DeliverToRead,
};

@@ -355,6 +356,7 @@ pub(crate) fn submit(self: DLArc<Self>, info: &mut TransactionInfo) -> BinderRes
if let Some(t_outdated) =
target_node.take_outdated_transaction(&self, &mut process_inner)
{
+ trace_transaction_update_buffer_release(t_outdated.debug_id);
let mut alloc_guard = t_outdated.allocation.lock();
if let Some(alloc) = (*alloc_guard).as_mut() {
// Take the oneway node to prevent `Allocation::drop` from calling
--
2.55.0