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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/* Definitions for option handling for eBPF.
Copyright (C) 2019-2023 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
#ifndef BPF_OPTS_H
#define BPF_OPTS_H
/* Supported versions of the Linux kernel. */
enum bpf_kernel_version
{
/* Linux 4.x */
LINUX_V4_0,
LINUX_V4_1,
LINUX_V4_2,
LINUX_V4_3,
LINUX_V4_4,
LINUX_V4_5,
LINUX_V4_6,
LINUX_V4_7,
LINUX_V4_8,
LINUX_V4_9,
LINUX_V4_10,
LINUX_V4_11,
LINUX_V4_12,
LINUX_V4_13,
LINUX_V4_14,
LINUX_V4_15,
LINUX_V4_16,
LINUX_V4_17,
LINUX_V4_18,
LINUX_V4_19,
LINUX_V4_20,
/* Linux 5.x */
LINUX_V5_0,
LINUX_V5_1,
LINUX_V5_2,
LINUX_LATEST = LINUX_V5_2,
LINUX_NATIVE,
};
enum bpf_isa_version
{
ISA_V1,
ISA_V2,
ISA_V3,
};
#endif /* ! BPF_OPTS_H */
|