/Linux-v5.10/samples/bpf/ |
D | test_cgrp2_sock.c | 75 size_t insns_cnt; in prog_load() local 79 insns_cnt = sizeof(prog_start) + sizeof(prog_end); in prog_load() 81 insns_cnt += sizeof(prog_dev); in prog_load() 84 insns_cnt += sizeof(prog_mark); in prog_load() 87 insns_cnt += sizeof(prog_prio); in prog_load() 89 p = prog = malloc(insns_cnt); in prog_load() 116 insns_cnt /= sizeof(struct bpf_insn); in prog_load() 118 ret = bpf_load_program(BPF_PROG_TYPE_CGROUP_SOCK, prog, insns_cnt, in prog_load()
|
D | sock_example.c | 61 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in test_sock() local 63 prog_fd = bpf_load_program(BPF_PROG_TYPE_SOCKET_FILTER, prog, insns_cnt, in test_sock()
|
D | test_cgrp2_attach.c | 72 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load() local 75 prog, insns_cnt, "GPL", 0, in prog_load()
|
D | fds_example.c | 61 size_t insns_cnt = sizeof(insns) / sizeof(struct bpf_insn); in bpf_prog_create() local 71 insns, insns_cnt, "GPL", 0, in bpf_prog_create()
|
D | bpf_load.c | 90 size_t insns_cnt = size / sizeof(struct bpf_insn); in load_and_attach() local 131 fd = bpf_load_program(prog_type, prog, insns_cnt, license, kern_version, in load_and_attach()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | test_stub.c | 26 size_t insns_cnt, const char *license, in bpf_test_load_program() argument 37 load_attr.insns_cnt = insns_cnt; in bpf_test_load_program()
|
D | test_cgroup_storage.c | 38 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in main() local 70 prog, insns_cnt, "GPL", 0, in main()
|
D | test_sock.c | 338 attr.insns_cnt = probe_prog_length(attr.insns); in load_sock_prog()
|
D | test_sock_addr.c | 642 const struct bpf_insn *insns, size_t insns_cnt) in load_insns() argument 651 load_attr.insns_cnt = insns_cnt; in load_insns()
|
D | test_lru_map.c | 82 prog.insns_cnt = ARRAY_SIZE(insns); in bpf_map_lookup_elem_with_ref_bit()
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | raw_tp_writable_test_run.c | 23 .insns_cnt = sizeof(trace_program) / sizeof(struct bpf_insn), in test_raw_tp_writable_test_run() 41 .insns_cnt = sizeof(skb_program) / sizeof(struct bpf_insn), in test_raw_tp_writable_test_run()
|
D | fexit_stress.c | 27 .insns_cnt = sizeof(trace_program) / sizeof(struct bpf_insn), in test_fexit_stress() 40 .insns_cnt = sizeof(skb_program) / sizeof(struct bpf_insn), in test_fexit_stress()
|
D | cgroup_attach_autodetach.c | 17 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load() local 20 prog, insns_cnt, "GPL", 0, in prog_load()
|
D | cgroup_attach_override.c | 19 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load() local 22 prog, insns_cnt, "GPL", 0, in prog_load()
|
D | raw_tp_writable_reject_nbd_invalid.c | 25 .insns_cnt = sizeof(program) / sizeof(struct bpf_insn), in test_raw_tp_writable_reject_nbd_invalid()
|
D | cgroup_attach_multi.c | 66 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load_cnt() local 70 prog, insns_cnt, "GPL", 0, in prog_load_cnt()
|
D | sockopt.c | 865 insns[attr.insns_cnt].code != (BPF_JMP | BPF_EXIT); in load_prog() 866 attr.insns_cnt++) { in load_prog() 868 attr.insns_cnt++; in load_prog()
|
/Linux-v5.10/tools/lib/bpf/ |
D | libbpf_probes.c | 69 size_t insns_cnt, char *buf, size_t buf_len, __u32 ifindex) in probe_load() argument 118 xattr.insns_cnt = insns_cnt; in probe_load()
|
D | bpf.h | 79 size_t insns_cnt; member 109 const struct bpf_insn *insns, size_t insns_cnt, 114 size_t insns_cnt, __u32 prog_flags,
|
D | bpf.c | 246 attr.insn_cnt = (__u32)load_attr->insns_cnt; in bpf_load_program_xattr() 330 size_t insns_cnt, const char *license, in bpf_load_program() argument 341 load_attr.insns_cnt = insns_cnt; in bpf_load_program() 349 size_t insns_cnt, __u32 prog_flags, const char *license, in bpf_verify_program() argument 357 attr.insn_cnt = (__u32)insns_cnt; in bpf_verify_program()
|
D | btf.h | 73 const char *sec_name, __u32 insns_cnt, 78 const char *sec_name, __u32 insns_cnt,
|
D | libbpf.c | 259 size_t insns_cnt; member 533 prog->insns_cnt = 0; in bpf_program__exit() 576 prog->insns_cnt = prog->sec_insn_cnt; in bpf_object__init_prog() 3706 attr.insns_cnt = ARRAY_SIZE(insns); in bpf_object__probe_loading() 3745 attr.insns_cnt = ARRAY_SIZE(insns); in probe_kern_prog_name() 3785 prg_attr.insns_cnt = ARRAY_SIZE(insns); in probe_kern_global_data() 3890 attr.insns_cnt = ARRAY_SIZE(insns); in probe_kern_exp_attach_type() 3911 attr.insns_cnt = ARRAY_SIZE(insns); in probe_kern_probe_read_kernel() 3946 prg_attr.insns_cnt = ARRAY_SIZE(insns); in probe_prog_bind_map() 5513 insn_idx + 1 >= prog->insns_cnt || in bpf_core_patch_insn() [all …]
|
D | xsk.c | 417 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in xsk_load_xdp_prog() local 419 prog_fd = bpf_load_program(BPF_PROG_TYPE_XDP, prog, insns_cnt, in xsk_load_xdp_prog()
|
D | btf.c | 2563 const char *sec_name, __u32 insns_cnt, in btf_ext_reloc_info() argument 2599 insns_cnt; in btf_ext_reloc_info() 2611 const char *sec_name, __u32 insns_cnt, in btf_ext__reloc_func_info() argument 2615 insns_cnt, func_info, cnt); in btf_ext__reloc_func_info() 2620 const char *sec_name, __u32 insns_cnt, in btf_ext__reloc_line_info() argument 2624 insns_cnt, line_info, cnt); in btf_ext__reloc_line_info()
|
D | libbpf.h | 339 struct bpf_insn *insns, int insns_cnt,
|