Lines Matching defs:bpf_program

75 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog);
403 struct bpf_program {
476 struct bpf_program **progs;
653 struct bpf_program *programs;
724 void bpf_program__unload(struct bpf_program *prog)
735 static void bpf_program__exit(struct bpf_program *prog)
772 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog,
796 * SEC("abc...") but the corresponding bpf_program starts out with
837 struct bpf_program *prog, *progs;
1028 const struct bpf_program *prog)
1047 struct bpf_program *prog, *slot_prog;
1168 struct bpf_program *prog;
3340 static bool prog_needs_vmlinux_btf(struct bpf_program *prog)
3362 struct bpf_program *prog;
3444 struct bpf_program *prog = &obj->programs[i];
3697 const struct bpf_program *a = _a;
3698 const struct bpf_program *b = _b;
4319 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog)
4324 struct bpf_program *
4328 struct bpf_program *prog;
4376 static int bpf_program__record_reloc(struct bpf_program *prog,
4538 static bool prog_contains_insn(const struct bpf_program *prog, size_t insn_idx)
4544 static struct bpf_program *find_prog_by_sec_insn(const struct bpf_object *obj,
4548 struct bpf_program *prog;
4577 struct bpf_program *prog;
5220 const struct bpf_program *targ_prog;
5690 static int record_relo_core(struct bpf_program *prog,
5708 static const struct bpf_core_relo *find_relo_core(struct bpf_program *prog, int insn_idx)
5724 static int bpf_core_resolve_relo(struct bpf_program *prog,
5776 struct bpf_program *prog;
5890 static void poison_map_ldimm64(struct bpf_program *prog, int relo_idx,
5920 static void poison_kfunc_call(struct bpf_program *prog, int relo_idx,
5946 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog)
6042 const struct bpf_program *prog,
6111 struct bpf_program *main_prog,
6112 const struct bpf_program *prog)
6191 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx)
6199 static int append_subprog_relos(struct bpf_program *main_prog, struct bpf_program *subprog)
6229 bpf_object__append_subprog_code(struct bpf_object *obj, struct bpf_program *main_prog,
6230 struct bpf_program *subprog)
6261 bpf_object__reloc_code(struct bpf_object *obj, struct bpf_program *main_prog,
6262 struct bpf_program *prog)
6265 struct bpf_program *subprog;
6451 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog)
6453 struct bpf_program *subprog;
6477 struct bpf_program *prog;
6508 struct bpf_program *p = &obj->programs[i];
6517 static int bpf_prog_assign_exc_cb(struct bpf_object *obj, struct bpf_program *prog)
6564 struct bpf_program *subprog = &obj->programs[j];
6639 static bool need_func_arg_type_fixup(const struct btf *btf, const struct bpf_program *prog,
6710 static int clone_func_btf_info(struct btf *btf, int orig_fn_id, struct bpf_program *prog)
6779 static int bpf_program_fixup_func_info(struct bpf_object *obj, struct bpf_program *prog)
6920 struct bpf_program *prog;
6982 struct bpf_program *subprog = &obj->programs[prog->exception_cb_idx];
7037 struct bpf_program *targ_prog = NULL;
7215 static int bpf_object__sanitize_prog(struct bpf_object *obj, struct bpf_program *prog)
7250 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
7254 static int libbpf_prepare_prog_load(struct bpf_program *prog,
7313 static void fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz);
7315 static int bpf_object_load_prog(struct bpf_object *obj, struct bpf_program *prog,
7538 static void fixup_log_failed_core_relo(struct bpf_program *prog,
7577 static void fixup_log_missing_map_load(struct bpf_program *prog,
7610 static void fixup_log_missing_kfunc_call(struct bpf_program *prog,
7643 static void fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz)
7693 static int bpf_program_record_relos(struct bpf_program *prog)
7739 struct bpf_program *prog;
7779 struct bpf_program *prog;
7795 * after bpf_program is initialized to adjust its properties
8347 struct bpf_program *prog = st_ops->progs[i];
8506 int bpf_program__pin(struct bpf_program *prog, const char *path)
8535 int bpf_program__unpin(struct bpf_program *prog, const char *path)
8771 struct bpf_program *prog;
8808 struct bpf_program *prog;
8984 static struct bpf_program *
8985 __bpf_program__iter(const struct bpf_program *p, const struct bpf_object *obj,
9010 struct bpf_program *
9011 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prev)
9013 struct bpf_program *prog = prev;
9022 struct bpf_program *
9023 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *next)
9025 struct bpf_program *prog = next;
9034 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex)
9039 const char *bpf_program__name(const struct bpf_program *prog)
9044 const char *bpf_program__section_name(const struct bpf_program *prog)
9049 bool bpf_program__autoload(const struct bpf_program *prog)
9054 int bpf_program__set_autoload(struct bpf_program *prog, bool autoload)
9063 bool bpf_program__autoattach(const struct bpf_program *prog)
9068 void bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach)
9073 const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog)
9078 size_t bpf_program__insn_cnt(const struct bpf_program *prog)
9083 int bpf_program__set_insns(struct bpf_program *prog,
9104 int bpf_program__fd(const struct bpf_program *prog)
9116 enum bpf_prog_type bpf_program__get_type(const struct bpf_program *prog);
9118 enum bpf_prog_type bpf_program__type(const struct bpf_program *prog)
9129 int bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type)
9152 enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *prog);
9154 enum bpf_attach_type bpf_program__expected_attach_type(const struct bpf_program *prog)
9159 int bpf_program__set_expected_attach_type(struct bpf_program *prog,
9169 __u32 bpf_program__flags(const struct bpf_program *prog)
9174 int bpf_program__set_flags(struct bpf_program *prog, __u32 flags)
9183 __u32 bpf_program__log_level(const struct bpf_program *prog)
9188 int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level)
9197 const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size)
9203 int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size)
9226 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9227 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9228 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9229 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9230 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9231 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9232 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9233 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9234 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9235 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9236 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9603 struct bpf_program *prog;
9694 * should be converted to a pointer to struct bpf_program
9697 *((struct bpf_program **)(st_ops->data + moff)) = prog;
9852 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
10419 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog)
10599 struct bpf_link *bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
10676 struct bpf_link *bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd)
11000 bpf_program__attach_kprobe_opts(const struct bpf_program *prog,
11095 struct bpf_link *bpf_program__attach_kprobe(const struct bpf_program *prog,
11106 struct bpf_link *bpf_program__attach_ksyscall(const struct bpf_program *prog,
11321 bpf_program__attach_kprobe_multi_opts(const struct bpf_program *prog,
11399 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11436 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11457 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11488 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11744 bpf_program__attach_uprobe_multi(const struct bpf_program *prog,
11858 bpf_program__attach_uprobe_opts(const struct bpf_program *prog, pid_t pid,
12003 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12058 struct bpf_link *bpf_program__attach_uprobe(const struct bpf_program *prog,
12068 struct bpf_link *bpf_program__attach_usdt(const struct bpf_program *prog,
12121 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12201 struct bpf_link *bpf_program__attach_tracepoint_opts(const struct bpf_program *prog,
12235 struct bpf_link *bpf_program__attach_tracepoint(const struct bpf_program *prog,
12242 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12274 struct bpf_link *bpf_program__attach_raw_tracepoint(const struct bpf_program *prog,
12304 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12346 static struct bpf_link *bpf_program__attach_btf_id(const struct bpf_program *prog,
12382 struct bpf_link *bpf_program__attach_trace(const struct bpf_program *prog)
12387 struct bpf_link *bpf_program__attach_trace_opts(const struct bpf_program *prog,
12393 struct bpf_link *bpf_program__attach_lsm(const struct bpf_program *prog)
12398 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12404 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12411 bpf_program_attach_fd(const struct bpf_program *prog,
12446 bpf_program__attach_cgroup(const struct bpf_program *prog, int cgroup_fd)
12452 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd)
12457 struct bpf_link *bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex)
12464 bpf_program__attach_tcx(const struct bpf_program *prog, int ifindex,
12499 bpf_program__attach_netkit(const struct bpf_program *prog, int ifindex,
12532 struct bpf_link *bpf_program__attach_freplace(const struct bpf_program *prog,
12570 bpf_program__attach_iter(const struct bpf_program *prog,
12609 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12615 struct bpf_link *bpf_program__attach_netfilter(const struct bpf_program *prog,
12657 struct bpf_link *bpf_program__attach(const struct bpf_program *prog)
13338 int bpf_program__set_attach_target(struct bpf_program *prog,
13518 struct bpf_program **prog = progs[i].prog;
13707 struct bpf_program *prog = *s->progs[i].prog;