Home
last modified time | relevance | path

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

/third_party/libbpf/src/
Dlibbpf.c784 size_t sec_off, void *insn_data, size_t insn_data_sz) in bpf_object__init_prog() argument
786 if (insn_data_sz == 0 || insn_data_sz % BPF_INSN_SZ || sec_off % BPF_INSN_SZ) { in bpf_object__init_prog()
788 sec_name, name, sec_off, insn_data_sz); in bpf_object__init_prog()
797 prog->sec_insn_cnt = insn_data_sz / BPF_INSN_SZ; in bpf_object__init_prog()
829 prog->insns = malloc(insn_data_sz); in bpf_object__init_prog()
832 memcpy(prog->insns, insn_data, insn_data_sz); in bpf_object__init_prog()