diff options
| author | 2018-01-26 16:42:07 -0800 | |
|---|---|---|
| committer | 2018-01-26 16:42:08 -0800 | |
| commit | 1651e39e4a1adacd24e953aae46ba9b66d996035 (patch) | |
| tree | 7294f8492555ec8d65ee23534f38c62d0e6029d5 /include | |
| parent | samples/bpf: Partially fixes the bpf.o build (diff) | |
| parent | bpf: add further test cases around div/mod and others (diff) | |
| download | linux-dev-1651e39e4a1adacd24e953aae46ba9b66d996035.tar.xz linux-dev-1651e39e4a1adacd24e953aae46ba9b66d996035.zip | |
Merge branch 'bpf-improvements-and-fixes'
Daniel Borkmann says:
====================
This set contains a small cleanup in cBPF prologue generation and
otherwise fixes an outstanding issue related to BPF to BPF calls
and exception handling. For details please see related patches.
Last but not least, BPF selftests is extended with several new
test cases.
Thanks!
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/filter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 20384c4bed25..276932d75975 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -688,6 +688,8 @@ static inline int sk_filter(struct sock *sk, struct sk_buff *skb) struct bpf_prog *bpf_prog_select_runtime(struct bpf_prog *fp, int *err); void bpf_prog_free(struct bpf_prog *fp); +bool bpf_opcode_in_insntable(u8 code); + struct bpf_prog *bpf_prog_alloc(unsigned int size, gfp_t gfp_extra_flags); struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size, gfp_t gfp_extra_flags); |
