Lines Matching refs:bpf_insn
92 struct bpf_insn insns[MAX_INSNS];
93 struct bpf_insn *fill_insns;
105 struct bpf_insn expected_insns[MAX_EXPECTED_INSNS];
110 struct bpf_insn unexpected_insns[MAX_UNEXPECTED_INSNS];
198 struct bpf_insn *insn = self->fill_insns; in bpf_fill_ld_abs_vlan_push_pop()
241 struct bpf_insn *insn = self->fill_insns; in bpf_fill_jump_around_ld_abs()
263 struct bpf_insn *insn = self->fill_insns; in bpf_fill_rand_ld_dw()
270 struct bpf_insn tmp[2] = { BPF_LD_IMM64(BPF_REG_1, val) }; in bpf_fill_rand_ld_dw()
291 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale1()
317 struct bpf_insn *insn = self->fill_insns; in bpf_fill_scale2()
356 static int bpf_fill_torturous_jumps_insn_1(struct bpf_insn *insn) in bpf_fill_torturous_jumps_insn_1()
372 static int bpf_fill_torturous_jumps_insn_2(struct bpf_insn *insn) in bpf_fill_torturous_jumps_insn_2()
396 struct bpf_insn *insn = self->fill_insns; in bpf_fill_torturous_jumps()
430 struct bpf_insn *insn = self->fill_insns; in bpf_fill_big_prog_with_loop_1()
527 static int probe_filter_length(const struct bpf_insn *fp) in probe_filter_length()
583 struct bpf_insn prog[] = { in create_prog_dummy_simple()
594 struct bpf_insn prog[] = { in create_prog_dummy_loop()
882 struct bpf_insn *prog, int *map_fds) in do_test_fixup()
910 test->fill_insns = calloc(MAX_TEST_INSNS, sizeof(struct bpf_insn)); in do_test_fixup()
1235 static int get_xlated_program(int fd_prog, struct bpf_insn **buf, int *cnt) in get_xlated_program()
1240 __u32 buf_element_size = sizeof(struct bpf_insn); in get_xlated_program()
1276 static bool is_null_insn(struct bpf_insn *insn) in is_null_insn()
1278 struct bpf_insn null_insn = {}; in is_null_insn()
1283 static bool is_skip_insn(struct bpf_insn *insn) in is_skip_insn()
1285 struct bpf_insn skip_insn = SKIP_INSNS(); in is_skip_insn()
1290 static int null_terminated_insn_len(struct bpf_insn *seq, int max_len) in null_terminated_insn_len()
1301 static bool compare_masked_insn(struct bpf_insn *orig, struct bpf_insn *masked) in compare_masked_insn()
1303 struct bpf_insn orig_masked; in compare_masked_insn()
1314 static int find_insn_subseq(struct bpf_insn *seq, struct bpf_insn *subseq, in find_insn_subseq()
1338 static int find_skip_insn_marker(struct bpf_insn *seq, int len) in find_skip_insn_marker()
1353 static bool find_all_insn_subseqs(struct bpf_insn *seq, struct bpf_insn *subseqs, in find_all_insn_subseqs()
1375 static void print_insn(struct bpf_insn *buf, int cnt) in print_insn()
1381 struct bpf_insn *insn = &buf[i]; in print_insn()
1397 struct bpf_insn *buf; in check_xlated_program()
1448 struct bpf_insn *prog = test->insns; in do_test_single()