On Wed, 27 Feb 2019 16:05:45 -0800, Andrii Nakryiko wrote: > > if (object) { > > - assert(!load_bpf_file((char *)object)); > > - return prog_fd[0]; > > + assert(!bpf_prog_load(object, 0, &obj, &prog_fd)); > > Here and in few more places below: is it possible to specify correct > bpf_prog_type instead of 0? Some of them yes, some of them no. There are objects with multiple program types IIRC. This program type argument is only used for checking if kernel versions are needed, and they are provided in samples so it doesn't matter. I'll try to add where possible.