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