diff --git a/drivers/android/vendor_hooks.c b/drivers/android/vendor_hooks.c index eb50db428e8c..1ca42b0dfd4d 100644 --- a/drivers/android/vendor_hooks.c +++ b/drivers/android/vendor_hooks.c @@ -99,6 +99,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_restore_priority); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_wakeup_ilocked); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_do_send_sig_info); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_process_killed); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_killed_process); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_rwsem_init); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_rwsem_wake); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_rwsem_write_finished); diff --git a/include/trace/hooks/signal.h b/include/trace/hooks/signal.h index a0db2e8cf77d..ee36ea1de283 100644 --- a/include/trace/hooks/signal.h +++ b/include/trace/hooks/signal.h @@ -15,6 +15,9 @@ DECLARE_HOOK(android_vh_do_send_sig_info, DECLARE_HOOK(android_vh_process_killed, TP_PROTO(struct task_struct *task, bool *reap), TP_ARGS(task, reap)); +DECLARE_HOOK(android_vh_killed_process, + TP_PROTO(struct task_struct *killer, struct task_struct *dst, bool *reap), + TP_ARGS(killer, dst, reap)); #endif /* _TRACE_HOOK_SIGNAL_H */ /* This part must be outside protection */ #include diff --git a/kernel/signal.c b/kernel/signal.c index 7814560f8637..6fff4a9788ac 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1420,6 +1420,7 @@ int group_send_sig_info(int sig, struct kernel_siginfo *info, bool reap = false; trace_android_vh_process_killed(current, &reap); + trace_android_vh_killed_process(current, p, &reap); if (reap) add_to_oom_reaper(p); }