/linux-6.6.21/samples/bpf/ |
D | test_cgrp2_sock.c | 79 size_t insns_cnt; in prog_load() local 83 insns_cnt = sizeof(prog_start) + sizeof(prog_end); in prog_load() 85 insns_cnt += sizeof(prog_dev); in prog_load() 88 insns_cnt += sizeof(prog_mark); in prog_load() 91 insns_cnt += sizeof(prog_prio); in prog_load() 93 p = prog = malloc(insns_cnt); in prog_load() 120 insns_cnt /= sizeof(struct bpf_insn); in prog_load() 123 prog, insns_cnt, &opts); in prog_load()
|
D | sock_example.c | 62 size_t insns_cnt = ARRAY_SIZE(prog); in test_sock() local 69 prog, insns_cnt, &opts); in test_sock()
|
D | test_cgrp2_attach.c | 74 size_t insns_cnt = ARRAY_SIZE(prog); in prog_load() local 81 prog, insns_cnt, &opts); in prog_load()
|
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-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
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()
|
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()
|
D | sockopt.c | 928 int fd, insns_cnt = 0; in load_prog() local 931 insns[insns_cnt].code != (BPF_JMP | BPF_EXIT); in load_prog() 932 insns_cnt++) { in load_prog() 934 insns_cnt++; in load_prog() 936 fd = bpf_prog_load(BPF_PROG_TYPE_CGROUP_SOCKOPT, NULL, "GPL", insns, insns_cnt, &opts); in load_prog()
|
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-6.6.21/tools/testing/selftests/bpf/ |
D | test_cgroup_storage.c | 39 size_t insns_cnt = ARRAY_SIZE(prog); in main() local 74 prog, insns_cnt, "GPL", 0, in main()
|
D | testing_helpers.h | 17 size_t insns_cnt, const char *license,
|
D | testing_helpers.c | 296 size_t insns_cnt, const char *license, in bpf_test_load_program() argument 308 return bpf_prog_load(type, NULL, license, insns, insns_cnt, &opts); in bpf_test_load_program()
|
D | test_sock_addr.c | 645 const struct bpf_insn *insns, size_t insns_cnt) in load_insns() argument 654 ret = bpf_prog_load(BPF_PROG_TYPE_CGROUP_SOCK_ADDR, NULL, "GPL", insns, insns_cnt, &opts); in load_insns()
|
/linux-6.6.21/tools/lib/bpf/ |
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()
|
D | libbpf.c | 424 size_t insns_cnt; member 722 prog->insns_cnt = 0; in bpf_program__exit() 764 prog->insns_cnt = prog->sec_insn_cnt; in bpf_object__init_prog() 5853 if (insn_idx >= prog->insns_cnt) in bpf_object__relocate_core() 6321 subprog->sub_insn_off = main_prog->insns_cnt; in bpf_object__reloc_code() 6323 new_cnt = main_prog->insns_cnt + subprog->insns_cnt; in bpf_object__reloc_code() 6330 main_prog->insns_cnt = new_cnt; in bpf_object__reloc_code() 6333 subprog->insns_cnt * sizeof(*insns)); in bpf_object__reloc_code() 6336 main_prog->name, subprog->insns_cnt, subprog->name); in bpf_object__reloc_code() 6790 for (i = 0; i < prog->insns_cnt; i++, insn++) { in bpf_object__sanitize_prog() [all …]
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | feature.c | 518 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load_ifindex() argument 531 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load_ifindex()
|