Home
last modified time | relevance | path

Searched refs:insns_cnt (Results 1 – 12 of 12) sorted by relevance

/linux/samples/bpf/
H A Dsock_example.c62 size_t insns_cnt = ARRAY_SIZE(prog); in test_sock() local
69 prog, insns_cnt, &opts); in test_sock()
H A Dfds_example.c56 size_t insns_cnt = ARRAY_SIZE(insns); in bpf_prog_create() local
73 insns, insns_cnt, &opts); in bpf_prog_create()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_autodetach.c17 size_t insns_cnt = ARRAY_SIZE(prog); in prog_load() local
20 prog, insns_cnt, "GPL", 0, in prog_load()
H A Dcgroup_attach_override.c19 size_t insns_cnt = ARRAY_SIZE(prog); in prog_load() local
22 prog, insns_cnt, "GPL", 0, in prog_load()
H A Dsockopt.c974 int fd, insns_cnt = 0; in load_prog() local
977 insns[insns_cnt].code != (BPF_JMP | BPF_EXIT); in load_prog()
978 insns_cnt++) { in load_prog()
980 insns_cnt++; in load_prog()
982 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in load_prog()
H A Dcgroup_attach_multi.c66 size_t insns_cnt = ARRAY_SIZE(prog); in prog_load_cnt() local
70 prog, insns_cnt, "GPL", 0, in prog_load_cnt()
/linux/tools/testing/selftests/bpf/
H A Dtesting_helpers.h20 size_t insns_cnt, const char *license,
H A Dtesting_helpers.c325 size_t insns_cnt, const char *license, in bpf_test_load_program() argument
337 return bpf_prog_load(type, NULL, license, insns, insns_cnt, &opts); in bpf_test_load_program()
H A Dtest_loader.c891 __u32 insns_cnt = 0, i; in run_subtest()
896 err = get_xlated_program(prog_fd, &insn_start, &insns_cnt); in run_subtest()
902 insn_end = insn_start + insns_cnt; in run_subtest()
852 __u32 insns_cnt = 0, i; get_xlated_program_text() local
/linux/tools/lib/bpf/
H A Dlibbpf_probes.c104 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load() argument
191 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load()
H A Dlibbpf.c463 size_t insns_cnt; member
774 prog->insns_cnt = 0; in bpf_program__exit()
816 prog->insns_cnt = prog->sec_insn_cnt; in bpf_object__init_prog()
954 for (i = 0; i < prog->insns_cnt; i++, insn++) in bpf_object_bswap_progs()
5972 if (insn_idx >= prog->insns_cnt) in bpf_object__relocate_core()
6366 subprog->sub_insn_off = main_prog->insns_cnt; in bpf_object__append_subprog_code()
6368 new_cnt = main_prog->insns_cnt + subprog->insns_cnt; in bpf_object__append_subprog_code()
6375 main_prog->insns_cnt = new_cnt; in bpf_object__append_subprog_code()
6378 subprog->insns_cnt * sizeof(*insns)); in bpf_object__append_subprog_code()
6381 main_prog->name, subprog->insns_cnt, subprog->name); in bpf_object__append_subprog_code()
[all …]
/linux/tools/bpf/bpftool/
H A Dfeature.c514 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load_ifindex() argument
527 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load_ifindex()