diff options
| author | Mohamad Alsadhan <mo@sdhn.cc> | 2026-03-17 17:49:46 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-04-01 12:18:22 +0200 |
| commit | 25917c05ab477bf60f8cf09acb1e9e89de3df61f (patch) | |
| tree | 58136fc92814c00b2ba67df74381afc06ea3c28a /drivers/android/binder/thread.rs | |
| parent | caf3719f335dac62e5626baadb66836907176337 (diff) | |
| download | linux-25917c05ab477bf60f8cf09acb1e9e89de3df61f.tar.gz linux-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/thread.rs')
| -rw-r--r-- | drivers/android/binder/thread.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/android/binder/thread.rs b/drivers/android/binder/thread.rs index 62e293e1a4b8..1feac87026e6 100644 --- a/drivers/android/binder/thread.rs +++ b/drivers/android/binder/thread.rs @@ -712,6 +712,7 @@ impl Thread { core::mem::offset_of!(uapi::binder_fd_object, __bindgen_anon_1.fd); let field_offset = offset + FD_FIELD_OFFSET; + crate::trace::trace_transaction_fd_send(view.alloc.debug_id, fd, field_offset); view.alloc.info_add_fd(file, field_offset, false)?; } |
