Lines Matching refs:nr_programs
243 size_t nr_programs; member
418 nr_progs = obj->nr_programs; in bpf_object__add_program()
435 obj->nr_programs = nr_progs + 1; in bpf_object__add_program()
448 for (pi = 0; pi < obj->nr_programs; pi++) { in bpf_object__init_prog_names()
1668 for (i = 0; i < obj->nr_programs; i++) { in bpf_object__find_prog_by_idx()
3309 for (i = 0; i < obj->nr_programs; i++) { in bpf_object__relocate()
3541 for (i = 0; i < obj->nr_programs; i++) { in bpf_object__load_progs()
3689 for (i = 0; i < obj->nr_programs; i++) in bpf_object__unload()
4208 if (obj->programs && obj->nr_programs) { in bpf_object__close()
4209 for (i = 0; i < obj->nr_programs; i++) in bpf_object__close()
4277 size_t nr_programs = obj->nr_programs; in __bpf_program__iter() local
4280 if (!nr_programs) in __bpf_program__iter()
4286 &obj->programs[nr_programs - 1]; in __bpf_program__iter()
4294 if (idx >= obj->nr_programs || idx < 0) in __bpf_program__iter()