Searched refs:nr_progs (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/tools/lib/bpf/ |
D | bpf_gen_internal.h | 38 __u32 nr_progs; member 54 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps); 55 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps);
|
D | gen_loader.c | 113 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps) in bpf_gen__init() argument 131 nr_progs_sz = offsetof(struct loader_stack, prog_fd[nr_progs]); in bpf_gen__init() 370 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps) in bpf_gen__finish() argument 374 if (nr_progs < gen->nr_progs || nr_maps != gen->nr_maps) { in bpf_gen__finish() 376 nr_progs, gen->nr_progs, nr_maps, gen->nr_maps); in bpf_gen__finish() 381 for (i = 0; i < gen->nr_progs; i++) in bpf_gen__finish() 1030 stack_off(prog_fd[gen->nr_progs]))); in bpf_gen__prog_load() 1031 gen->nr_progs++; in bpf_gen__prog_load()
|
D | libbpf.c | 864 int nr_progs, err, i; in bpf_object__add_programs() local 869 nr_progs = obj->nr_programs; in bpf_object__add_programs() 904 progs = libbpf_reallocarray(progs, nr_progs + 1, sizeof(*progs)); in bpf_object__add_programs() 917 prog = &progs[nr_progs]; in bpf_object__add_programs() 936 nr_progs++; in bpf_object__add_programs() 937 obj->nr_programs = nr_progs; in bpf_object__add_programs()
|
/linux-6.12.1/samples/bpf/ |
D | syscall_tp_user.c | 65 int nr_progs = 0; in test() local 68 nr_progs += 1; in test() 70 links = calloc(nr_progs * nr_tests, sizeof(struct bpf_link *)); in test()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | test_loader.c | 1061 int err, i, nr_progs; in process_subtest() local 1072 nr_progs = 0; in process_subtest() 1074 ++nr_progs; in process_subtest() 1076 specs = calloc(nr_progs, sizeof(struct test_spec)); in process_subtest() 1105 for (i = 0; i < nr_progs; ++i) in process_subtest()
|