xref: /aosp_15_r20/external/bcc/libbpf-tools/exitsnoop.h (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2 #ifndef __EXITSNOOP_H
3 #define __EXITSNOOP_H
4 
5 #define TASK_COMM_LEN	16
6 
7 struct event {
8 	__u64 start_time;
9 	__u64 exit_time;
10 	__u32 pid;
11 	__u32 tid;
12 	__u32 ppid;
13 	__u32 sig;
14 	int exit_code;
15 	char comm[TASK_COMM_LEN];
16 };
17 
18 #endif /* __EXITSNOOP_H */
19