/linux-6.3-rc2/samples/bpf/ |
A 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()
|
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()
|
A 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()
|
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-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
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()
|
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()
|
A D | sockopt.c | 861 int fd, insns_cnt = 0; in load_prog() local 864 insns[insns_cnt].code != (BPF_JMP | BPF_EXIT); in load_prog() 865 insns_cnt++) { in load_prog() 867 insns_cnt++; in load_prog() 869 fd = bpf_prog_load(BPF_PROG_TYPE_CGROUP_SOCKOPT, NULL, "GPL", insns, insns_cnt, &opts); in load_prog()
|
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-6.3-rc2/tools/testing/selftests/bpf/ |
A D | test_cgroup_storage.c | 39 size_t insns_cnt = ARRAY_SIZE(prog); in main() local 74 prog, insns_cnt, "GPL", 0, in main()
|
A D | testing_helpers.h | 12 size_t insns_cnt, const char *license,
|
A D | testing_helpers.c | 218 size_t insns_cnt, const char *license, in bpf_test_load_program() argument 230 return bpf_prog_load(type, NULL, license, insns, insns_cnt, &opts); in bpf_test_load_program()
|
A 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.3-rc2/tools/lib/bpf/ |
A D | libbpf_probes.c | 104 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load() argument 188 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load()
|
A D | libbpf.c | 408 size_t insns_cnt; member 702 prog->insns_cnt = 0; in bpf_program__exit() 744 prog->insns_cnt = prog->sec_insn_cnt; in bpf_object__init_prog() 5740 if (insn_idx >= prog->insns_cnt) in bpf_object__relocate_core() 6182 new_cnt = main_prog->insns_cnt + subprog->insns_cnt; in bpf_object__reloc_code() 6189 main_prog->insns_cnt = new_cnt; in bpf_object__reloc_code() 6737 struct bpf_insn *insns, int insns_cnt, in bpf_object_load_prog() argument 6759 if (!insns || !insns_cnt) in bpf_object_load_prog() 6795 insns_cnt = prog->insns_cnt; in bpf_object_load_prog() 8353 return prog->insns_cnt; in bpf_program__insn_cnt() [all …]
|
/linux-6.3-rc2/tools/bpf/bpftool/ |
A 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()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | bpf-event.c | 40 const struct bpf_insn *insns, size_t insns_cnt,
|