/linux-4.1.27/include/linux/ |
D | filter.h | 308 struct bpf_prog { struct 328 struct bpf_prog *prog; argument 335 return max(sizeof(struct bpf_prog), in bpf_prog_size() 336 offsetof(struct bpf_prog, insns[proglen])); in bpf_prog_size() 342 static inline void bpf_prog_lock_ro(struct bpf_prog *fp) in bpf_prog_lock_ro() 347 static inline void bpf_prog_unlock_ro(struct bpf_prog *fp) in bpf_prog_unlock_ro() 352 static inline void bpf_prog_lock_ro(struct bpf_prog *fp) in bpf_prog_lock_ro() 356 static inline void bpf_prog_unlock_ro(struct bpf_prog *fp) in bpf_prog_unlock_ro() 363 void bpf_prog_select_runtime(struct bpf_prog *fp); 364 void bpf_prog_free(struct bpf_prog *fp); [all …]
|
D | bpf.h | 118 struct bpf_prog; 125 struct bpf_prog *prog; 133 struct bpf_prog *bpf_prog_get(u32 ufd); 134 void bpf_prog_put(struct bpf_prog *prog); 140 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr); 146 static inline struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get() 151 static inline void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
|
D | isdn_ppp.h | 183 struct bpf_prog *pass_filter; /* filter for packets to pass */ 184 struct bpf_prog *active_filter; /* filter for pkts to reset idle */
|
D | ftrace_event.h | 16 struct bpf_prog; 310 struct bpf_prog *prog; 557 unsigned int trace_call_bpf(struct bpf_prog *prog, void *ctx); 559 static inline unsigned int trace_call_bpf(struct bpf_prog *prog, void *ctx) in trace_call_bpf()
|
/linux-4.1.27/tools/testing/selftests/net/ |
D | psock_lib.h | 52 struct sock_fprog bpf_prog; in pair_udp_setfilter() local 54 bpf_prog.filter = bpf_filter; in pair_udp_setfilter() 55 bpf_prog.len = sizeof(bpf_filter) / sizeof(struct sock_filter); in pair_udp_setfilter() 56 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &bpf_prog, in pair_udp_setfilter() 57 sizeof(bpf_prog))) { in pair_udp_setfilter()
|
/linux-4.1.27/include/uapi/linux/netfilter/ |
D | xt_bpf.h | 9 struct bpf_prog; 16 struct bpf_prog *filter __attribute__((aligned(8)));
|
/linux-4.1.27/kernel/bpf/ |
D | syscall.c | 351 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type() 380 static void fixup_bpf_calls(struct bpf_prog *prog) in fixup_bpf_calls() 416 void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put() 427 struct bpf_prog *prog = filp->private_data; in bpf_prog_release() 437 static struct bpf_prog *get_prog(struct fd f) in get_prog() 439 struct bpf_prog *prog; in get_prog() 457 struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get() 460 struct bpf_prog *prog; in bpf_prog_get() 479 struct bpf_prog *prog; in bpf_prog_load()
|
D | core.c | 71 struct bpf_prog *bpf_prog_alloc(unsigned int size, gfp_t gfp_extra_flags) in bpf_prog_alloc() 76 struct bpf_prog *fp; in bpf_prog_alloc() 96 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size, in bpf_prog_realloc() 101 struct bpf_prog *fp; in bpf_prog_realloc() 125 void __bpf_prog_free(struct bpf_prog *fp) in __bpf_prog_free() 618 void __weak bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() 629 void bpf_prog_select_runtime(struct bpf_prog *fp) in bpf_prog_select_runtime() 649 void bpf_prog_free(struct bpf_prog *fp) in bpf_prog_free()
|
D | verifier.c | 195 struct bpf_prog *prog; /* eBPF program being verified */ 1932 static void adjust_branches(struct bpf_prog *prog, int pos, int delta) in adjust_branches() 1960 struct bpf_prog *new_prog; in convert_ctx_accesses() 2040 int bpf_check(struct bpf_prog **prog, union bpf_attr *attr) in bpf_check()
|
/linux-4.1.27/net/core/ |
D | filter.c | 835 static int bpf_prog_store_orig_filter(struct bpf_prog *fp, in bpf_prog_store_orig_filter() 856 static void bpf_release_orig_filter(struct bpf_prog *fp) in bpf_release_orig_filter() 866 static void __bpf_prog_release(struct bpf_prog *prog) in __bpf_prog_release() 930 static struct bpf_prog *bpf_migrate_filter(struct bpf_prog *fp) in bpf_migrate_filter() 933 struct bpf_prog *old_fp; in bpf_migrate_filter() 996 static struct bpf_prog *bpf_prepare_filter(struct bpf_prog *fp) in bpf_prepare_filter() 1033 int bpf_prog_create(struct bpf_prog **pfp, struct sock_fprog_kern *fprog) in bpf_prog_create() 1036 struct bpf_prog *fp; in bpf_prog_create() 1067 void bpf_prog_destroy(struct bpf_prog *fp) in bpf_prog_destroy() 1073 static int __sk_attach_prog(struct bpf_prog *prog, struct sock *sk) in __sk_attach_prog() [all …]
|
D | ptp_classifier.c | 110 static struct bpf_prog *ptp_insns __read_mostly;
|
/linux-4.1.27/include/net/tc_act/ |
D | tc_bpf.h | 18 struct bpf_prog *filter;
|
/linux-4.1.27/arch/x86/net/ |
D | bpf_jit_comp.c | 189 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, in do_jit() argument 192 struct bpf_insn *insn = bpf_prog->insnsi; in do_jit() 193 int insn_cnt = bpf_prog->len; in do_jit() 936 void bpf_jit_compile(struct bpf_prog *prog) in bpf_jit_compile() 940 void bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() 1012 void bpf_jit_free(struct bpf_prog *fp) in bpf_jit_free()
|
/linux-4.1.27/net/sched/ |
D | act_bpf.c | 28 struct bpf_prog *filter; 174 struct bpf_prog *fp; in tcf_bpf_init_from_ops() 211 struct bpf_prog *fp; in tcf_bpf_init_from_efd()
|
D | cls_bpf.c | 38 struct bpf_prog *filter; 189 struct bpf_prog *fp; in cls_bpf_prog_from_ops() 229 struct bpf_prog *fp; in cls_bpf_prog_from_efd()
|
/linux-4.1.27/drivers/net/team/ |
D | team_mode_loadbalance.c | 61 struct bpf_prog __rcu *fp; 177 struct bpf_prog *fp; in lb_get_skb_hash() 274 struct bpf_prog *fp = NULL; in lb_bpf_func_set() 275 struct bpf_prog *orig_fp = NULL; in lb_bpf_func_set()
|
/linux-4.1.27/arch/powerpc/net/ |
D | bpf_jit_comp.c | 29 static void bpf_jit_build_prologue(struct bpf_prog *fp, u32 *image, in bpf_jit_build_prologue() 115 static int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, in bpf_jit_build_body() 554 void bpf_jit_compile(struct bpf_prog *fp) in bpf_jit_compile() 680 void bpf_jit_free(struct bpf_prog *fp) in bpf_jit_free()
|
/linux-4.1.27/arch/arm64/net/ |
D | bpf_jit_comp.c | 60 const struct bpf_prog *prog; 672 const struct bpf_prog *prog = ctx->prog; in build_body() 700 void bpf_jit_compile(struct bpf_prog *prog) in bpf_jit_compile() 705 void bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() 770 void bpf_jit_free(struct bpf_prog *prog) in bpf_jit_free()
|
/linux-4.1.27/arch/s390/net/ |
D | bpf_jit_comp.c | 453 static noinline int bpf_jit_insn(struct bpf_jit *jit, struct bpf_prog *fp, int i) in bpf_jit_insn() 1130 static int bpf_jit_prog(struct bpf_jit *jit, struct bpf_prog *fp) in bpf_jit_prog() 1156 void bpf_jit_compile(struct bpf_prog *fp) in bpf_jit_compile() 1163 void bpf_int_jit_compile(struct bpf_prog *fp) in bpf_int_jit_compile() 1211 void bpf_jit_free(struct bpf_prog *fp) in bpf_jit_free()
|
/linux-4.1.27/kernel/trace/ |
D | bpf_trace.c | 32 unsigned int trace_call_bpf(struct bpf_prog *prog, void *ctx) in trace_call_bpf()
|
D | trace_kprobe.c | 1138 struct bpf_prog *prog = call->prog; in kprobe_perf_func() 1173 struct bpf_prog *prog = call->prog; in kretprobe_perf_func()
|
/linux-4.1.27/arch/arm/net/ |
D | bpf_jit_32.c | 60 const struct bpf_prog *skf; 483 const struct bpf_prog *prog = ctx->skf; in build_body() 883 void bpf_jit_compile(struct bpf_prog *fp) in bpf_jit_compile() 964 void bpf_jit_free(struct bpf_prog *fp) in bpf_jit_free()
|
/linux-4.1.27/arch/mips/net/ |
D | bpf_jit.c | 134 const struct bpf_prog *skf; 740 const struct bpf_prog *prog = ctx->skf; in build_body() 1316 void bpf_jit_compile(struct bpf_prog *fp) in bpf_jit_compile() 1370 void bpf_jit_free(struct bpf_prog *fp) in bpf_jit_free()
|
/linux-4.1.27/lib/ |
D | test_bpf.c | 1872 static struct bpf_prog *generate_filter(int which, int *err) in generate_filter() 1874 struct bpf_prog *fp; in generate_filter() 1928 static void release_filter(struct bpf_prog *fp, int which) in release_filter() 1942 static int __run_one(const struct bpf_prog *fp, const void *data, in __run_one() 1961 static int run_one(const struct bpf_prog *fp, struct bpf_test *test) in run_one() 1995 struct bpf_prog *fp; in test_bpf()
|
/linux-4.1.27/arch/sparc/net/ |
D | bpf_jit_comp.c | 363 void bpf_jit_compile(struct bpf_prog *fp) in bpf_jit_compile() 809 void bpf_jit_free(struct bpf_prog *fp) in bpf_jit_free()
|
/linux-4.1.27/drivers/net/ppp/ |
D | ppp_generic.c | 146 struct bpf_prog *pass_filter; /* filter for packets to pass */ 147 struct bpf_prog *active_filter; /* filter for pkts to reset idle */ 758 struct bpf_prog *pass_filter = NULL; in ppp_ioctl() 784 struct bpf_prog *active_filter = NULL; in ppp_ioctl()
|
/linux-4.1.27/kernel/ |
D | seccomp.c | 60 struct bpf_prog *prog;
|
/linux-4.1.27/kernel/events/ |
D | core.c | 6772 struct bpf_prog *prog; in perf_event_set_bpf_prog() 6801 struct bpf_prog *prog; in perf_event_free_bpf_prog()
|
/linux-4.1.27/Documentation/networking/ |
D | filter.txt | 593 code to run the filter. 'filter' is a pointer to struct bpf_prog that we
|