forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
biotop.h
38 lines (31 loc) · 655 Bytes
/
biotop.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
#ifndef __BIOTOP_H
#define __BIOTOP_H
#define REQ_OP_BITS 8
#define REQ_OP_MASK ((1 << REQ_OP_BITS) - 1)
#define TASK_COMM_LEN 16
/* for saving the timestamp and __data_len of each request */
struct start_req_t {
__u64 ts;
__u64 data_len;
};
/* for saving process info by request */
struct who_t {
__u32 pid;
char name[TASK_COMM_LEN];
};
/* the key for the output summary */
struct info_t {
__u32 pid;
int rwflag;
int major;
int minor;
char name[TASK_COMM_LEN];
};
/* the value of the output summary */
struct val_t {
__u64 bytes;
__u64 us;
__u32 io;
};
#endif /* __BIOTOP_H */