xref: /linux/drivers/android/binder/rust_binder_events.c (revision 4f38da1f027ea2c9f01bb71daa7a299c191b6940)
1*eafedbc7SAlice Ryhl // SPDX-License-Identifier: GPL-2.0-only
2*eafedbc7SAlice Ryhl /* rust_binder_events.c
3*eafedbc7SAlice Ryhl  *
4*eafedbc7SAlice Ryhl  * Rust Binder tracepoints.
5*eafedbc7SAlice Ryhl  *
6*eafedbc7SAlice Ryhl  * Copyright 2025 Google LLC
7*eafedbc7SAlice Ryhl  */
8*eafedbc7SAlice Ryhl 
9*eafedbc7SAlice Ryhl #include "rust_binder.h"
10*eafedbc7SAlice Ryhl 
11*eafedbc7SAlice Ryhl const char * const binder_command_strings[] = {
12*eafedbc7SAlice Ryhl 	"BC_TRANSACTION",
13*eafedbc7SAlice Ryhl 	"BC_REPLY",
14*eafedbc7SAlice Ryhl 	"BC_ACQUIRE_RESULT",
15*eafedbc7SAlice Ryhl 	"BC_FREE_BUFFER",
16*eafedbc7SAlice Ryhl 	"BC_INCREFS",
17*eafedbc7SAlice Ryhl 	"BC_ACQUIRE",
18*eafedbc7SAlice Ryhl 	"BC_RELEASE",
19*eafedbc7SAlice Ryhl 	"BC_DECREFS",
20*eafedbc7SAlice Ryhl 	"BC_INCREFS_DONE",
21*eafedbc7SAlice Ryhl 	"BC_ACQUIRE_DONE",
22*eafedbc7SAlice Ryhl 	"BC_ATTEMPT_ACQUIRE",
23*eafedbc7SAlice Ryhl 	"BC_REGISTER_LOOPER",
24*eafedbc7SAlice Ryhl 	"BC_ENTER_LOOPER",
25*eafedbc7SAlice Ryhl 	"BC_EXIT_LOOPER",
26*eafedbc7SAlice Ryhl 	"BC_REQUEST_DEATH_NOTIFICATION",
27*eafedbc7SAlice Ryhl 	"BC_CLEAR_DEATH_NOTIFICATION",
28*eafedbc7SAlice Ryhl 	"BC_DEAD_BINDER_DONE",
29*eafedbc7SAlice Ryhl 	"BC_TRANSACTION_SG",
30*eafedbc7SAlice Ryhl 	"BC_REPLY_SG",
31*eafedbc7SAlice Ryhl };
32*eafedbc7SAlice Ryhl 
33*eafedbc7SAlice Ryhl const char * const binder_return_strings[] = {
34*eafedbc7SAlice Ryhl 	"BR_ERROR",
35*eafedbc7SAlice Ryhl 	"BR_OK",
36*eafedbc7SAlice Ryhl 	"BR_TRANSACTION",
37*eafedbc7SAlice Ryhl 	"BR_REPLY",
38*eafedbc7SAlice Ryhl 	"BR_ACQUIRE_RESULT",
39*eafedbc7SAlice Ryhl 	"BR_DEAD_REPLY",
40*eafedbc7SAlice Ryhl 	"BR_TRANSACTION_COMPLETE",
41*eafedbc7SAlice Ryhl 	"BR_INCREFS",
42*eafedbc7SAlice Ryhl 	"BR_ACQUIRE",
43*eafedbc7SAlice Ryhl 	"BR_RELEASE",
44*eafedbc7SAlice Ryhl 	"BR_DECREFS",
45*eafedbc7SAlice Ryhl 	"BR_ATTEMPT_ACQUIRE",
46*eafedbc7SAlice Ryhl 	"BR_NOOP",
47*eafedbc7SAlice Ryhl 	"BR_SPAWN_LOOPER",
48*eafedbc7SAlice Ryhl 	"BR_FINISHED",
49*eafedbc7SAlice Ryhl 	"BR_DEAD_BINDER",
50*eafedbc7SAlice Ryhl 	"BR_CLEAR_DEATH_NOTIFICATION_DONE",
51*eafedbc7SAlice Ryhl 	"BR_FAILED_REPLY",
52*eafedbc7SAlice Ryhl 	"BR_FROZEN_REPLY",
53*eafedbc7SAlice Ryhl 	"BR_ONEWAY_SPAM_SUSPECT",
54*eafedbc7SAlice Ryhl 	"BR_TRANSACTION_PENDING_FROZEN"
55*eafedbc7SAlice Ryhl };
56*eafedbc7SAlice Ryhl 
57*eafedbc7SAlice Ryhl #define CREATE_TRACE_POINTS
58*eafedbc7SAlice Ryhl #define CREATE_RUST_TRACE_POINTS
59*eafedbc7SAlice Ryhl #include "rust_binder_events.h"
60