b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #undef TRACE_SYSTEM |
| 3 | #define TRACE_SYSTEM binder |
| 4 | #undef TRACE_INCLUDE_PATH |
| 5 | #define TRACE_INCLUDE_PATH trace/hooks |
| 6 | #if !defined(_TRACE_HOOK_BINDER_H) || defined(TRACE_HEADER_MULTI_READ) |
| 7 | #define _TRACE_HOOK_BINDER_H |
| 8 | #include <linux/tracepoint.h> |
| 9 | #include <trace/hooks/vendor_hooks.h> |
| 10 | /* |
| 11 | * Following tracepoints are not exported in tracefs and provide a |
| 12 | * mechanism for vendor modules to hook and extend functionality |
| 13 | */ |
| 14 | struct binder_transaction; |
| 15 | struct task_struct; |
| 16 | DECLARE_HOOK(android_vh_binder_transaction_init, |
| 17 | TP_PROTO(struct binder_transaction *t), |
| 18 | TP_ARGS(t)); |
| 19 | DECLARE_HOOK(android_vh_binder_set_priority, |
| 20 | TP_PROTO(struct binder_transaction *t, struct task_struct *task), |
| 21 | TP_ARGS(t, task)); |
| 22 | DECLARE_HOOK(android_vh_binder_restore_priority, |
| 23 | TP_PROTO(struct binder_transaction *t, struct task_struct *task), |
| 24 | TP_ARGS(t, task)); |
| 25 | |
| 26 | /* macro versions of hooks are no longer required */ |
| 27 | |
| 28 | #endif /* _TRACE_HOOK_BINDER_H */ |
| 29 | /* This part must be outside protection */ |
| 30 | #include <trace/define_trace.h> |