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()
3322 for (i = 0; i < obj->nr_programs; i++) { in bpf_object__relocate()
3554 for (i = 0; i < obj->nr_programs; i++) { in bpf_object__load_progs()
3702 for (i = 0; i < obj->nr_programs; i++) in bpf_object__unload()
4221 if (obj->programs && obj->nr_programs) { in bpf_object__close()
4222 for (i = 0; i < obj->nr_programs; i++) in bpf_object__close()
4290 size_t nr_programs = obj->nr_programs; in __bpf_program__iter() local
4293 if (!nr_programs) in __bpf_program__iter()
4299 &obj->programs[nr_programs - 1]; in __bpf_program__iter()
4307 if (idx >= obj->nr_programs || idx < 0) in __bpf_program__iter()