Home
last modified time | relevance | path

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

/linux-6.3-rc2/samples/bpf/
A Dtest_cgrp2_sock.c79 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 Dsock_example.c62 size_t insns_cnt = ARRAY_SIZE(prog); in test_sock() local
69 prog, insns_cnt, &opts); in test_sock()
A Dtest_cgrp2_attach.c74 size_t insns_cnt = ARRAY_SIZE(prog); in prog_load() local
81 prog, insns_cnt, &opts); in prog_load()
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-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
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()
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()
A Dsockopt.c861 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 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-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_cgroup_storage.c39 size_t insns_cnt = ARRAY_SIZE(prog); in main() local
74 prog, insns_cnt, "GPL", 0, in main()
A Dtesting_helpers.h12 size_t insns_cnt, const char *license,
A Dtesting_helpers.c218 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 Dtest_sock_addr.c645 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 Dlibbpf_probes.c104 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 Dlibbpf.c408 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 Dfeature.c518 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 Dbpf-event.c40 const struct bpf_insn *insns, size_t insns_cnt,

Completed in 47 milliseconds