| H A D | libbpf.c | 767 struct bpf_program *prog; member 790 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload() argument 802 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit() argument 839 bpf_object__init_prog(struct bpf_object * obj,struct bpf_program * prog,const char * name,size_t sec_idx,const char * sec_name,size_t sec_off,void * insn_data,size_t insn_data_sz) bpf_object__init_prog() argument 904 struct bpf_program *prog, *progs; bpf_object__add_programs() local 988 struct bpf_program *prog = obj->programs; bpf_object_bswap_progs() local 1107 is_valid_st_ops_program(struct bpf_object * obj,const struct bpf_program * prog) is_valid_st_ops_program() argument 1126 struct bpf_program *prog, *slot_prog; bpf_object_adjust_struct_ops_autoload() local 1211 struct bpf_program *prog; bpf_map__init_kern_struct_ops() local 3474 prog_needs_vmlinux_btf(struct bpf_program * prog) prog_needs_vmlinux_btf() argument 3496 struct bpf_program *prog; obj_needs_vmlinux_btf() local 3578 struct bpf_program *prog = &obj->programs[i]; bpf_object__sanitize_and_load_btf() local 4469 prog_is_subprog(const struct bpf_object * obj,const struct bpf_program * prog) prog_is_subprog() argument 4478 struct bpf_program *prog; bpf_object__find_program_by_name() local 4526 bpf_prog_compute_hash(struct bpf_program * prog) bpf_prog_compute_hash() argument 4564 bpf_program__record_reloc(struct bpf_program * prog,struct reloc_desc * reloc_desc,__u32 insn_idx,const char * sym_name,const Elf64_Sym * sym,const Elf64_Rel * rel) bpf_program__record_reloc() argument 4746 prog_contains_insn(const struct bpf_program * prog,size_t insn_idx) prog_contains_insn() argument 4756 struct bpf_program *prog; find_prog_by_sec_insn() local 4785 struct bpf_program *prog; bpf_object__collect_prog_relos() local 5949 record_relo_core(struct bpf_program * prog,const struct bpf_core_relo * core_relo,int insn_idx) record_relo_core() argument 5967 find_relo_core(struct bpf_program * prog,int insn_idx) find_relo_core() argument 5983 bpf_core_resolve_relo(struct bpf_program * prog,const struct bpf_core_relo * relo,int relo_idx,const struct btf * local_btf,struct hashmap * cand_cache,struct bpf_core_relo_res * targ_res) bpf_core_resolve_relo() argument 6035 struct bpf_program *prog; bpf_object__relocate_core() local 6149 poison_map_ldimm64(struct bpf_program * prog,int relo_idx,int insn_idx,struct bpf_insn * insn,int map_idx,const struct bpf_map * map) poison_map_ldimm64() argument 6179 poison_kfunc_call(struct bpf_program * prog,int relo_idx,int insn_idx,struct bpf_insn * insn,int ext_idx,const struct extern_desc * ext) poison_kfunc_call() argument 6199 find_jt_map(struct bpf_object * obj,struct bpf_program * prog,unsigned int sym_off) find_jt_map() argument 6217 add_jt_map(struct bpf_object * obj,struct bpf_program * prog,unsigned int sym_off,int map_fd) add_jt_map() argument 6236 find_subprog_idx(struct bpf_program * prog,int insn_idx) find_subprog_idx() argument 6248 create_jt_map(struct bpf_object * obj,struct bpf_program * prog,struct reloc_desc * relo) create_jt_map() argument 6356 bpf_object__relocate_data(struct bpf_object * obj,struct bpf_program * prog) bpf_object__relocate_data() argument 6470 adjust_prog_btf_ext_info(const struct bpf_object * obj,const struct bpf_program * prog,const struct btf_ext_info * ext_info,void ** prog_info,__u32 * prog_rec_cnt,__u32 * prog_rec_sz) adjust_prog_btf_ext_info() argument 6540 reloc_prog_func_and_line_info(const struct bpf_object * obj,struct bpf_program * main_prog,const struct bpf_program * prog) reloc_prog_func_and_line_info() argument 6619 find_prog_insn_relo(const struct bpf_program * prog,size_t insn_idx) find_prog_insn_relo() argument 6716 bpf_object__reloc_code(struct bpf_object * obj,struct bpf_program * main_prog,struct bpf_program * prog) bpf_object__reloc_code() argument 6905 bpf_object__relocate_calls(struct bpf_object * obj,struct bpf_program * prog) bpf_object__relocate_calls() argument 6931 struct bpf_program *prog; bpf_object__free_relocs() local 6971 bpf_prog_assign_exc_cb(struct bpf_object * obj,struct bpf_program * prog) bpf_prog_assign_exc_cb() argument 7093 need_func_arg_type_fixup(const struct btf * btf,const struct bpf_program * prog,const char * subprog_name,int arg_idx,int arg_type_id,const char * ctx_name) need_func_arg_type_fixup() argument 7164 clone_func_btf_info(struct btf * btf,int orig_fn_id,struct bpf_program * prog) clone_func_btf_info() argument 7233 bpf_program_fixup_func_info(struct bpf_object * obj,struct bpf_program * prog) bpf_program_fixup_func_info() argument 7374 struct bpf_program *prog; bpf_object__relocate() local 7677 bpf_object__sanitize_prog(struct bpf_object * obj,struct bpf_program * prog) bpf_object__sanitize_prog() argument 7716 libbpf_prepare_prog_load(struct bpf_program * prog,struct bpf_prog_load_opts * opts,long cookie) libbpf_prepare_prog_load() argument 7783 bpf_object_load_prog(struct bpf_object * obj,struct bpf_program * prog,struct bpf_insn * insns,int insns_cnt,const char * license,__u32 kern_version,int * prog_fd) bpf_object_load_prog() argument 8013 fixup_log_failed_core_relo(struct bpf_program * prog,char * buf,size_t buf_sz,size_t log_sz,char * line1,char * line2,char * line3) fixup_log_failed_core_relo() argument 8052 fixup_log_missing_map_load(struct bpf_program * prog,char * buf,size_t buf_sz,size_t log_sz,char * line1,char * line2,char * line3) fixup_log_missing_map_load() argument 8085 fixup_log_missing_kfunc_call(struct bpf_program * prog,char * buf,size_t buf_sz,size_t log_sz,char * line1,char * line2,char * line3) fixup_log_missing_kfunc_call() argument 8118 fixup_verifier_log(struct bpf_program * prog,char * buf,size_t buf_sz) fixup_verifier_log() argument 8168 bpf_program_record_relos(struct bpf_program * prog) bpf_program_record_relos() argument 8214 struct bpf_program *prog; bpf_object__load_progs() local 8245 struct bpf_program *prog; bpf_object_prepare_progs() local 8262 struct bpf_program *prog; bpf_object_init_progs() local 8841 struct bpf_program *prog = st_ops->progs[i]; bpf_map_prepare_vdata() local 9047 bpf_program__pin(struct bpf_program * prog,const char * path) bpf_program__pin() argument 9074 bpf_program__unpin(struct bpf_program * prog,const char * path) bpf_program__unpin() argument 9313 struct bpf_program *prog; bpf_object__pin_programs() local 9350 struct bpf_program *prog; bpf_object__unpin_programs() local 9577 struct bpf_program *prog = prev; bpf_object__next_program() local 9589 struct bpf_program *prog = next; bpf_object__prev_program() local 9598 bpf_program__set_ifindex(struct bpf_program * prog,__u32 ifindex) bpf_program__set_ifindex() argument 9603 bpf_program__name(const struct bpf_program * prog) bpf_program__name() argument 9608 bpf_program__section_name(const struct bpf_program * prog) bpf_program__section_name() argument 9613 bpf_program__autoload(const struct bpf_program * prog) bpf_program__autoload() argument 9618 bpf_program__set_autoload(struct bpf_program * prog,bool autoload) bpf_program__set_autoload() argument 9627 bpf_program__autoattach(const struct bpf_program * prog) bpf_program__autoattach() argument 9632 bpf_program__set_autoattach(struct bpf_program * prog,bool autoattach) bpf_program__set_autoattach() argument 9637 bpf_program__insns(const struct bpf_program * prog) bpf_program__insns() argument 9642 bpf_program__insn_cnt(const struct bpf_program * prog) bpf_program__insn_cnt() argument 9647 bpf_program__set_insns(struct bpf_program * prog,struct bpf_insn * new_insns,size_t new_insn_cnt) bpf_program__set_insns() argument 9668 bpf_program__fd(const struct bpf_program * prog) bpf_program__fd() argument 9682 bpf_program__type(const struct bpf_program * prog) bpf_program__type() argument 9693 bpf_program__set_type(struct bpf_program * prog,enum bpf_prog_type type) bpf_program__set_type() argument 9718 bpf_program__expected_attach_type(const struct bpf_program * prog) bpf_program__expected_attach_type() argument 9723 bpf_program__set_expected_attach_type(struct bpf_program * prog,enum bpf_attach_type type) bpf_program__set_expected_attach_type() argument 9733 bpf_program__flags(const struct bpf_program * prog) bpf_program__flags() argument 9738 bpf_program__set_flags(struct bpf_program * prog,__u32 flags) bpf_program__set_flags() argument 9747 bpf_program__log_level(const struct bpf_program * prog) bpf_program__log_level() argument 9752 bpf_program__set_log_level(struct bpf_program * prog,__u32 log_level) bpf_program__set_log_level() argument 9761 bpf_program__log_buf(const struct bpf_program * prog,size_t * log_size) bpf_program__log_buf() argument 9767 bpf_program__set_log_buf(struct bpf_program * prog,char * log_buf,size_t log_size) bpf_program__set_log_buf() argument 9781 bpf_program__func_info(const struct bpf_program * prog) bpf_program__func_info() argument 9788 bpf_program__func_info_cnt(const struct bpf_program * prog) bpf_program__func_info_cnt() argument 9793 bpf_program__line_info(const struct bpf_program * prog) bpf_program__line_info() argument 9800 bpf_program__line_info_cnt(const struct bpf_program * prog) bpf_program__line_info_cnt() argument 10199 struct bpf_program *prog; bpf_object__collect_st_ops_relos() local 10466 libbpf_find_attach_btf_id(struct bpf_program * prog,const char * attach_name,int * btf_obj_fd,int * btf_type_id) libbpf_find_attach_btf_id() argument 10834 bpf_map__set_exclusive_program(struct bpf_map * map,struct bpf_program * prog) bpf_map__set_exclusive_program() argument 11073 bpf_link__update_program(struct bpf_link * link,struct bpf_program * prog) bpf_link__update_program() argument 11260 bpf_program__attach_perf_event_opts(const struct bpf_program * prog,int pfd,const struct bpf_perf_event_opts * opts) bpf_program__attach_perf_event_opts() argument 11338 bpf_program__attach_perf_event(const struct bpf_program * prog,int pfd) bpf_program__attach_perf_event() argument 11655 bpf_program__attach_kprobe_opts(const struct bpf_program * prog,const char * func_name,const struct bpf_kprobe_opts * opts) bpf_program__attach_kprobe_opts() argument 11749 bpf_program__attach_kprobe(const struct bpf_program * prog,bool retprobe,const char * func_name) bpf_program__attach_kprobe() argument 11760 bpf_program__attach_ksyscall(const struct bpf_program * prog,const char * syscall_name,const struct bpf_ksyscall_opts * opts) bpf_program__attach_ksyscall() argument 12000 bpf_program__attach_kprobe_multi_opts(const struct bpf_program * prog,const char * pattern,const struct bpf_kprobe_multi_opts * opts) bpf_program__attach_kprobe_multi_opts() argument 12101 attach_kprobe(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe() argument 12138 attach_ksyscall(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_ksyscall() argument 12159 attach_kprobe_multi(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe_multi() argument 12190 attach_kprobe_session(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe_session() argument 12216 attach_uprobe_multi(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_uprobe_multi() argument 12458 bpf_program__attach_uprobe_multi(const struct bpf_program * prog,pid_t pid,const char * path,const char * func_pattern,const struct bpf_uprobe_multi_opts * opts) bpf_program__attach_uprobe_multi() argument 12586 bpf_program__attach_uprobe_opts(const struct bpf_program * prog,pid_t pid,const char * binary_path,size_t func_offset,const struct bpf_uprobe_opts * opts) bpf_program__attach_uprobe_opts() argument 12732 attach_uprobe(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_uprobe() argument 12787 bpf_program__attach_uprobe(const struct bpf_program * prog,bool retprobe,pid_t pid,const char * binary_path,size_t func_offset) bpf_program__attach_uprobe() argument 12797 bpf_program__attach_usdt(const struct bpf_program * prog,pid_t pid,const char * binary_path,const char * usdt_provider,const char * usdt_name,const struct bpf_usdt_opts * opts) bpf_program__attach_usdt() argument 12850 attach_usdt(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_usdt() argument 12929 bpf_program__attach_tracepoint_opts(const struct bpf_program * prog,const char * tp_category,const char * tp_name,const struct bpf_tracepoint_opts * opts) bpf_program__attach_tracepoint_opts() argument 12962 bpf_program__attach_tracepoint(const struct bpf_program * prog,const char * tp_category,const char * tp_name) bpf_program__attach_tracepoint() argument 12969 attach_tp(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_tp() argument 13002 bpf_program__attach_raw_tracepoint_opts(const struct bpf_program * prog,const char * tp_name,struct bpf_raw_tracepoint_opts * opts) bpf_program__attach_raw_tracepoint_opts() argument 13038 bpf_program__attach_raw_tracepoint(const struct bpf_program * prog,const char * tp_name) bpf_program__attach_raw_tracepoint() argument 13044 attach_raw_tp(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_raw_tp() argument 13086 bpf_program__attach_btf_id(const struct bpf_program * prog,const struct bpf_trace_opts * opts) bpf_program__attach_btf_id() argument 13121 bpf_program__attach_trace(const struct bpf_program * prog) bpf_program__attach_trace() argument 13126 bpf_program__attach_trace_opts(const struct bpf_program * prog,const struct bpf_trace_opts * opts) bpf_program__attach_trace_opts() argument 13132 bpf_program__attach_lsm(const struct bpf_program * prog) bpf_program__attach_lsm() argument 13137 attach_trace(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_trace() argument 13143 attach_lsm(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_lsm() argument 13150 bpf_program_attach_fd(const struct bpf_program * prog,int target_fd,const char * target_name,const struct bpf_link_create_opts * opts) bpf_program_attach_fd() argument 13184 bpf_program__attach_cgroup(const struct bpf_program * prog,int cgroup_fd) bpf_program__attach_cgroup() argument 13190 bpf_program__attach_netns(const struct bpf_program * prog,int netns_fd) bpf_program__attach_netns() argument 13196 bpf_program__attach_sockmap(const struct bpf_program * prog,int map_fd) bpf_program__attach_sockmap() argument 13201 bpf_program__attach_xdp(const struct bpf_program * prog,int ifindex) bpf_program__attach_xdp() argument 13208 bpf_program__attach_cgroup_opts(const struct bpf_program * prog,int cgroup_fd,const struct bpf_cgroup_opts * opts) bpf_program__attach_cgroup_opts() argument 13236 bpf_program__attach_tcx(const struct bpf_program * prog,int ifindex,const struct bpf_tcx_opts * opts) bpf_program__attach_tcx() argument 13271 bpf_program__attach_netkit(const struct bpf_program * prog,int ifindex,const struct bpf_netkit_opts * opts) bpf_program__attach_netkit() argument 13304 bpf_program__attach_freplace(const struct bpf_program * prog,int target_fd,const char * attach_func_name) bpf_program__attach_freplace() argument 13342 bpf_program__attach_iter(const struct bpf_program * prog,const struct bpf_iter_attach_opts * opts) bpf_program__attach_iter() argument 13380 attach_iter(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_iter() argument 13386 bpf_program__attach_netfilter(const struct bpf_program * prog,const struct bpf_netfilter_opts * opts) bpf_program__attach_netfilter() argument 13426 bpf_program__attach(const struct bpf_program * prog) bpf_program__attach() argument 14123 bpf_program__set_attach_target(struct bpf_program * prog,int attach_prog_fd,const char * attach_func_name) bpf_program__set_attach_target() argument 14169 bpf_program__assoc_struct_ops(struct bpf_program * prog,struct bpf_map * map,struct bpf_prog_assoc_struct_ops_opts * opts) bpf_program__assoc_struct_ops() argument 14336 struct bpf_program **prog = prog_skel->prog; populate_skeleton_progs() local 14480 struct bpf_program *prog = *prog_skel->prog; bpf_object__attach_skeleton() local [all...] |