xref: /aosp_15_r20/external/bcc/libbpf-tools/bitesize.h (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
2 #ifndef __BITESIZE_H
3 #define __BITESIZE_H
4 
5 #define TASK_COMM_LEN	16
6 #define DISK_NAME_LEN	32
7 #define MAX_SLOTS	20
8 
9 #define MINORBITS	20
10 #define MINORMASK	((1U << MINORBITS) - 1)
11 
12 #define MKDEV(ma, mi)	(((ma) << MINORBITS) | (mi))
13 
14 struct hist_key {
15 	char comm[TASK_COMM_LEN];
16 };
17 
18 struct hist {
19 	__u32 slots[MAX_SLOTS];
20 };
21 
22 #endif /* __BITESIZE_H */
23