ANDROID: rust_binder: add back tracepoints
Tracepoints were removed from the the vendor module version of Rust Binder as it required either fixing b/394605825 or hard-coding the tracepoint declarations as created by bindgen. As we are moving Rust Binder back into common/, this no longer depends on invoking bindgen from the DDK. Thus, revert these changes. Bug: 394605825 Bug: 388786466 Change-Id: I81fe5b2b4c92826c6478606cd78c8fccd8a5c7e4 Signed-off-by: Alice Ryhl <aliceryhl@google.com>
This commit is contained in:
committed by
Matthew Maurer
parent
dac7c66bc9
commit
bf40001347
@@ -383,6 +383,13 @@ impl ProcessNodeRefs {
|
||||
}
|
||||
}
|
||||
|
||||
use core::mem::offset_of;
|
||||
use kernel::bindings::rb_process_layout;
|
||||
pub(crate) const PROCESS_LAYOUT: rb_process_layout = rb_process_layout {
|
||||
arc_offset: Arc::<Process>::DATA_OFFSET,
|
||||
task: offset_of!(Process, task),
|
||||
};
|
||||
|
||||
/// A process using binder.
|
||||
///
|
||||
/// Strictly speaking, there can be multiple of these per process. There is one for each binder fd
|
||||
|
||||
Reference in New Issue
Block a user