^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #undef TRACE_SYSTEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define TRACE_SYSTEM futex
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #undef TRACE_INCLUDE_PATH
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #define TRACE_INCLUDE_PATH trace/hooks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #if !defined(_TRACE_HOOK_FUTEX_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define _TRACE_HOOK_FUTEX_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #include <linux/tracepoint.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <trace/hooks/vendor_hooks.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/plist.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) * Following tracepoints are not exported in tracefs and provide a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) * mechanism for vendor modules to hook and extend functionality
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) DECLARE_HOOK(android_vh_alter_futex_plist_add,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) TP_PROTO(struct plist_node *node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) struct plist_head *head,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) bool *already_on_hb),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) TP_ARGS(node, head, already_on_hb));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) DECLARE_HOOK(android_vh_futex_sleep_start,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) TP_PROTO(struct task_struct *p),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) TP_ARGS(p));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) /* macro versions of hooks are no longer required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #endif /* _TRACE_HOOK_FUTEX_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #include <trace/define_trace.h>