From 4a7c5799b4e66a314168cdcb04cb8e49b4334513 Mon Sep 17 00:00:00 2001 From: Sagar Taunk Date: Sun, 27 Sep 2026 12:57:03 +0000 Subject: rust_binder: add call site for `trace_transaction_update_buffer_release()` Call `trace_transaction_update_buffer_release()` when an outdated oneway transaction is superseded by a newer one. Signed-off-by: Sagar Taunk Link: https://patch.msgid.link/20260927125622.676342-5-sagartaunk@proton.me Signed-off-by: Greg Kroah-Hartman --- drivers/android/binder/transaction.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/android') diff --git a/drivers/android/binder/transaction.rs b/drivers/android/binder/transaction.rs index 888a9e0eba8f..e56272b00be4 100644 --- a/drivers/android/binder/transaction.rs +++ b/drivers/android/binder/transaction.rs @@ -24,6 +24,7 @@ use crate::{ process::{Process, ProcessInner}, ptr_align, thread::{PushWorkRes, Thread}, + trace::trace_transaction_update_buffer_release, BinderReturnWriter, DArc, DLArc, DTRWrap, DeliverToRead, }; @@ -356,6 +357,7 @@ impl Transaction { 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 -- cgit v1.2.3