diff options
Diffstat (limited to 'include/linux/bpf.h')
-rw-r--r-- | include/linux/bpf.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 819229c80eca..95a7abd0ee92 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h | |||
@@ -208,12 +208,15 @@ struct bpf_prog_ops { | |||
208 | 208 | ||
209 | struct bpf_verifier_ops { | 209 | struct bpf_verifier_ops { |
210 | /* return eBPF function prototype for verification */ | 210 | /* return eBPF function prototype for verification */ |
211 | const struct bpf_func_proto *(*get_func_proto)(enum bpf_func_id func_id); | 211 | const struct bpf_func_proto * |
212 | (*get_func_proto)(enum bpf_func_id func_id, | ||
213 | const struct bpf_prog *prog); | ||
212 | 214 | ||
213 | /* return true if 'size' wide access at offset 'off' within bpf_context | 215 | /* return true if 'size' wide access at offset 'off' within bpf_context |
214 | * with 'type' (read or write) is allowed | 216 | * with 'type' (read or write) is allowed |
215 | */ | 217 | */ |
216 | bool (*is_valid_access)(int off, int size, enum bpf_access_type type, | 218 | bool (*is_valid_access)(int off, int size, enum bpf_access_type type, |
219 | const struct bpf_prog *prog, | ||
217 | struct bpf_insn_access_aux *info); | 220 | struct bpf_insn_access_aux *info); |
218 | int (*gen_prologue)(struct bpf_insn *insn, bool direct_write, | 221 | int (*gen_prologue)(struct bpf_insn *insn, bool direct_write, |
219 | const struct bpf_prog *prog); | 222 | const struct bpf_prog *prog); |