/linux/samples/bpf/ |
H A D | sock_example.c | 62 size_t insns_cnt = ARRAY_SIZE(prog); in test_sock() local 69 prog, insns_cnt, &opts); in test_sock()
|
H A D | fds_example.c | 56 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 D | cgroup_attach_autodetach.c | 17 size_t insns_cnt = ARRAY_SIZE(prog); in prog_load() local 20 prog, insns_cnt, "GPL", 0, in prog_load()
|
H A D | cgroup_attach_override.c | 19 size_t insns_cnt = ARRAY_SIZE(prog); in prog_load() local 22 prog, insns_cnt, "GPL", 0, in prog_load()
|
H A D | sockopt.c | 974 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 D | cgroup_attach_multi.c | 66 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 D | testing_helpers.h | 20 size_t insns_cnt, const char *license,
|
H A D | testing_helpers.c | 325 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 D | test_loader.c | 891 __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 D | libbpf_probes.c | 104 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 D | libbpf.c | 463 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 D | feature.c | 514 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()
|