Lines Matching defs:programs
237 * programs are processed and relocated and is used to determined
256 * entry-point BPF programs this includes the size of main program
257 * itself plus all the used sub-programs, appended at the end
410 struct bpf_program *programs;
465 /* Parse and load BTF vmlinux if any of the programs in the object need
619 progs = obj->programs;
651 * In this case the original obj->programs
659 obj->programs = progs;
2510 /* BPF_PROG_TYPE_TRACING programs which do not attach to other programs
2937 /* sort BPF programs by section name and in-section instruction offset
2939 qsort(obj->programs, obj->nr_programs, sizeof(*obj->programs), cmp_progs);
3275 /* For legacy reasons, libbpf supports an entry-point BPF programs
3277 * there are 2 or more such programs in the .text section, they all
3278 * must be subprograms called from entry-point BPF programs in
3280 * which of those programs should be loaded vs which are a subprogram.
3283 * .text programs are subprograms (even if they are not called from
3284 * other programs), because libbpf never explicitly supported mixing
3285 * SEC()-designated BPF programs and .text entry-point BPF programs.
3487 prog = &obj->programs[m];
3498 prog = &obj->programs[l];
5939 if (strcmp(obj->programs[i].sec_name, sec_name) == 0) {
5940 prog = &obj->programs[i];
6256 /* we enforce that sub-programs should be in .text section */
6305 * different main programs */
6352 * programs mainA and mainB and BPF object contains three subprogs: subA,
6409 subprog = &obj->programs[i];
6442 /* relocate data references first for all programs and sub-programs,
6447 prog = &obj->programs[i];
6456 * programs; each copy of subprogram code needs to be relocated
6461 prog = &obj->programs[i];
6477 prog = &obj->programs[i];
6640 struct bpf_program *p = &obj->programs[i];
6917 prog = &obj->programs[i];
6924 prog = &obj->programs[i];
7101 bpf_program__unload(&obj->programs[i]);
7977 if (obj->programs && obj->nr_programs) {
7979 bpf_program__exit(&obj->programs[i]);
7981 zfree(&obj->programs);
8054 return forward ? &obj->programs[0] :
8055 &obj->programs[nr_programs - 1];
8062 idx = (p - obj->programs) + (forward ? 1 : -1);
8065 return &obj->programs[idx];