| 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 114 bpf_gen__init(struct bpf_gen * gen,int log_level,int nr_progs,int nr_maps) bpf_gen__init() argument 159 add_data(struct bpf_gen * gen,const void * data,__u32 size) add_data() argument 181 add_map_fd(struct bpf_gen * gen) add_map_fd() argument 191 add_kfunc_btf_fd(struct bpf_gen * gen) add_kfunc_btf_fd() argument 214 emit_rel_store(struct bpf_gen * gen,int off,int data) emit_rel_store() argument 223 move_blob2blob(struct bpf_gen * gen,int off,int size,int blob_off) move_blob2blob() argument 233 move_blob2ctx(struct bpf_gen * gen,int ctx_off,int size,int blob_off) move_blob2ctx() argument 241 move_ctx2blob(struct bpf_gen * gen,int off,int size,int ctx_off,bool check_non_zero) move_ctx2blob() argument 255 move_stack2blob(struct bpf_gen * gen,int off,int size,int stack_off) move_stack2blob() argument 263 move_stack2ctx(struct bpf_gen * gen,int ctx_off,int size,int stack_off) move_stack2ctx() argument 269 emit_sys_bpf(struct bpf_gen * gen,int cmd,int attr,int attr_size) emit_sys_bpf() argument 285 emit_check_err(struct bpf_gen * gen) emit_check_err() argument 301 emit_debug(struct bpf_gen * gen,int reg1,int reg2,const char * fmt,va_list args) emit_debug() argument 329 debug_regs(struct bpf_gen * gen,int reg1,int reg2,const char * fmt,...) debug_regs() argument 338 debug_ret(struct bpf_gen * gen,const char * fmt,...) debug_ret() argument 347 __emit_sys_close(struct bpf_gen * gen) __emit_sys_close() argument 359 emit_sys_close_stack(struct bpf_gen * gen,int stack_off) emit_sys_close_stack() argument 365 emit_sys_close_blob(struct bpf_gen * gen,int blob_off) emit_sys_close_blob() argument 375 bpf_gen__finish(struct bpf_gen * gen,int nr_progs,int nr_maps) bpf_gen__finish() argument 425 bpf_gen__free(struct bpf_gen * gen) bpf_gen__free() argument 456 compute_sha_update_offsets(struct bpf_gen * gen) compute_sha_update_offsets() argument 472 bpf_gen__load_btf(struct bpf_gen * gen,const void * btf_raw_data,__u32 btf_raw_size) bpf_gen__load_btf() argument 504 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 583 emit_signature_match(struct bpf_gen * gen) emit_signature_match() argument 605 bpf_gen__record_attach_target(struct bpf_gen * gen,const char * attach_name,enum bpf_attach_type type) bpf_gen__record_attach_target() argument 619 emit_find_attach_target(struct bpf_gen * gen) emit_find_attach_target() argument 641 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 663 get_ksym_desc(struct bpf_gen * gen,struct ksym_relo_desc * relo) get_ksym_desc() argument 695 emit_bpf_find_by_name_kind(struct bpf_gen * gen,struct ksym_relo_desc * relo) emit_bpf_find_by_name_kind() argument 714 emit_bpf_kallsyms_lookup_name(struct bpf_gen * gen,struct ksym_relo_desc * relo) emit_bpf_kallsyms_lookup_name() argument 743 emit_relo_kfunc_btf(struct bpf_gen * gen,struct ksym_relo_desc * relo,int insn) emit_relo_kfunc_btf() argument 814 emit_ksym_relo_log(struct bpf_gen * gen,struct ksym_relo_desc * relo,int ref) emit_ksym_relo_log() argument 833 emit_relo_ksym_typeless(struct bpf_gen * gen,struct ksym_relo_desc * relo,int insn) emit_relo_ksym_typeless() argument 866 src_reg_mask(struct bpf_gen * gen) src_reg_mask() argument 880 emit_relo_ksym_btf(struct bpf_gen * gen,struct ksym_relo_desc * relo,int insn) emit_relo_ksym_btf() argument 930 bpf_gen__record_relo_core(struct bpf_gen * gen,const struct bpf_core_relo * core_relo) bpf_gen__record_relo_core() argument 946 emit_relo(struct bpf_gen * gen,struct ksym_relo_desc * relo,int insns) emit_relo() argument 964 emit_relos(struct bpf_gen * gen,int insns) emit_relos() argument 972 cleanup_core_relo(struct bpf_gen * gen) cleanup_core_relo() argument 981 cleanup_relos(struct bpf_gen * gen,int insns) cleanup_relos() argument 1014 info_blob_bswap(struct bpf_gen * gen,int func_info,int line_info,int core_relos,struct bpf_prog_load_opts * load_attr) info_blob_bswap() argument 1032 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 1159 bpf_gen__map_update_elem(struct bpf_gen * gen,int map_idx,void * pvalue,__u32 value_size) bpf_gen__map_update_elem() argument 1207 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 1236 bpf_gen__map_freeze(struct bpf_gen * gen,int map_idx) bpf_gen__map_freeze() argument [all...] |