summaryrefslogtreecommitdiff
path: root/drivers/android/binder/trace.rs
blob: af0e4392805e7ef2a39b7c1e557ea233dcd810ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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) }
}