xref: /aosp_15_r20/external/bcc/libbpf-tools/oomkill.h (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
1*387f9dfdSAndroid Build Coastguard Worker /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2*387f9dfdSAndroid Build Coastguard Worker #ifndef __OOMKILL_H
3*387f9dfdSAndroid Build Coastguard Worker #define __OOMKILL_H
4*387f9dfdSAndroid Build Coastguard Worker 
5*387f9dfdSAndroid Build Coastguard Worker #define TASK_COMM_LEN 16
6*387f9dfdSAndroid Build Coastguard Worker 
7*387f9dfdSAndroid Build Coastguard Worker struct data_t {
8*387f9dfdSAndroid Build Coastguard Worker 	__u32 fpid;
9*387f9dfdSAndroid Build Coastguard Worker 	__u32 tpid;
10*387f9dfdSAndroid Build Coastguard Worker 	__u64 pages;
11*387f9dfdSAndroid Build Coastguard Worker 	char fcomm[TASK_COMM_LEN];
12*387f9dfdSAndroid Build Coastguard Worker 	char tcomm[TASK_COMM_LEN];
13*387f9dfdSAndroid Build Coastguard Worker };
14*387f9dfdSAndroid Build Coastguard Worker 
15*387f9dfdSAndroid Build Coastguard Worker #endif /* __OOMKILL_H */
16