Lines Matching refs:bpf_insn
88 struct bpf_insn insns[MAX_INSNS];
89 struct bpf_insn *fill_insns;
101 struct bpf_insn expected_insns[MAX_EXPECTED_INSNS];
106 struct bpf_insn unexpected_insns[MAX_UNEXPECTED_INSNS];
194 struct bpf_insn *insn = self->fill_insns; in bpf_fill_ld_abs_vlan_push_pop()
237 struct bpf_insn *insn = self->fill_insns; in bpf_fill_jump_around_ld_abs()
259 struct bpf_insn *insn = self->fill_insns; in bpf_fill_rand_ld_dw()
266 struct bpf_insn tmp[2] = { BPF_LD_IMM64(BPF_REG_1, val) }; in bpf_fill_rand_ld_dw()
287 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale1()
313 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale2()
352 static int bpf_fill_torturous_jumps_insn_1(struct bpf_insn *insn) in bpf_fill_torturous_jumps_insn_1()
368 static int bpf_fill_torturous_jumps_insn_2(struct bpf_insn *insn) in bpf_fill_torturous_jumps_insn_2()
392 struct bpf_insn *insn = self->fill_insns; in bpf_fill_torturous_jumps()
426 struct bpf_insn *insn = self->fill_insns; in bpf_fill_big_prog_with_loop_1()
523 static int probe_filter_length(const struct bpf_insn *fp) in probe_filter_length()
579 struct bpf_insn prog[] = { in create_prog_dummy_simple()
590 struct bpf_insn prog[] = { in create_prog_dummy_loop()
970 static void fixup_prog_kfuncs(struct bpf_insn *prog, int *fd_array, in fixup_prog_kfuncs()
1010 struct bpf_insn *prog, int *map_fds, int *fd_array) in do_test_fixup()
1037 test->fill_insns = calloc(MAX_TEST_INSNS, sizeof(struct bpf_insn)); in do_test_fixup()
1344 static struct bpf_insn *get_xlated_program(int fd_prog, int *cnt) in get_xlated_program()
1346 __u32 buf_element_size = sizeof(struct bpf_insn); in get_xlated_program()
1350 struct bpf_insn *buf; in get_xlated_program()
1386 static bool is_null_insn(struct bpf_insn *insn) in is_null_insn()
1388 struct bpf_insn null_insn = {}; in is_null_insn()
1393 static bool is_skip_insn(struct bpf_insn *insn) in is_skip_insn()
1395 struct bpf_insn skip_insn = SKIP_INSNS(); in is_skip_insn()
1400 static int null_terminated_insn_len(struct bpf_insn *seq, int max_len) in null_terminated_insn_len()
1411 static bool compare_masked_insn(struct bpf_insn *orig, struct bpf_insn *masked) in compare_masked_insn()
1413 struct bpf_insn orig_masked; in compare_masked_insn()
1424 static int find_insn_subseq(struct bpf_insn *seq, struct bpf_insn *subseq, in find_insn_subseq()
1448 static int find_skip_insn_marker(struct bpf_insn *seq, int len) in find_skip_insn_marker()
1463 static bool find_all_insn_subseqs(struct bpf_insn *seq, struct bpf_insn *subseqs, in find_all_insn_subseqs()
1485 static void print_insn(struct bpf_insn *buf, int cnt) in print_insn()
1491 struct bpf_insn *insn = &buf[i]; in print_insn()
1507 struct bpf_insn *buf; in check_xlated_program()
1559 struct bpf_insn *prog = test->insns; in do_test_single()