Lines Matching refs:insns_cnt
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()
6882 struct bpf_insn *insns, int insns_cnt, in bpf_object_load_prog() argument
6904 if (!insns || !insns_cnt) in bpf_object_load_prog()
6939 insns_cnt = prog->insns_cnt; in bpf_object_load_prog()
6947 license, insns, insns_cnt, &load_attr, in bpf_object_load_prog()
6985 ret = bpf_prog_load(prog->type, prog_name, license, insns, insns_cnt, &load_attr); in bpf_object_load_prog()
7325 err = bpf_object_load_prog(obj, prog, prog->insns, prog->insns_cnt, in bpf_object__load_progs()
8612 return prog->insns_cnt; in bpf_program__insn_cnt()
8632 prog->insns_cnt = new_insn_cnt; in bpf_program__set_insns()