mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
rust_binder: allocation: call trace_transaction_failed_buffer_release()
Call `trace_transaction_failed_buffer_release()` when transaction fails in `NewAllocation`'s destructor. This provides visibility into the failed buffer releases. Signed-off-by: Sagar Taunk <sagartaunk@proton.me> Link: https://patch.msgid.link/20260927125622.676342-3-sagartaunk@proton.me Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
710da9d05b
commit
e2e4a4527d
|
|
@ -20,6 +20,7 @@
|
|||
defs::*,
|
||||
node::{Node, NodeRef},
|
||||
process::Process,
|
||||
trace::trace_transaction_failed_buffer_release,
|
||||
DArc,
|
||||
};
|
||||
|
||||
|
|
@ -325,6 +326,12 @@ fn deref_mut(&mut self) -> &mut Allocation {
|
|||
}
|
||||
}
|
||||
|
||||
impl Drop for NewAllocation {
|
||||
fn drop(&mut self) {
|
||||
trace_transaction_failed_buffer_release(self.debug_id);
|
||||
}
|
||||
}
|
||||
|
||||
/// A view into the beginning of an allocation.
|
||||
///
|
||||
/// All attempts to read or write outside of the view will fail. To intentionally access outside of
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user