diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2023-10-02 11:24:10 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-10-16 15:57:22 +0000 |
| commit | ff4096d35b1c40d7e6b5d1aea4741ab2bea0297d (patch) | |
| tree | a1ecc1c2712b862aa8051a71565a36b3298bbae1 /sys/linux/bpf.txt.const | |
| parent | 1834ff143d083ae2c374f2a18d887575887321a9 (diff) | |
sys/linux: templatize ldst, alu, and call_helper BPF instructions
This commit templatizes the bpf_insn_ldst, bpf_insn_alu,
bpf_insn_call_helper, bpf_insn_map_value BPF instruction descriptions.
This will allow subsequent commits to define new, more specific
descriptions of those instructions in addition to the existing generic
descriptions. For example, a subsequent commit will use the new
bpf_insn_call_helper_t template to define a call to helper bpf_snprintf
specifically.
This commit doesn't have any functional changes.
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux/bpf.txt.const')
| -rw-r--r-- | sys/linux/bpf.txt.const | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const index 2b0eb6e54..c3ccf7bfe 100644 --- a/sys/linux/bpf.txt.const +++ b/sys/linux/bpf.txt.const @@ -113,6 +113,7 @@ BPF_JSGE0 = 7 BPF_JSGT0 = 6 BPF_JSLE0 = 13 BPF_JSLT0 = 12 +BPF_K0 = 0 BPF_LD = 0 BPF_LDX = 1 BPF_LINE_INFO_SIZE = 16 @@ -271,6 +272,7 @@ BPF_XDP = 37 BPF_XDP_CPUMAP = 35 BPF_XDP_DEVMAP = 33 BPF_XOR0 = 10 +BPF_X0 = 1 BTF_INT_BOOL = 4 BTF_INT_CHAR = 2 BTF_INT_SIGNED = 1 |
