^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 signal
^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_SIGNAL_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define _TRACE_HOOK_SIGNAL_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)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifdef __GENKSYMS__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct task_struct;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) /* struct task_struct */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/sched.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #endif /* __GENKSYMS__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) DECLARE_HOOK(android_vh_do_send_sig_info,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) TP_PROTO(int sig, struct task_struct *killer, struct task_struct *dst),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) TP_ARGS(sig, killer, dst));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) DECLARE_HOOK(android_vh_process_killed,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) TP_PROTO(struct task_struct *task, bool *reap),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) TP_ARGS(task, reap));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) DECLARE_HOOK(android_vh_killed_process,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) TP_PROTO(struct task_struct *killer, struct task_struct *dst, bool *reap),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) TP_ARGS(killer, dst, reap));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #endif /* _TRACE_HOOK_SIGNAL_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #include <trace/define_trace.h>