Lines Matching defs:gen
46 static int blob_fd_array_off(struct bpf_gen *gen, int index) in blob_fd_array_off()
51 static int realloc_insn_buf(struct bpf_gen *gen, __u32 size) in realloc_insn_buf()
74 static int realloc_data_buf(struct bpf_gen *gen, __u32 size) in realloc_data_buf()
97 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit()
105 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2()
114 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps) in bpf_gen__init()
157 static int add_data(struct bpf_gen *gen, const void *data, __u32 size) in add_data()
179 static int add_map_fd(struct bpf_gen *gen) in add_map_fd()
189 static int add_kfunc_btf_fd(struct bpf_gen *gen) in add_kfunc_btf_fd()
212 static void emit_rel_store(struct bpf_gen *gen, int off, int data) in emit_rel_store()
221 static void move_blob2blob(struct bpf_gen *gen, int off, int size, int blob_off) in move_blob2blob()
231 static void move_blob2ctx(struct bpf_gen *gen, int ctx_off, int size, int blob_off) in move_blob2ctx()
239 static void move_ctx2blob(struct bpf_gen *gen, int off, int size, int ctx_off, in move_ctx2blob()
253 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob()
261 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx()
267 static void emit_sys_bpf(struct bpf_gen *gen, int cmd, int attr, int attr_size) in emit_sys_bpf()
283 static void emit_check_err(struct bpf_gen *gen) in emit_check_err()
299 static void emit_debug(struct bpf_gen *gen, int reg1, int reg2, in emit_debug()
327 static void debug_regs(struct bpf_gen *gen, int reg1, int reg2, const char *fmt, ...) in debug_regs()
336 static void debug_ret(struct bpf_gen *gen, const char *fmt, ...) in debug_ret()
345 static void __emit_sys_close(struct bpf_gen *gen) in __emit_sys_close()
357 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack()
363 static void emit_sys_close_blob(struct bpf_gen *gen, int blob_off) in emit_sys_close_blob()
371 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps) in bpf_gen__finish()
418 void bpf_gen__free(struct bpf_gen *gen) in bpf_gen__free()
449 void bpf_gen__load_btf(struct bpf_gen *gen, const void *btf_raw_data, in bpf_gen__load_btf()
481 void bpf_gen__map_create(struct bpf_gen *gen, in bpf_gen__map_create()
560 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *attach_name, in bpf_gen__record_attach_target()
574 static void emit_find_attach_target(struct bpf_gen *gen) in emit_find_attach_target()
596 void bpf_gen__record_extern(struct bpf_gen *gen, const char *name, bool is_weak, in bpf_gen__record_extern()
618 static struct ksym_desc *get_ksym_desc(struct bpf_gen *gen, struct ksym_relo_desc *relo) in get_ksym_desc()
650 static void emit_bpf_find_by_name_kind(struct bpf_gen *gen, struct ksym_relo_desc *relo) in emit_bpf_find_by_name_kind()
669 static void emit_bpf_kallsyms_lookup_name(struct bpf_gen *gen, struct ksym_relo_desc *relo) in emit_bpf_kallsyms_lookup_name()
698 static void emit_relo_kfunc_btf(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insn) in emit_relo_kfunc_btf()
769 static void emit_ksym_relo_log(struct bpf_gen *gen, struct ksym_relo_desc *relo, in emit_ksym_relo_log()
788 static void emit_relo_ksym_typeless(struct bpf_gen *gen, in emit_relo_ksym_typeless()
821 static __u32 src_reg_mask(struct bpf_gen *gen) in src_reg_mask()
835 static void emit_relo_ksym_btf(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insn) in emit_relo_ksym_btf()
885 void bpf_gen__record_relo_core(struct bpf_gen *gen, in bpf_gen__record_relo_core()
901 static void emit_relo(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insns) in emit_relo()
919 static void emit_relos(struct bpf_gen *gen, int insns) in emit_relos()
927 static void cleanup_core_relo(struct bpf_gen *gen) in cleanup_core_relo()
936 static void cleanup_relos(struct bpf_gen *gen, int insns) in cleanup_relos()
969 static void info_blob_bswap(struct bpf_gen *gen, int func_info, int line_info, in info_blob_bswap()
987 void bpf_gen__prog_load(struct bpf_gen *gen, in bpf_gen__prog_load()
1114 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *pvalue, in bpf_gen__map_update_elem()
1162 void bpf_gen__populate_outer_map(struct bpf_gen *gen, int outer_map_idx, int slot, in bpf_gen__populate_outer_map()
1191 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx) in bpf_gen__map_freeze()