/linux-4.4.14/tools/include/linux/ |
D | filter.h | 34 ((struct bpf_insn) { \ 42 ((struct bpf_insn) { \ 52 ((struct bpf_insn) { \ 60 ((struct bpf_insn) { \ 70 ((struct bpf_insn) { \ 80 ((struct bpf_insn) { \ 88 ((struct bpf_insn) { \ 98 ((struct bpf_insn) { \ 106 ((struct bpf_insn) { \ 116 ((struct bpf_insn) { \ [all …]
|
/linux-4.4.14/samples/bpf/ |
D | libbpf.h | 5 struct bpf_insn; 15 const struct bpf_insn *insns, int insn_len, 27 ((struct bpf_insn) { \ 35 ((struct bpf_insn) { \ 45 ((struct bpf_insn) { \ 53 ((struct bpf_insn) { \ 63 ((struct bpf_insn) { \ 71 ((struct bpf_insn) { \ 81 ((struct bpf_insn) { \ 93 ((struct bpf_insn) { \ [all …]
|
D | bpf_load.c | 47 static int load_and_attach(const char *event, struct bpf_insn *prog, int size) in load_and_attach() 194 GElf_Shdr *shdr, struct bpf_insn *insn) in parse_relo_and_apply() 207 insn_idx = rel.r_offset / sizeof(struct bpf_insn); in parse_relo_and_apply() 287 struct bpf_insn *insns; in load_bpf_file() 293 insns = (struct bpf_insn *) data_prog->d_buf; in load_bpf_file()
|
D | libbpf.c | 83 const struct bpf_insn *insns, int prog_len, in bpf_prog_load() 89 .insn_cnt = prog_len / sizeof(struct bpf_insn), in bpf_prog_load()
|
D | sock_example.c | 43 struct bpf_insn prog[] = { in test_sock()
|
D | fds_example.c | 52 static const struct bpf_insn insns[] = { in bpf_prog_create()
|
D | test_verifier.c | 29 struct bpf_insn insns[MAX_INSNS]; 1185 static int probe_filter_length(struct bpf_insn *fp) in probe_filter_length() 1226 struct bpf_insn *prog = tests[i].insns; in test() 1254 prog, prog_len * sizeof(struct bpf_insn), in test()
|
/linux-4.4.14/include/linux/ |
D | filter.h | 53 ((struct bpf_insn) { \ 61 ((struct bpf_insn) { \ 71 ((struct bpf_insn) { \ 79 ((struct bpf_insn) { \ 89 ((struct bpf_insn) { \ 99 ((struct bpf_insn) { \ 107 ((struct bpf_insn) { \ 117 ((struct bpf_insn) { \ 125 ((struct bpf_insn) { \ 137 ((struct bpf_insn) { \ [all …]
|
D | bpf.h | 119 struct bpf_insn *insn, struct bpf_prog *prog);
|
/linux-4.4.14/kernel/bpf/ |
D | verifier.c | 316 static void print_bpf_insn(struct bpf_insn *insn) in print_bpf_insn() 736 static int check_xadd(struct verifier_env *env, struct bpf_insn *insn) in check_xadd() 1015 static int check_alu_op(struct verifier_env *env, struct bpf_insn *insn) in check_alu_op() 1176 struct bpf_insn *insn, int *insn_idx) in check_cond_jmp_op() 1284 static struct bpf_map *ld_imm64_to_map_ptr(struct bpf_insn *insn) in ld_imm64_to_map_ptr() 1292 static int check_ld_imm(struct verifier_env *env, struct bpf_insn *insn) in check_ld_imm() 1349 static int check_ld_abs(struct verifier_env *env, struct bpf_insn *insn) in check_ld_abs() 1493 struct bpf_insn *insns = env->prog->insnsi; in check_cfg() 1709 struct bpf_insn *insns = env->prog->insnsi; in do_check() 1719 struct bpf_insn *insn; in do_check() [all …]
|
D | syscall.c | 465 struct bpf_insn *insn = &prog->insnsi[i]; in fixup_bpf_calls() 664 prog->len * sizeof(struct bpf_insn)) != 0) in bpf_prog_load()
|
D | core.c | 195 static unsigned int __bpf_prog_run(void *ctx, const struct bpf_insn *insn) in __bpf_prog_run()
|
/linux-4.4.14/tools/lib/bpf/ |
D | libbpf.c | 146 struct bpf_insn *insns; 240 if (size < sizeof(struct bpf_insn)) { in bpf_program__init() 259 prog->insns_cnt = size / sizeof(struct bpf_insn); in bpf_program__init() 261 prog->insns_cnt * sizeof(struct bpf_insn)); in bpf_program__init() 629 struct bpf_insn *insns = prog->insns; in bpf_program__collect_reloc() 637 insn_idx = rel.r_offset / sizeof(struct bpf_insn); in bpf_program__collect_reloc() 733 struct bpf_insn *insns = prog->insns; in bpf_program__relocate() 812 load_program(struct bpf_insn *insns, int insns_cnt, in load_program()
|
D | bpf.h | 18 int bpf_load_program(enum bpf_prog_type type, struct bpf_insn *insns,
|
D | bpf.c | 58 int bpf_load_program(enum bpf_prog_type type, struct bpf_insn *insns, in bpf_load_program()
|
/linux-4.4.14/net/core/ |
D | filter.c | 153 struct bpf_insn *insn_buf) in convert_skb_access() 155 struct bpf_insn *insn = insn_buf; in convert_skb_access() 204 struct bpf_insn **insnp) in convert_bpf_extensions() 206 struct bpf_insn *insn = *insnp; in convert_bpf_extensions() 359 struct bpf_insn *new_prog, int *new_len) in bpf_convert_filter() 362 struct bpf_insn *new_insn; in bpf_convert_filter() 389 struct bpf_insn tmp_insns[6] = { }; in bpf_convert_filter() 390 struct bpf_insn *insn = tmp_insns; in bpf_convert_filter() 945 sizeof(struct bpf_insn)); in bpf_migrate_filter() 1751 struct bpf_insn *insn_buf, in bpf_net_convert_ctx_access() [all …]
|
/linux-4.4.14/include/uapi/linux/ |
D | bpf.h | 58 struct bpf_insn { struct
|
/linux-4.4.14/arch/arm64/net/ |
D | bpf_jit_comp.c | 247 static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx) in build_insn() 547 const struct bpf_insn insn1 = insn[1]; in build_insn() 727 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
|
/linux-4.4.14/tools/testing/selftests/net/ |
D | psock_fanout.c | 101 struct bpf_insn prog[] = { in sock_fanout_set_ebpf()
|
/linux-4.4.14/lib/ |
D | test_bpf.c | 73 struct bpf_insn insns_int[MAX_INSNS]; 273 struct bpf_insn *insn; in bpf_fill_maxinsns9() 299 struct bpf_insn *insn; in bpf_fill_maxinsns10() 391 struct bpf_insn *insn; in bpf_fill_ld_abs_vlan_push_pop() 5281 memcpy(fp->insnsi, fptr, fp->len * sizeof(struct bpf_insn)); in generate_filter()
|
/linux-4.4.14/arch/x86/net/ |
D | bpf_jit_comp.c | 341 struct bpf_insn *insn = bpf_prog->insnsi; in do_jit()
|
/linux-4.4.14/arch/s390/net/ |
D | bpf_jit_comp.c | 490 struct bpf_insn *insn = &fp->insnsi[i]; in bpf_jit_insn()
|
/linux-4.4.14/Documentation/networking/ |
D | filter.txt | 1000 of two consecutive 'struct bpf_insn' 8-byte blocks and interpreted as single 1144 static struct bpf_insn prog[] = {
|