Home
last modified time | relevance | path

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

12

/Linux-v5.10/samples/bpf/
Dtest_cgrp2_sock.c75 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()
Dsock_example.c61 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()
Dtest_cgrp2_attach.c72 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load() local
75 prog, insns_cnt, "GPL", 0, in prog_load()
Dfds_example.c61 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()
Dbpf_load.c90 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/
Dtest_stub.c26 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()
Dtest_cgroup_storage.c38 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in main() local
70 prog, insns_cnt, "GPL", 0, in main()
Dtest_sock.c338 attr.insns_cnt = probe_prog_length(attr.insns); in load_sock_prog()
Dtest_sock_addr.c642 const struct bpf_insn *insns, size_t insns_cnt) in load_insns() argument
651 load_attr.insns_cnt = insns_cnt; in load_insns()
Dtest_lru_map.c82 prog.insns_cnt = ARRAY_SIZE(insns); in bpf_map_lookup_elem_with_ref_bit()
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Draw_tp_writable_test_run.c23 .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()
Dfexit_stress.c27 .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()
Dcgroup_attach_autodetach.c17 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load() local
20 prog, insns_cnt, "GPL", 0, in prog_load()
Dcgroup_attach_override.c19 size_t insns_cnt = sizeof(prog) / sizeof(struct bpf_insn); in prog_load() local
22 prog, insns_cnt, "GPL", 0, in prog_load()
Draw_tp_writable_reject_nbd_invalid.c25 .insns_cnt = sizeof(program) / sizeof(struct bpf_insn), in test_raw_tp_writable_reject_nbd_invalid()
Dcgroup_attach_multi.c66 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()
Dsockopt.c865 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/
Dlibbpf_probes.c69 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()
Dbpf.h79 size_t insns_cnt; member
109 const struct bpf_insn *insns, size_t insns_cnt,
114 size_t insns_cnt, __u32 prog_flags,
Dbpf.c246 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()
Dbtf.h73 const char *sec_name, __u32 insns_cnt,
78 const char *sec_name, __u32 insns_cnt,
Dlibbpf.c259 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 …]
Dxsk.c417 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()
Dbtf.c2563 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()
Dlibbpf.h339 struct bpf_insn *insns, int insns_cnt,

12