aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/bpf.txt9
-rw-r--r--sys/linux/bpf.txt.const1
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt
index fcf0a8f07..30fecac48 100644
--- a/sys/linux/bpf.txt
+++ b/sys/linux/bpf.txt
@@ -229,6 +229,7 @@ bpf_insn [
jmp bpf_insn_jmp
call bpf_insn_call_helper
func bpf_insn_call_func
+ kfunc bpf_insn_call_kfunc
exit bpf_insn_exit
initr0 bpf_insn_init_r0
map_fd bpf_insn_map_fd
@@ -343,6 +344,14 @@ bpf_insn_call_func {
func int32[-8:8]
}
+bpf_insn_call_kfunc {
+ code const[bpf_call_code, int8]
+ dst const[0, int8:4]
+ src const[BPF_PSEUDO_KFUNC_CALL, int8:4]
+ off const[0, int16]
+ kfunc btf_type_id
+}
+
define bpf_call_code BPF_JMP | BPF_CALL
bpf_insn_exit {
diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const
index 5f8cf4c07..4a4462f3b 100644
--- a/sys/linux/bpf.txt.const
+++ b/sys/linux/bpf.txt.const
@@ -193,6 +193,7 @@ BPF_PROG_TYPE_XDP = 6
BPF_PSEUDO_BTF_ID = 3
BPF_PSEUDO_CALL = 1
BPF_PSEUDO_FUNC = 4
+BPF_PSEUDO_KFUNC_CALL = 2
BPF_PSEUDO_MAP_FD = 1
BPF_PSEUDO_MAP_IDX = 5
BPF_PSEUDO_MAP_IDX_VALUE = 6