1*eafedbc7SAlice Ryhl /* SPDX-License-Identifier: GPL-2.0-only */ 2*eafedbc7SAlice Ryhl /* 3*eafedbc7SAlice Ryhl * Copyright (C) 2025 Google, Inc. 4*eafedbc7SAlice Ryhl */ 5*eafedbc7SAlice Ryhl 6*eafedbc7SAlice Ryhl #undef TRACE_SYSTEM 7*eafedbc7SAlice Ryhl #undef TRACE_INCLUDE_FILE 8*eafedbc7SAlice Ryhl #undef TRACE_INCLUDE_PATH 9*eafedbc7SAlice Ryhl #define TRACE_SYSTEM rust_binder 10*eafedbc7SAlice Ryhl #define TRACE_INCLUDE_FILE rust_binder_events 11*eafedbc7SAlice Ryhl #define TRACE_INCLUDE_PATH ../drivers/android/binder 12*eafedbc7SAlice Ryhl 13*eafedbc7SAlice Ryhl #if !defined(_RUST_BINDER_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) 14*eafedbc7SAlice Ryhl #define _RUST_BINDER_TRACE_H 15*eafedbc7SAlice Ryhl 16*eafedbc7SAlice Ryhl #include <linux/tracepoint.h> 17*eafedbc7SAlice Ryhl 18*eafedbc7SAlice Ryhl TRACE_EVENT(rust_binder_ioctl, 19*eafedbc7SAlice Ryhl TP_PROTO(unsigned int cmd, unsigned long arg), 20*eafedbc7SAlice Ryhl TP_ARGS(cmd, arg), 21*eafedbc7SAlice Ryhl 22*eafedbc7SAlice Ryhl TP_STRUCT__entry( 23*eafedbc7SAlice Ryhl __field(unsigned int, cmd) 24*eafedbc7SAlice Ryhl __field(unsigned long, arg) 25*eafedbc7SAlice Ryhl ), 26*eafedbc7SAlice Ryhl TP_fast_assign( 27*eafedbc7SAlice Ryhl __entry->cmd = cmd; 28*eafedbc7SAlice Ryhl __entry->arg = arg; 29*eafedbc7SAlice Ryhl ), 30*eafedbc7SAlice Ryhl TP_printk("cmd=0x%x arg=0x%lx", __entry->cmd, __entry->arg) 31*eafedbc7SAlice Ryhl ); 32*eafedbc7SAlice Ryhl 33*eafedbc7SAlice Ryhl #endif /* _RUST_BINDER_TRACE_H */ 34*eafedbc7SAlice Ryhl 35*eafedbc7SAlice Ryhl /* This part must be outside protection */ 36*eafedbc7SAlice Ryhl #include <trace/define_trace.h> 37