H A D | gen_loader.c | 45 static int blob_fd_array_off(struct bpf_gen *gen, int index) argument 47 return gen->fd_array + index * sizeof(int); 50 static int realloc_insn_buf(struct bpf_gen *gen, __u32 size) argument 52 size_t off = gen->insn_cur - gen->insn_start; 55 if (gen->error) 56 return gen->error; 58 gen->error = -ERANGE; 61 insn_start = realloc(gen->insn_start, off + size); 63 gen 73 realloc_data_buf(struct bpf_gen *gen, __u32 size) argument 96 emit(struct bpf_gen *gen, struct bpf_insn insn) argument 104 emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) argument 113 bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps) argument 156 add_data(struct bpf_gen *gen, const void *data, __u32 size) argument 178 add_map_fd(struct bpf_gen *gen) argument 188 add_kfunc_btf_fd(struct bpf_gen *gen) argument 211 emit_rel_store(struct bpf_gen *gen, int off, int data) argument 220 move_blob2blob(struct bpf_gen *gen, int off, int size, int blob_off) argument 230 move_blob2ctx(struct bpf_gen *gen, int ctx_off, int size, int blob_off) argument 238 move_ctx2blob(struct bpf_gen *gen, int off, int size, int ctx_off, bool check_non_zero) argument 252 move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) argument 260 move_stack2ctx(struct bpf_gen *gen, int ctx_off, int size, int stack_off) argument 266 emit_sys_bpf(struct bpf_gen *gen, int cmd, int attr, int attr_size) argument 282 emit_check_err(struct bpf_gen *gen) argument 298 emit_debug(struct bpf_gen *gen, int reg1, int reg2, const char *fmt, va_list args) argument 326 debug_regs(struct bpf_gen *gen, int reg1, int reg2, const char *fmt, ...) argument 335 debug_ret(struct bpf_gen *gen, const char *fmt, ...) argument 344 __emit_sys_close(struct bpf_gen *gen) argument 356 emit_sys_close_stack(struct bpf_gen *gen, int stack_off) argument 362 emit_sys_close_blob(struct bpf_gen *gen, int blob_off) argument 370 bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps) argument 408 bpf_gen__free(struct bpf_gen *gen) argument 417 bpf_gen__load_btf(struct bpf_gen *gen, const void *btf_raw_data, __u32 btf_raw_size) argument 448 bpf_gen__map_create(struct bpf_gen *gen, enum bpf_map_type map_type, const char *map_name, __u32 key_size, __u32 value_size, __u32 max_entries, struct bpf_map_create_opts *map_attr, int map_idx) argument 526 bpf_gen__record_attach_target(struct bpf_gen *gen, const char *attach_name, enum bpf_attach_type type) argument 540 emit_find_attach_target(struct bpf_gen *gen) argument 562 bpf_gen__record_extern(struct bpf_gen *gen, const char *name, bool is_weak, bool is_typeless, bool is_ld64, int kind, int insn_idx) argument 584 get_ksym_desc(struct bpf_gen *gen, struct ksym_relo_desc *relo) argument 616 emit_bpf_find_by_name_kind(struct bpf_gen *gen, struct ksym_relo_desc *relo) argument 635 emit_bpf_kallsyms_lookup_name(struct bpf_gen *gen, struct ksym_relo_desc *relo) argument 664 emit_relo_kfunc_btf(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insn) argument 735 emit_ksym_relo_log(struct bpf_gen *gen, struct ksym_relo_desc *relo, int ref) argument 754 emit_relo_ksym_typeless(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insn) argument 801 emit_relo_ksym_btf(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insn) argument 851 bpf_gen__record_relo_core(struct bpf_gen *gen, const struct bpf_core_relo *core_relo) argument 867 emit_relo(struct bpf_gen *gen, struct ksym_relo_desc *relo, int insns) argument 885 emit_relos(struct bpf_gen *gen, int insns) argument 893 cleanup_core_relo(struct bpf_gen *gen) argument 902 cleanup_relos(struct bpf_gen *gen, int insns) argument 934 bpf_gen__prog_load(struct bpf_gen *gen, enum bpf_prog_type prog_type, const char *prog_name, const char *license, struct bpf_insn *insns, size_t insn_cnt, struct bpf_prog_load_opts *load_attr, int prog_idx) argument 1034 bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *pvalue, __u32 value_size) argument 1081 bpf_gen__populate_outer_map(struct bpf_gen *gen, int outer_map_idx, int slot, int inner_map_idx) argument 1108 bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx) argument [all...] |