Lines Matching refs:bpf_gen

45 static int blob_fd_array_off(struct bpf_gen *gen, int index)
50 static int realloc_insn_buf(struct bpf_gen *gen, __u32 size)
73 static int realloc_data_buf(struct bpf_gen *gen, __u32 size)
96 static void emit(struct bpf_gen *gen, struct bpf_insn insn)
104 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2)
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)
156 static int add_data(struct bpf_gen *gen, const void *data, __u32 size)
178 static int add_map_fd(struct bpf_gen *gen)
188 static int add_kfunc_btf_fd(struct bpf_gen *gen)
211 static void emit_rel_store(struct bpf_gen *gen, int off, int data)
220 static void move_blob2blob(struct bpf_gen *gen, int off, int size, int blob_off)
230 static void move_blob2ctx(struct bpf_gen *gen, int ctx_off, int size, int blob_off)
238 static void move_ctx2blob(struct bpf_gen *gen, int off, int size, int ctx_off,
252 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off)
260 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off)
266 static void emit_sys_bpf(struct bpf_gen *gen, int cmd, int attr, int attr_size)
282 static void emit_check_err(struct bpf_gen *gen)
298 static void emit_debug(struct bpf_gen *gen, int reg1, int reg2,
326 static void debug_regs(struct bpf_gen *gen, int reg1, int reg2, const char *fmt, ...)
335 static void debug_ret(struct bpf_gen *gen, const char *fmt, ...)
344 static void __emit_sys_close(struct bpf_gen *gen)
356 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off)
362 static void emit_sys_close_blob(struct bpf_gen *gen, int blob_off)
370 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps)
408 void bpf_gen__free(struct bpf_gen *gen)
417 void bpf_gen__load_btf(struct bpf_gen *gen, const void *btf_raw_data,
448 void bpf_gen__map_create(struct bpf_gen *gen,
526 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *attach_name,
540 static void emit_find_attach_target(struct bpf_gen *gen)
562 void bpf_gen__record_extern(struct bpf_gen *gen, const char *name, bool is_weak,
584 static struct ksym_desc *get_ksym_desc(struct bpf_gen *gen, struct ksym_relo_desc *relo)
616 static void emit_bpf_find_by_name_kind(struct bpf_gen *gen, struct ksym_relo_desc *relo)
635 static void emit_bpf_kallsyms_lookup_name(struct bpf_gen *gen, struct ksym_relo_desc *relo)
664 static void emit_relo_kfunc_btf(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insn)
735 static void emit_ksym_relo_log(struct bpf_gen *gen, struct ksym_relo_desc *relo,
754 static void emit_relo_ksym_typeless(struct bpf_gen *gen,
801 static void emit_relo_ksym_btf(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insn)
851 void bpf_gen__record_relo_core(struct bpf_gen *gen,
867 static void emit_relo(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insns)
885 static void emit_relos(struct bpf_gen *gen, int insns)
893 static void cleanup_core_relo(struct bpf_gen *gen)
902 static void cleanup_relos(struct bpf_gen *gen, int insns)
934 void bpf_gen__prog_load(struct bpf_gen *gen,
1034 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *pvalue,
1081 void bpf_gen__populate_outer_map(struct bpf_gen *gen, int outer_map_idx, int slot,
1108 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx)