Home
last modified time | relevance | path

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

/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.c750 size_t sec_off, void *insn_data, size_t insn_data_sz) in bpf_object__init_prog() argument
752 if (insn_data_sz == 0 || insn_data_sz % BPF_INSN_SZ || sec_off % BPF_INSN_SZ) { in bpf_object__init_prog()
754 sec_name, name, sec_off, insn_data_sz); in bpf_object__init_prog()
763 prog->sec_insn_cnt = insn_data_sz / BPF_INSN_SZ; in bpf_object__init_prog()
795 prog->insns = malloc(insn_data_sz); in bpf_object__init_prog()
798 memcpy(prog->insns, insn_data, insn_data_sz); in bpf_object__init_prog()