-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuc_ts_common_kern_user.h
More file actions
38 lines (36 loc) · 1 KB
/
Copy pathnuc_ts_common_kern_user.h
File metadata and controls
38 lines (36 loc) · 1 KB
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
/* Common for timestamp incrementing BPF kernel prog and it's userland prog */
#ifndef __NUC_TS_COMMON_KERN_USER_H
#define __NUC_TS_COMMON_KERN_USER_H
enum stat_types {
STAT_VERIFIERHAPPY = 0,
STAT_ETHSHORT,
STAT_VLANSHORT,
STAT_NONIP,
STAT_IPTOTSHORT,
STAT_IPHDRSHORT,
STAT_IP6EXTHDRSHORT,
STAT_NONTCP,
STAT_TCPSHORT,
STAT_TCPINVALID,
STAT_TCPOPTOVERFLOW,
STAT_NONTSTAMP,
STAT_TS_INCREMENTED,
STAT_MAX, //keep last
};
/* keep in sync with above*/
static const char *stat_entry_names[STAT_MAX] = {
[STAT_VERIFIERHAPPY] = "BPFVERIFIER",
[STAT_ETHSHORT] = "ETHSHORT",
[STAT_VLANSHORT] = "VLANSHORT",
[STAT_NONIP] = "NONIP",
[STAT_IPTOTSHORT] = "IPTOTSHORT",
[STAT_IPHDRSHORT] = "IPHDRSHORT",
[STAT_IP6EXTHDRSHORT] = "IP6EXTHDRSHORT",
[STAT_NONTCP] = "NONTCP",
[STAT_TCPSHORT] = "TCPSHORT",
[STAT_TCPINVALID] = "TCPINVALID",
[STAT_TCPOPTOVERFLOW] = "TCPOPTOVERFLOW",
[STAT_NONTSTAMP] = "NONTSTAMP",
[STAT_TS_INCREMENTED] = "TS_INCREMENTED",
};
#endif