| /linux-4.4.14/include/linux/ | 
| D | bpf.h | 106 struct bpf_prog; 119 				  struct bpf_insn *insn, struct bpf_prog *prog); 133 	struct bpf_prog *prog; 160 bool bpf_prog_array_compatible(struct bpf_array *array, const struct bpf_prog *fp); 167 struct bpf_prog *bpf_prog_get(u32 ufd); 168 struct bpf_prog *bpf_prog_inc(struct bpf_prog *prog); 169 void bpf_prog_put(struct bpf_prog *prog); 170 void bpf_prog_put_rcu(struct bpf_prog *prog); 181 int bpf_prog_new_fd(struct bpf_prog *prog); 187 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr); [all …] 
 | 
| D | filter.h | 324 struct bpf_prog {  struct 348 	struct bpf_prog	*prog;  argument 353 static inline u32 bpf_prog_run_save_cb(const struct bpf_prog *prog,  in bpf_prog_run_save_cb() 376 static inline u32 bpf_prog_run_clear_cb(const struct bpf_prog *prog,  in bpf_prog_run_clear_cb() 388 	return max(sizeof(struct bpf_prog),  in bpf_prog_size() 389 		   offsetof(struct bpf_prog, insns[proglen]));  in bpf_prog_size() 392 static inline bool bpf_prog_was_classic(const struct bpf_prog *prog)  in bpf_prog_was_classic() 405 static inline void bpf_prog_lock_ro(struct bpf_prog *fp)  in bpf_prog_lock_ro() 410 static inline void bpf_prog_unlock_ro(struct bpf_prog *fp)  in bpf_prog_unlock_ro() 415 static inline void bpf_prog_lock_ro(struct bpf_prog *fp)  in bpf_prog_lock_ro() [all …] 
 | 
| 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 | trace_events.h | 16 struct bpf_prog; 303 	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.4.14/tools/testing/selftests/net/ | 
| D | psock_lib.h | 52 	struct sock_fprog bpf_prog;  in sock_setfilter()  local 57 	bpf_prog.filter = bpf_filter;  in sock_setfilter() 58 	bpf_prog.len = sizeof(bpf_filter) / sizeof(struct sock_filter);  in sock_setfilter() 59 	if (setsockopt(fd, lvl, optnum, &bpf_prog,  in sock_setfilter() 60 		       sizeof(bpf_prog))) {  in sock_setfilter()
  | 
| /linux-4.4.14/kernel/bpf/ | 
| D | syscall.c | 430 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog)  in find_prog_type() 459 static void fixup_bpf_calls(struct bpf_prog *prog)  in fixup_bpf_calls() 512 static int bpf_prog_charge_memlock(struct bpf_prog *prog)  in bpf_prog_charge_memlock() 529 static void bpf_prog_uncharge_memlock(struct bpf_prog *prog)  in bpf_prog_uncharge_memlock() 547 void bpf_prog_put_rcu(struct bpf_prog *prog)  in bpf_prog_put_rcu() 553 void bpf_prog_put(struct bpf_prog *prog)  in bpf_prog_put() 562 	struct bpf_prog *prog = filp->private_data;  in bpf_prog_release() 572 int bpf_prog_new_fd(struct bpf_prog *prog)  in bpf_prog_new_fd() 578 static struct bpf_prog *__bpf_prog_get(struct fd f)  in __bpf_prog_get() 590 struct bpf_prog *bpf_prog_inc(struct bpf_prog *prog)  in bpf_prog_inc() [all …] 
 | 
| D | core.c | 73 struct bpf_prog *bpf_prog_alloc(unsigned int size, gfp_t gfp_extra_flags)  in bpf_prog_alloc() 78 	struct bpf_prog *fp;  in bpf_prog_alloc() 101 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size,  in bpf_prog_realloc() 106 	struct bpf_prog *fp;  in bpf_prog_realloc() 133 void __bpf_prog_free(struct bpf_prog *fp)  in __bpf_prog_free() 448 		struct bpf_prog *prog;  in __bpf_prog_run() 658 			       const struct bpf_prog *fp)  in bpf_prog_array_compatible() 674 static int bpf_check_tail_call(const struct bpf_prog *fp)  in bpf_check_tail_call() 701 int bpf_prog_select_runtime(struct bpf_prog *fp)  in bpf_prog_select_runtime() 726 void bpf_prog_free(struct bpf_prog *fp)  in bpf_prog_free() [all …] 
 | 
| D | arraymap.c | 233 	struct bpf_prog *prog = bpf_prog_get(fd);  in prog_fd_array_get_ptr() 246 	struct bpf_prog *prog = ptr;  in prog_fd_array_put_ptr()
  | 
| D | verifier.c | 195 	struct bpf_prog *prog;		/* eBPF program being verified */ 2084 static void adjust_branches(struct bpf_prog *prog, int pos, int delta)  in adjust_branches() 2112 	struct bpf_prog *new_prog;  in convert_ctx_accesses() 2197 int bpf_check(struct bpf_prog **prog, union bpf_attr *attr)  in bpf_check()
  | 
| /linux-4.4.14/include/uapi/linux/netfilter/ | 
| D | xt_bpf.h | 9 struct bpf_prog; 16 	struct bpf_prog *filter __attribute__((aligned(8)));
  | 
| /linux-4.4.14/net/packet/ | 
| D | internal.h | 84 		struct bpf_prog __rcu	*bpf_prog;  member
  | 
| D | af_packet.c | 1420 	struct bpf_prog *prog;  in fanout_demux_bpf() 1424 	prog = rcu_dereference(f->bpf_prog);  in fanout_demux_bpf() 1536 		RCU_INIT_POINTER(f->bpf_prog, NULL);  in fanout_init_data() 1541 static void __fanout_set_data_bpf(struct packet_fanout *f, struct bpf_prog *new)  in __fanout_set_data_bpf() 1543 	struct bpf_prog *old;  in __fanout_set_data_bpf() 1546 	old = rcu_dereference_protected(f->bpf_prog, lockdep_is_held(&f->lock));  in __fanout_set_data_bpf() 1547 	rcu_assign_pointer(f->bpf_prog, new);  in __fanout_set_data_bpf() 1559 	struct bpf_prog *new;  in fanout_set_data_cbpf() 1581 	struct bpf_prog *new;  in fanout_set_data_ebpf()
  | 
| /linux-4.4.14/net/core/ | 
| D | filter.c | 836 static int bpf_prog_store_orig_filter(struct bpf_prog *fp,  in bpf_prog_store_orig_filter() 859 static void bpf_release_orig_filter(struct bpf_prog *fp)  in bpf_release_orig_filter() 869 static void __bpf_prog_release(struct bpf_prog *prog)  in __bpf_prog_release() 933 static struct bpf_prog *bpf_migrate_filter(struct bpf_prog *fp)  in bpf_migrate_filter() 936 	struct bpf_prog *old_fp;  in bpf_migrate_filter() 999 static struct bpf_prog *bpf_prepare_filter(struct bpf_prog *fp,  in bpf_prepare_filter() 1048 int bpf_prog_create(struct bpf_prog **pfp, struct sock_fprog_kern *fprog)  in bpf_prog_create() 1051 	struct bpf_prog *fp;  in bpf_prog_create() 1093 int bpf_prog_create_from_user(struct bpf_prog **pfp, struct sock_fprog *fprog,  in bpf_prog_create_from_user() 1097 	struct bpf_prog *fp;  in bpf_prog_create_from_user() [all …] 
 | 
| D | ptp_classifier.c | 110 static struct bpf_prog *ptp_insns __read_mostly;
  | 
| /linux-4.4.14/net/sched/ | 
| D | act_bpf.c | 28 	struct bpf_prog *filter; 40 	struct bpf_prog *filter;  in tcf_bpf() 180 	struct bpf_prog *fp;  in tcf_bpf_init_from_ops() 217 	struct bpf_prog *fp;  in tcf_bpf_init_from_efd()
  | 
| D | cls_bpf.c | 38 	struct bpf_prog *filter; 230 	struct bpf_prog *fp;  in cls_bpf_prog_from_ops() 268 	struct bpf_prog *fp;  in cls_bpf_prog_from_efd()
  | 
| /linux-4.4.14/arch/x86/net/ | 
| D | bpf_jit_comp.c | 302 	      offsetof(struct bpf_prog, bpf_func));  in emit_bpf_tail_call() 338 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image,  in do_jit()  argument 341 	struct bpf_insn *insn = bpf_prog->insnsi;  in do_jit() 342 	int insn_cnt = bpf_prog->len;  in do_jit() 1042 void bpf_jit_compile(struct bpf_prog *prog)  in bpf_jit_compile() 1046 void bpf_int_jit_compile(struct bpf_prog *prog)  in bpf_int_jit_compile() 1118 void bpf_jit_free(struct bpf_prog *fp)  in bpf_jit_free()
  | 
| /linux-4.4.14/include/net/tc_act/ | 
| D | tc_bpf.h | 18 	struct bpf_prog __rcu	*filter;
  | 
| /linux-4.4.14/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.4.14/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.4.14/arch/s390/net/ | 
| D | bpf_jit_comp.c | 488 static noinline int bpf_jit_insn(struct bpf_jit *jit, struct bpf_prog *fp, int i)  in bpf_jit_insn() 1059 			      offsetof(struct bpf_prog, bpf_func));  in bpf_jit_insn() 1241 static int bpf_jit_prog(struct bpf_jit *jit, struct bpf_prog *fp)  in bpf_jit_prog() 1267 void bpf_jit_compile(struct bpf_prog *fp)  in bpf_jit_compile() 1274 void bpf_int_jit_compile(struct bpf_prog *fp)  in bpf_int_jit_compile() 1322 void bpf_jit_free(struct bpf_prog *fp)  in bpf_jit_free()
  | 
| /linux-4.4.14/arch/arm64/net/ | 
| D | bpf_jit_comp.c | 60 	const struct bpf_prog *prog; 723 	const struct bpf_prog *prog = ctx->prog;  in build_body() 751 void bpf_jit_compile(struct bpf_prog *prog)  in bpf_jit_compile() 756 void bpf_int_jit_compile(struct bpf_prog *prog)  in bpf_int_jit_compile() 821 void bpf_jit_free(struct bpf_prog *prog)  in bpf_jit_free()
  | 
| /linux-4.4.14/arch/arm/net/ | 
| D | bpf_jit_32.c | 60 	const struct bpf_prog *skf; 515 	const struct bpf_prog *prog = ctx->skf;  in build_body() 989 void bpf_jit_compile(struct bpf_prog *fp)  in bpf_jit_compile() 1070 void bpf_jit_free(struct bpf_prog *fp)  in bpf_jit_free()
  | 
| /linux-4.4.14/arch/mips/net/ | 
| D | bpf_jit.c | 99 	const struct bpf_prog *skf; 654 	const struct bpf_prog *prog = ctx->skf;  in build_body() 1192 void bpf_jit_compile(struct bpf_prog *fp)  in bpf_jit_compile() 1246 void bpf_jit_free(struct bpf_prog *fp)  in bpf_jit_free()
  | 
| /linux-4.4.14/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 | 1126 	struct bpf_prog *prog = call->prog;  in kprobe_perf_func() 1161 	struct bpf_prog *prog = call->prog;  in kretprobe_perf_func()
  | 
| D | trace_uprobe.c | 1113 	struct bpf_prog *prog = call->prog;  in __uprobe_perf_func()
  | 
| /linux-4.4.14/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.4.14/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 */ 765 			struct bpf_prog *pass_filter = NULL;  in ppp_ioctl() 791 			struct bpf_prog *active_filter = NULL;  in ppp_ioctl()
  | 
| /linux-4.4.14/kernel/ | 
| D | seccomp.c | 60 	struct bpf_prog *prog;
  | 
| /linux-4.4.14/lib/ | 
| D | test_bpf.c | 5233 static struct bpf_prog *generate_filter(int which, int *err)  in generate_filter() 5239 	struct bpf_prog *fp;  in generate_filter() 5291 static void release_filter(struct bpf_prog *fp, int which)  in release_filter() 5305 static int __run_one(const struct bpf_prog *fp, const void *data,  in __run_one() 5324 static int run_one(const struct bpf_prog *fp, struct bpf_test *test)  in run_one() 5455 		struct bpf_prog *fp;  in test_bpf()
  | 
| /linux-4.4.14/kernel/events/ | 
| D | core.c | 7067 	struct bpf_prog *prog;  in perf_event_set_bpf_prog() 7096 	struct bpf_prog *prog;  in perf_event_free_bpf_prog()
  | 
| /linux-4.4.14/Documentation/networking/ | 
| D | filter.txt | 593 code to run the filter. 'filter' is a pointer to struct bpf_prog that we
  |