8536929eeb
Add hook to boost thread when process killed. Bug: 237749933 Signed-off-by: maoshenshen <maoshenshen@oppo.com> Change-Id: I7cc6f248397021f3a8271433144a0e582ed27cfa (cherry picked from commit 1be1cb53c6c6ea8fed2e3e1708afdbcf0f26969a)
23 lines
801 B
C
23 lines
801 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM signal
|
|
#undef TRACE_INCLUDE_PATH
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
#if !defined(_TRACE_HOOK_SIGNAL_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_SIGNAL_H
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
|
|
struct task_struct;
|
|
DECLARE_HOOK(android_vh_do_send_sig_info,
|
|
TP_PROTO(int sig, struct task_struct *killer, struct task_struct *dst),
|
|
TP_ARGS(sig, killer, dst));
|
|
DECLARE_HOOK(android_vh_killed_process,
|
|
TP_PROTO(struct task_struct *killer, struct task_struct *dst, bool *reap),
|
|
TP_ARGS(killer, dst, reap));
|
|
DECLARE_HOOK(android_vh_exit_signal,
|
|
TP_PROTO(struct task_struct *task),
|
|
TP_ARGS(task));
|
|
#endif /* _TRACE_HOOK_SIGNAL_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|