File Index
Files and directories
Sign in
FILE

rust_binder_events.h

File preview with syntax highlighting.

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