LIEF: Library to Instrument Executable Formats
Version 2.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
asm
ebpf
ebpf/registers.hpp
Go to the documentation of this file.
1
/* Copyright 2022 - 2026 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
17
18
19
namespace
LIEF::assembly::ebpf
{
20
enum class
REG
;
21
const
char
*
get_register_name
(
REG
r);
22
23
enum class
REG
{
24
NoRegister = 0,
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,
49
NUM_TARGET_REGS = 25,
50
};
51
52
}
53
54
55
#endif
LIEF::assembly::ebpf
eBPF architecture-related namespace
Definition
ebpf/Instruction.hpp:26
LIEF::assembly::ebpf::REG
REG
Definition
ebpf/registers.hpp:23
LIEF::assembly::ebpf::get_register_name
const char * get_register_name(REG r)
Generated by
1.19.0