blob: 4f18859761396f6d386bd6c28e3bced39c71f276 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/* 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 */
14struct binder_transaction;
15struct task_struct;
16DECLARE_HOOK(android_vh_binder_transaction_init,
17 TP_PROTO(struct binder_transaction *t),
18 TP_ARGS(t));
19DECLARE_HOOK(android_vh_binder_set_priority,
20 TP_PROTO(struct binder_transaction *t, struct task_struct *task),
21 TP_ARGS(t, task));
22DECLARE_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>