LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
ebpf/registers.hpp
Go to the documentation of this file.
1/* Copyright 2022 - 2024 R. Thomas
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15#ifndef LIEF_ASM_EBPF_REGISTER_H
16#define LIEF_ASM_EBPF_REGISTER_H
17namespace LIEF {
18namespace assembly {
19namespace ebpf {
20enum class REG;
21const char* get_register_name(REG r);
22
23enum class REG {
25 R0 = 1,
26 R1 = 2,
27 R2 = 3,
28 R3 = 4,
29 R4 = 5,
30 R5 = 6,
31 R6 = 7,
32 R7 = 8,
33 R8 = 9,
34 R9 = 10,
35 R10 = 11,
36 R11 = 12,
37 W0 = 13,
38 W1 = 14,
39 W2 = 15,
40 W3 = 16,
41 W4 = 17,
42 W5 = 18,
43 W6 = 19,
44 W7 = 20,
45 W8 = 21,
46 W9 = 22,
47 W10 = 23,
48 W11 = 24,
50};
51
52}
53}
54}
55#endif
eBPF architecture-related namespace
Definition ebpf/Instruction.hpp:26
REG
Definition ebpf/registers.hpp:23
@ W1
Definition ebpf/registers.hpp:38
@ R0
Definition ebpf/registers.hpp:25
@ W11
Definition ebpf/registers.hpp:48
@ R10
Definition ebpf/registers.hpp:35
@ W10
Definition ebpf/registers.hpp:47
@ NUM_TARGET_REGS
Definition ebpf/registers.hpp:49
@ R3
Definition ebpf/registers.hpp:28
@ W4
Definition ebpf/registers.hpp:41
@ W2
Definition ebpf/registers.hpp:39
@ W8
Definition ebpf/registers.hpp:45
@ W9
Definition ebpf/registers.hpp:46
@ W3
Definition ebpf/registers.hpp:40
@ W5
Definition ebpf/registers.hpp:42
@ R11
Definition ebpf/registers.hpp:36
@ R4
Definition ebpf/registers.hpp:29
@ R2
Definition ebpf/registers.hpp:27
@ R9
Definition ebpf/registers.hpp:34
@ W7
Definition ebpf/registers.hpp:44
@ W6
Definition ebpf/registers.hpp:43
@ NoRegister
Definition ebpf/registers.hpp:24
@ R7
Definition ebpf/registers.hpp:32
@ R1
Definition ebpf/registers.hpp:26
@ W0
Definition ebpf/registers.hpp:37
@ R8
Definition ebpf/registers.hpp:33
@ R5
Definition ebpf/registers.hpp:30
@ R6
Definition ebpf/registers.hpp:31
const char * get_register_name(REG r)
Namespace related to assembly/disassembly support.
Definition Abstract/Binary.hpp:43
LIEF namespace.
Definition Abstract/Binary.hpp:36