xref: /aosp_15_r20/external/bcc/libbpf-tools/sigsnoop.h (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
1*387f9dfdSAndroid Build Coastguard Worker // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
2*387f9dfdSAndroid Build Coastguard Worker /* Copyright (c) 2021~2022 Hengqi Chen */
3*387f9dfdSAndroid Build Coastguard Worker #ifndef __SIGSNOOP_H
4*387f9dfdSAndroid Build Coastguard Worker #define __SIGSNOOP_H
5*387f9dfdSAndroid Build Coastguard Worker 
6*387f9dfdSAndroid Build Coastguard Worker #define TASK_COMM_LEN	16
7*387f9dfdSAndroid Build Coastguard Worker 
8*387f9dfdSAndroid Build Coastguard Worker struct event {
9*387f9dfdSAndroid Build Coastguard Worker 	__u32 pid;
10*387f9dfdSAndroid Build Coastguard Worker 	__u32 tpid;
11*387f9dfdSAndroid Build Coastguard Worker 	int sig;
12*387f9dfdSAndroid Build Coastguard Worker 	int ret;
13*387f9dfdSAndroid Build Coastguard Worker 	char comm[TASK_COMM_LEN];
14*387f9dfdSAndroid Build Coastguard Worker };
15*387f9dfdSAndroid Build Coastguard Worker 
16*387f9dfdSAndroid Build Coastguard Worker #endif /* __SIGSNOOP_H */
17