]>
Commit | Line | Data |
---|---|---|
91dfef96 | 1 | /* Definitions for option handling for eBPF. |
7adcbafe | 2 | Copyright (C) 2019-2022 Free Software Foundation, Inc. |
91dfef96 JM |
3 | |
4 | This file is part of GCC. | |
5 | ||
6 | GCC is free software; you can redistribute it and/or modify it | |
7 | under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 3, or (at your option) | |
9 | any later version. | |
10 | ||
11 | GCC is distributed in the hope that it will be useful, but WITHOUT | |
12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
13 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
14 | License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with GCC; see the file COPYING3. If not see | |
18 | <http://www.gnu.org/licenses/>. */ | |
19 | ||
20 | #ifndef BPF_OPTS_H | |
21 | #define BPF_OPTS_H | |
22 | ||
23 | /* Supported versions of the Linux kernel. */ | |
24 | enum bpf_kernel_version | |
25 | { | |
26 | /* Linux 4.x */ | |
27 | LINUX_V4_0, | |
28 | LINUX_V4_1, | |
29 | LINUX_V4_2, | |
30 | LINUX_V4_3, | |
31 | LINUX_V4_4, | |
32 | LINUX_V4_5, | |
33 | LINUX_V4_6, | |
34 | LINUX_V4_7, | |
35 | LINUX_V4_8, | |
36 | LINUX_V4_9, | |
37 | LINUX_V4_10, | |
38 | LINUX_V4_11, | |
39 | LINUX_V4_12, | |
40 | LINUX_V4_13, | |
41 | LINUX_V4_14, | |
42 | LINUX_V4_15, | |
43 | LINUX_V4_16, | |
44 | LINUX_V4_17, | |
45 | LINUX_V4_18, | |
46 | LINUX_V4_19, | |
47 | LINUX_V4_20, | |
48 | /* Linux 5.x */ | |
49 | LINUX_V5_0, | |
50 | LINUX_V5_1, | |
51 | LINUX_V5_2, | |
52 | LINUX_LATEST = LINUX_V5_2, | |
53 | LINUX_NATIVE, | |
54 | }; | |
55 | ||
5b2ab1d3 DF |
56 | enum bpf_isa_version |
57 | { | |
58 | ISA_V1, | |
59 | ISA_V2, | |
60 | ISA_V3, | |
61 | }; | |
62 | ||
91dfef96 | 63 | #endif /* ! BPF_OPTS_H */ |