| // SPDX-License-Identifier: GPL-2.0 | |
| // Copyright (C) 2025 Google LLC. | |
| use kernel::ffi::{c_uint, c_ulong}; | |
| use kernel::tracepoint::declare_trace; | |
| declare_trace! { | |
| unsafe fn rust_binder_ioctl(cmd: c_uint, arg: c_ulong); | |
| } | |
| #[inline] | |
| pub(crate) fn trace_ioctl(cmd: u32, arg: usize) { | |
| // SAFETY: Always safe to call. | |
| unsafe { rust_binder_ioctl(cmd, arg as c_ulong) } | |
| } |