Lines Matching defs:prog
709 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
720 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
757 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
822 struct bpf_program *prog, *progs; in bpf_object__add_programs() local
1082 struct bpf_program *prog; in bpf_map__init_kern_struct_ops() local
3068 static bool prog_needs_vmlinux_btf(struct bpf_program *prog) in prog_needs_vmlinux_btf()
3090 struct bpf_program *prog; in obj_needs_vmlinux_btf() local
3172 struct bpf_program *prog = &obj->programs[i]; in bpf_object__sanitize_and_load_btf() local
4040 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog) in prog_is_subprog()
4049 struct bpf_program *prog; in bpf_object__find_program_by_name() local
4097 static int bpf_program__record_reloc(struct bpf_program *prog, in bpf_program__record_reloc()
4250 static bool prog_contains_insn(const struct bpf_program *prog, size_t insn_idx) in prog_contains_insn()
4260 struct bpf_program *prog; in find_prog_by_sec_insn() local
4289 struct bpf_program *prog; in bpf_object__collect_prog_relos() local
4802 int ret, map, prog, insn_cnt = ARRAY_SIZE(insns); in probe_prog_bind_map() local
5757 static int record_relo_core(struct bpf_program *prog, in record_relo_core()
5775 static const struct bpf_core_relo *find_relo_core(struct bpf_program *prog, int insn_idx) in find_relo_core()
5791 static int bpf_core_resolve_relo(struct bpf_program *prog, in bpf_core_resolve_relo()
5843 struct bpf_program *prog; in bpf_object__relocate_core() local
5957 static void poison_map_ldimm64(struct bpf_program *prog, int relo_idx, in poison_map_ldimm64()
5987 static void poison_kfunc_call(struct bpf_program *prog, int relo_idx, in poison_kfunc_call()
6013 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_data()
6109 const struct bpf_program *prog, in adjust_prog_btf_ext_info()
6179 const struct bpf_program *prog) in reloc_prog_func_and_line_info()
6258 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx) in find_prog_insn_relo()
6329 struct bpf_program *prog) in bpf_object__reloc_code()
6518 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__relocate_calls()
6544 struct bpf_program *prog; in bpf_object__free_relocs() local
6584 static int bpf_prog_assign_exc_cb(struct bpf_object *obj, struct bpf_program *prog) in bpf_prog_assign_exc_cb()
6698 static bool need_func_arg_type_fixup(const struct btf *btf, const struct bpf_program *prog, in need_func_arg_type_fixup()
6759 static int clone_func_btf_info(struct btf *btf, int orig_fn_id, struct bpf_program *prog) in clone_func_btf_info()
6891 static int bpf_program_fixup_func_info(struct bpf_object *obj, struct bpf_program *prog) in bpf_program_fixup_func_info()
7032 struct bpf_program *prog; in bpf_object__relocate() local
7327 static int bpf_object__sanitize_prog(struct bpf_object *obj, struct bpf_program *prog) in bpf_object__sanitize_prog()
7366 static int libbpf_prepare_prog_load(struct bpf_program *prog, in libbpf_prepare_prog_load()
7427 static int bpf_object_load_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object_load_prog()
7646 static void fixup_log_failed_core_relo(struct bpf_program *prog, in fixup_log_failed_core_relo()
7685 static void fixup_log_missing_map_load(struct bpf_program *prog, in fixup_log_missing_map_load()
7718 static void fixup_log_missing_kfunc_call(struct bpf_program *prog, in fixup_log_missing_kfunc_call()
7751 static void fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz) in fixup_verifier_log()
7801 static int bpf_program_record_relos(struct bpf_program *prog) in bpf_program_record_relos()
7847 struct bpf_program *prog; in bpf_object__load_progs() local
7887 struct bpf_program *prog; in bpf_object_init_progs() local
8437 struct bpf_program *prog = st_ops->progs[i]; in bpf_map_prepare_vdata() local
8585 int bpf_program__pin(struct bpf_program *prog, const char *path) in bpf_program__pin()
8614 int bpf_program__unpin(struct bpf_program *prog, const char *path) in bpf_program__unpin()
8850 struct bpf_program *prog; in bpf_object__pin_programs() local
8887 struct bpf_program *prog; in bpf_object__unpin_programs() local
9089 struct bpf_program *prog = prev; in bpf_object__next_program() local
9101 struct bpf_program *prog = next; in bpf_object__prev_program() local
9110 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex) in bpf_program__set_ifindex()
9115 const char *bpf_program__name(const struct bpf_program *prog) in bpf_program__name()
9120 const char *bpf_program__section_name(const struct bpf_program *prog) in bpf_program__section_name()
9125 bool bpf_program__autoload(const struct bpf_program *prog) in bpf_program__autoload()
9130 int bpf_program__set_autoload(struct bpf_program *prog, bool autoload) in bpf_program__set_autoload()
9139 bool bpf_program__autoattach(const struct bpf_program *prog) in bpf_program__autoattach()
9144 void bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach) in bpf_program__set_autoattach()
9149 const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog) in bpf_program__insns()
9154 size_t bpf_program__insn_cnt(const struct bpf_program *prog) in bpf_program__insn_cnt()
9159 int bpf_program__set_insns(struct bpf_program *prog, in bpf_program__set_insns()
9180 int bpf_program__fd(const struct bpf_program *prog) in bpf_program__fd()
9194 enum bpf_prog_type bpf_program__type(const struct bpf_program *prog) in bpf_program__type()
9205 int bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type) in bpf_program__set_type()
9230 enum bpf_attach_type bpf_program__expected_attach_type(const struct bpf_program *prog) in bpf_program__expected_attach_type()
9235 int bpf_program__set_expected_attach_type(struct bpf_program *prog, in bpf_program__set_expected_attach_type()
9245 __u32 bpf_program__flags(const struct bpf_program *prog) in bpf_program__flags()
9250 int bpf_program__set_flags(struct bpf_program *prog, __u32 flags) in bpf_program__set_flags()
9259 __u32 bpf_program__log_level(const struct bpf_program *prog) in bpf_program__log_level()
9264 int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level) in bpf_program__set_log_level()
9273 const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size) in bpf_program__log_buf()
9279 int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size) in bpf_program__set_log_buf()
9677 struct bpf_program *prog; in bpf_object__collect_st_ops_relos() local
9939 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name, in libbpf_find_attach_btf_id()
10482 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) in bpf_link__update_program()
10662 struct bpf_link *bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd, in bpf_program__attach_perf_event_opts()
10739 struct bpf_link *bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd) in bpf_program__attach_perf_event()
11063 bpf_program__attach_kprobe_opts(const struct bpf_program *prog, in bpf_program__attach_kprobe_opts()
11158 struct bpf_link *bpf_program__attach_kprobe(const struct bpf_program *prog, in bpf_program__attach_kprobe()
11169 struct bpf_link *bpf_program__attach_ksyscall(const struct bpf_program *prog, in bpf_program__attach_ksyscall()
11384 bpf_program__attach_kprobe_multi_opts(const struct bpf_program *prog, in bpf_program__attach_kprobe_multi_opts()
11462 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_kprobe()
11499 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_ksyscall()
11520 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_kprobe_multi()
11551 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_uprobe_multi()
11807 bpf_program__attach_uprobe_multi(const struct bpf_program *prog, in bpf_program__attach_uprobe_multi()
11921 bpf_program__attach_uprobe_opts(const struct bpf_program *prog, pid_t pid, in bpf_program__attach_uprobe_opts()
12066 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_uprobe()
12121 struct bpf_link *bpf_program__attach_uprobe(const struct bpf_program *prog, in bpf_program__attach_uprobe()
12131 struct bpf_link *bpf_program__attach_usdt(const struct bpf_program *prog, in bpf_program__attach_usdt()
12184 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_usdt()
12264 struct bpf_link *bpf_program__attach_tracepoint_opts(const struct bpf_program *prog, in bpf_program__attach_tracepoint_opts()
12298 struct bpf_link *bpf_program__attach_tracepoint(const struct bpf_program *prog, in bpf_program__attach_tracepoint()
12305 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_tp()
12337 struct bpf_link *bpf_program__attach_raw_tracepoint(const struct bpf_program *prog, in bpf_program__attach_raw_tracepoint()
12367 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_raw_tp()
12409 static struct bpf_link *bpf_program__attach_btf_id(const struct bpf_program *prog, in bpf_program__attach_btf_id()
12445 struct bpf_link *bpf_program__attach_trace(const struct bpf_program *prog) in bpf_program__attach_trace()
12450 struct bpf_link *bpf_program__attach_trace_opts(const struct bpf_program *prog, in bpf_program__attach_trace_opts()
12456 struct bpf_link *bpf_program__attach_lsm(const struct bpf_program *prog) in bpf_program__attach_lsm()
12461 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_trace()
12467 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_lsm()
12474 bpf_program_attach_fd(const struct bpf_program *prog, in bpf_program_attach_fd()
12509 bpf_program__attach_cgroup(const struct bpf_program *prog, int cgroup_fd) in bpf_program__attach_cgroup()
12515 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd) in bpf_program__attach_netns()
12520 struct bpf_link *bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex) in bpf_program__attach_xdp()
12527 bpf_program__attach_tcx(const struct bpf_program *prog, int ifindex, in bpf_program__attach_tcx()
12562 bpf_program__attach_netkit(const struct bpf_program *prog, int ifindex, in bpf_program__attach_netkit()
12595 struct bpf_link *bpf_program__attach_freplace(const struct bpf_program *prog, in bpf_program__attach_freplace()
12633 bpf_program__attach_iter(const struct bpf_program *prog, in bpf_program__attach_iter()
12672 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link) in attach_iter()
12678 struct bpf_link *bpf_program__attach_netfilter(const struct bpf_program *prog, in bpf_program__attach_netfilter()
12720 struct bpf_link *bpf_program__attach(const struct bpf_program *prog) in bpf_program__attach()
13401 int bpf_program__set_attach_target(struct bpf_program *prog, in bpf_program__set_attach_target()
13581 struct bpf_program **prog = progs[i].prog; in populate_skeleton_progs() local
13765 struct bpf_program *prog = *s->progs[i].prog; in bpf_object__attach_skeleton() local