Lines Matching refs:bpf_gen
42 static int realloc_insn_buf(struct bpf_gen *gen, __u32 size) in realloc_insn_buf()
65 static int realloc_data_buf(struct bpf_gen *gen, __u32 size) in realloc_data_buf()
88 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit()
96 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2()
102 void bpf_gen__init(struct bpf_gen *gen, int log_level) in bpf_gen__init()
136 static int add_data(struct bpf_gen *gen, const void *data, __u32 size) in add_data()
160 static void emit_rel_store(struct bpf_gen *gen, int off, int data) in emit_rel_store()
170 static void emit_rel_store_sp(struct bpf_gen *gen, int off, int stack_off) in emit_rel_store_sp()
179 static void move_ctx2blob(struct bpf_gen *gen, int off, int size, int ctx_off, in move_ctx2blob()
193 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob()
201 static void move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) in move_stack2ctx()
207 static void emit_sys_bpf(struct bpf_gen *gen, int cmd, int attr, int attr_size) in emit_sys_bpf()
223 static void emit_check_err(struct bpf_gen *gen) in emit_check_err()
239 static void emit_debug(struct bpf_gen *gen, int reg1, int reg2, in emit_debug()
267 static void debug_regs(struct bpf_gen *gen, int reg1, int reg2, const char *fmt, ...) in debug_regs()
276 static void debug_ret(struct bpf_gen *gen, const char *fmt, ...) in debug_ret()
285 static void __emit_sys_close(struct bpf_gen *gen) in __emit_sys_close()
297 static void emit_sys_close_stack(struct bpf_gen *gen, int stack_off) in emit_sys_close_stack()
303 static void emit_sys_close_blob(struct bpf_gen *gen, int blob_off) in emit_sys_close_blob()
311 int bpf_gen__finish(struct bpf_gen *gen) in bpf_gen__finish()
343 void bpf_gen__free(struct bpf_gen *gen) in bpf_gen__free()
352 void bpf_gen__load_btf(struct bpf_gen *gen, const void *btf_raw_data, in bpf_gen__load_btf()
383 void bpf_gen__map_create(struct bpf_gen *gen, in bpf_gen__map_create()
473 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *attach_name, in bpf_gen__record_attach_target()
487 static void emit_find_attach_target(struct bpf_gen *gen) in emit_find_attach_target()
509 void bpf_gen__record_extern(struct bpf_gen *gen, const char *name, int kind, in bpf_gen__record_extern()
527 static void emit_relo(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insns) in emit_relo()
557 static void emit_relos(struct bpf_gen *gen, int insns) in emit_relos()
565 static void cleanup_relos(struct bpf_gen *gen, int insns) in cleanup_relos()
585 void bpf_gen__prog_load(struct bpf_gen *gen, in bpf_gen__prog_load()
676 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *pvalue, in bpf_gen__map_update_elem()
714 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx) in bpf_gen__map_freeze()