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