Home
last modified time | relevance | path

Searched refs:nr_progs (Results 1 – 7 of 7) sorted by relevance

/linux/tools/lib/bpf/
A Dbpf_gen_internal.h34 __u32 nr_progs; member
48 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps);
49 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps);
A Dgen_loader.c113 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()
380 for (i = 0; i < gen->nr_progs; i++) in bpf_gen__finish()
1001 stack_off(prog_fd[gen->nr_progs]))); in bpf_gen__prog_load()
1002 gen->nr_progs++; in bpf_gen__prog_load()
A Dlibbpf.c716 int nr_progs, err, i; in bpf_object__add_programs() local
721 nr_progs = obj->nr_programs; in bpf_object__add_programs()
757 progs = libbpf_reallocarray(progs, nr_progs + 1, sizeof(*progs)); in bpf_object__add_programs()
770 prog = &progs[nr_progs]; in bpf_object__add_programs()
787 nr_progs++; in bpf_object__add_programs()
788 obj->nr_programs = nr_progs; in bpf_object__add_programs()
/linux/kernel/bpf/
A Dtrampoline.c189 tprogs[kind].nr_progs = tr->progs_cnt[kind]; in bpf_trampoline_get_progs()
360 if (tprogs[BPF_TRAMP_FEXIT].nr_progs || in bpf_trampoline_update()
361 tprogs[BPF_TRAMP_MODIFY_RETURN].nr_progs) in bpf_trampoline_update()
A Dbpf_struct_ops.c326 tprogs[BPF_TRAMP_FENTRY].nr_progs = 1; in bpf_struct_ops_prepare_trampoline()
/linux/arch/x86/net/
A Dbpf_jit_comp.c1851 for (i = 0; i < tp->nr_progs; i++) { in invoke_bpf()
1872 for (i = 0; i < tp->nr_progs; i++) { in invoke_bpf_mod_ret()
2042 if (fentry->nr_progs) in arch_prepare_bpf_trampoline()
2047 if (fmod_ret->nr_progs) { in arch_prepare_bpf_trampoline()
2048 branches = kcalloc(fmod_ret->nr_progs, sizeof(u8 *), in arch_prepare_bpf_trampoline()
2075 if (fmod_ret->nr_progs) { in arch_prepare_bpf_trampoline()
2085 for (i = 0; i < fmod_ret->nr_progs; i++) in arch_prepare_bpf_trampoline()
2090 if (fexit->nr_progs) in arch_prepare_bpf_trampoline()
/linux/include/linux/
A Dbpf.h604 int nr_progs; member

Completed in 39 milliseconds