summaryrefslogtreecommitdiff
path: root/drivers/android/binder/allocation.rs
diff options
context:
space:
mode:
authorMohamad Alsadhan <mo@sdhn.cc>2026-03-17 17:49:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-04-01 12:18:22 +0200
commit25917c05ab477bf60f8cf09acb1e9e89de3df61f (patch)
tree58136fc92814c00b2ba67df74381afc06ea3c28a /drivers/android/binder/allocation.rs
parentcaf3719f335dac62e5626baadb66836907176337 (diff)
downloadlwn-25917c05ab477bf60f8cf09acb1e9e89de3df61f.tar.gz
lwn-25917c05ab477bf60f8cf09acb1e9e89de3df61f.zip
rust_binder: add fd translation tracepoints
Add Rust Binder tracepoint declarations for both `transaction_fd_send` and `transaction_fd_recv`. Also, wire in the corresponding trace calls where fd objects are serialised/deserialised. Signed-off-by: Mohamad Alsadhan <mo@sdhn.cc> Link: https://patch.msgid.link/20260317-rust-binder-trace-v3-5-6fae4fbcf637@sdhn.cc Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android/binder/allocation.rs')
-rw-r--r--drivers/android/binder/allocation.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/android/binder/allocation.rs b/drivers/android/binder/allocation.rs
index 0dc4f364d86d..0cab959e4b7e 100644
--- a/drivers/android/binder/allocation.rs
+++ b/drivers/android/binder/allocation.rs
@@ -205,6 +205,7 @@ impl Allocation {
let res = FileDescriptorReservation::get_unused_fd_flags(bindings::O_CLOEXEC)?;
let fd = res.reserved_fd();
self.write::<u32>(file_info.buffer_offset, &fd)?;
+ crate::trace::trace_transaction_fd_recv(self.debug_id, fd, file_info.buffer_offset);
reservations.push(
Reservation {