aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2018-01-26 16:42:07 -0800
committerAlexei Starovoitov <ast@kernel.org>2018-01-26 16:42:08 -0800
commit1651e39e4a1adacd24e953aae46ba9b66d996035 (patch)
tree7294f8492555ec8d65ee23534f38c62d0e6029d5 /include
parentsamples/bpf: Partially fixes the bpf.o build (diff)
parentbpf: add further test cases around div/mod and others (diff)
downloadlinux-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.h2
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);