Lines Matching refs:bpf_gen
45 static int blob_fd_array_off(struct bpf_gen *gen, int index) in blob_fd_array_off()
50 static int realloc_insn_buf(struct bpf_gen *gen, __u32 size) in realloc_insn_buf()
73 static int realloc_data_buf(struct bpf_gen *gen, __u32 size) in realloc_data_buf()
96 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit()
104 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2()
110 static int add_data(struct bpf_gen *gen, const void *data, __u32 size);
111 static void emit_sys_close_blob(struct bpf_gen *gen, int blob_off);
113 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps) in bpf_gen__init()
156 static int add_data(struct bpf_gen *gen, const void *data, __u32 size) in add_data()
178 static int add_map_fd(struct bpf_gen *gen) in add_map_fd()
188 static int add_kfunc_btf_fd(struct bpf_gen *gen) in add_kfunc_btf_fd()
211 static void emit_rel_store(struct bpf_gen *gen, int off, int data) in emit_rel_store()
220 static void move_blob2blob(struct bpf_gen *gen, int off, int size, int blob_off) in move_blob2blob()
230 static void move_blob2ctx(struct bpf_gen *gen, int ctx_off, int size, int blob_off) in move_blob2ctx()
238 static void move_ctx2blob(struct bpf_gen *gen, int off, int size, int ctx_off, in move_ctx2blob()
252 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob()
260 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx()
266 static void emit_sys_bpf(struct bpf_gen *gen, int cmd, int attr, int attr_size) in emit_sys_bpf()
282 static void emit_check_err(struct bpf_gen *gen) in emit_check_err()
298 static void emit_debug(struct bpf_gen *gen, int reg1, int reg2, in emit_debug()
326 static void debug_regs(struct bpf_gen *gen, int reg1, int reg2, const char *fmt, ...) in debug_regs()
335 static void debug_ret(struct bpf_gen *gen, const char *fmt, ...) in debug_ret()
344 static void __emit_sys_close(struct bpf_gen *gen) in __emit_sys_close()
356 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack()
362 static void emit_sys_close_blob(struct bpf_gen *gen, int blob_off) in emit_sys_close_blob()
370 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps) in bpf_gen__finish()
407 void bpf_gen__free(struct bpf_gen *gen) in bpf_gen__free()
416 void bpf_gen__load_btf(struct bpf_gen *gen, const void *btf_raw_data, in bpf_gen__load_btf()
447 void bpf_gen__map_create(struct bpf_gen *gen, in bpf_gen__map_create()
540 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *attach_name, in bpf_gen__record_attach_target()
554 static void emit_find_attach_target(struct bpf_gen *gen) in emit_find_attach_target()
576 void bpf_gen__record_extern(struct bpf_gen *gen, const char *name, bool is_weak, in bpf_gen__record_extern()
597 static struct ksym_desc *get_ksym_desc(struct bpf_gen *gen, struct ksym_relo_desc *relo) in get_ksym_desc()
625 static void emit_bpf_find_by_name_kind(struct bpf_gen *gen, struct ksym_relo_desc *relo) in emit_bpf_find_by_name_kind()
644 static void emit_bpf_kallsyms_lookup_name(struct bpf_gen *gen, struct ksym_relo_desc *relo) in emit_bpf_kallsyms_lookup_name()
673 static void emit_relo_kfunc_btf(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insn) in emit_relo_kfunc_btf()
742 static void emit_ksym_relo_log(struct bpf_gen *gen, struct ksym_relo_desc *relo, in emit_ksym_relo_log()
761 static void emit_relo_ksym_typeless(struct bpf_gen *gen, in emit_relo_ksym_typeless()
808 static void emit_relo_ksym_btf(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insn) in emit_relo_ksym_btf()
854 static void emit_relo(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insns) in emit_relo()
878 static void emit_relos(struct bpf_gen *gen, int insns) in emit_relos()
886 static void cleanup_relos(struct bpf_gen *gen, int insns) in cleanup_relos()
915 void bpf_gen__prog_load(struct bpf_gen *gen, in bpf_gen__prog_load()
1005 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *pvalue, in bpf_gen__map_update_elem()
1043 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx) in bpf_gen__map_freeze()