Home
last modified time | relevance | path

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

/external/libbpf/src/
Dlibbpf.c658 size_t sec_off, void *insn_data, size_t insn_data_sz) in bpf_object__init_prog() argument
660 if (insn_data_sz == 0 || insn_data_sz % BPF_INSN_SZ || sec_off % BPF_INSN_SZ) { in bpf_object__init_prog()
662 sec_name, name, sec_off, insn_data_sz); in bpf_object__init_prog()
671 prog->sec_insn_cnt = insn_data_sz / BPF_INSN_SZ; in bpf_object__init_prog()
696 prog->insns = malloc(insn_data_sz); in bpf_object__init_prog()
699 memcpy(prog->insns, insn_data, insn_data_sz); in bpf_object__init_prog()