Home
last modified time | relevance | path

Searched refs:bpf_insn (Results 1 – 17 of 17) sorted by relevance

/linux-4.1.27/samples/bpf/
Dlibbpf.h5 struct bpf_insn;
15 const struct bpf_insn *insns, int insn_len,
24 ((struct bpf_insn) { \
32 ((struct bpf_insn) { \
42 ((struct bpf_insn) { \
50 ((struct bpf_insn) { \
60 ((struct bpf_insn) { \
70 ((struct bpf_insn) { \
82 ((struct bpf_insn) { \
88 ((struct bpf_insn) { \
[all …]
Dbpf_load.c33 static int load_and_attach(const char *event, struct bpf_insn *prog, int size) in load_and_attach()
161 GElf_Shdr *shdr, struct bpf_insn *insn) in parse_relo_and_apply()
174 insn_idx = rel.r_offset / sizeof(struct bpf_insn); in parse_relo_and_apply()
254 struct bpf_insn *insns; in load_bpf_file()
260 insns = (struct bpf_insn *) data_prog->d_buf; in load_bpf_file()
Dlibbpf.c83 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()
Dsock_example.c43 struct bpf_insn prog[] = { in test_sock()
Dtest_verifier.c25 struct bpf_insn insns[MAX_INSNS];
748 static int probe_filter_length(struct bpf_insn *fp) in probe_filter_length()
777 struct bpf_insn *prog = tests[i].insns; in test()
793 prog_len * sizeof(struct bpf_insn), in test()
/linux-4.1.27/include/linux/
Dfilter.h51 ((struct bpf_insn) { \
59 ((struct bpf_insn) { \
69 ((struct bpf_insn) { \
77 ((struct bpf_insn) { \
87 ((struct bpf_insn) { \
97 ((struct bpf_insn) { \
105 ((struct bpf_insn) { \
115 ((struct bpf_insn) { \
123 ((struct bpf_insn) { \
135 ((struct bpf_insn) { \
[all …]
Dbpf.h109 struct bpf_insn *insn);
/linux-4.1.27/kernel/bpf/
Dverifier.c315 static void print_bpf_insn(struct bpf_insn *insn) in print_bpf_insn()
687 static int check_xadd(struct verifier_env *env, struct bpf_insn *insn) in check_xadd()
914 static int check_alu_op(struct reg_state *regs, struct bpf_insn *insn) in check_alu_op()
1053 struct bpf_insn *insn, int *insn_idx) in check_cond_jmp_op()
1152 static struct bpf_map *ld_imm64_to_map_ptr(struct bpf_insn *insn) in ld_imm64_to_map_ptr()
1160 static int check_ld_imm(struct verifier_env *env, struct bpf_insn *insn) in check_ld_imm()
1217 static int check_ld_abs(struct verifier_env *env, struct bpf_insn *insn) in check_ld_abs()
1360 struct bpf_insn *insns = env->prog->insnsi; in check_cfg()
1576 struct bpf_insn *insns = env->prog->insnsi; in do_check()
1586 struct bpf_insn *insn; in do_check()
[all …]
Dsyscall.c386 struct bpf_insn *insn = &prog->insnsi[i]; in fixup_bpf_calls()
512 prog->len * sizeof(struct bpf_insn)) != 0) in bpf_prog_load()
Dcore.c186 static unsigned int __bpf_prog_run(void *ctx, const struct bpf_insn *insn) in __bpf_prog_run()
/linux-4.1.27/net/core/
Dfilter.c154 struct bpf_insn *insn_buf) in convert_skb_access()
156 struct bpf_insn *insn = insn_buf; in convert_skb_access()
205 struct bpf_insn **insnp) in convert_bpf_extensions()
207 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()
388 struct bpf_insn tmp_insns[6] = { }; in bpf_convert_filter()
389 struct bpf_insn *insn = tmp_insns; in bpf_convert_filter()
942 sizeof(struct bpf_insn)); in bpf_migrate_filter()
1409 struct bpf_insn *insn_buf) in sk_filter_convert_ctx_access()
[all …]
/linux-4.1.27/include/uapi/linux/
Dbpf.h58 struct bpf_insn { struct
/linux-4.1.27/arch/arm64/net/
Dbpf_jit_comp.c214 static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx) in build_insn()
514 const struct bpf_insn insn1 = insn[1]; in build_insn()
676 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
/linux-4.1.27/arch/x86/net/
Dbpf_jit_comp.c192 struct bpf_insn *insn = bpf_prog->insnsi; in do_jit()
/linux-4.1.27/arch/s390/net/
Dbpf_jit_comp.c455 struct bpf_insn *insn = &fp->insnsi[i]; in bpf_jit_insn()
/linux-4.1.27/lib/
Dtest_bpf.c69 struct bpf_insn insns_int[MAX_INSNS];
1918 fp->len * sizeof(struct bpf_insn)); in generate_filter()
/linux-4.1.27/Documentation/networking/
Dfilter.txt1000 of two consecutive 'struct bpf_insn' 8-byte blocks and interpreted as single
1144 static struct bpf_insn prog[] = {