Lines Matching defs:bpf_program

72 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog);
391 struct bpf_program {
462 struct bpf_program **progs;
637 struct bpf_program *programs;
700 void bpf_program__unload(struct bpf_program *prog)
711 static void bpf_program__exit(struct bpf_program *prog)
748 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog,
771 * SEC("abc...") but the corresponding bpf_program starts out with
812 struct bpf_program *prog, *progs;
1070 struct bpf_program *prog;
3030 static bool prog_needs_vmlinux_btf(struct bpf_program *prog)
3047 struct bpf_program *prog;
3123 struct bpf_program *prog = &obj->programs[i];
3376 const struct bpf_program *a = _a;
3377 const struct bpf_program *b = _b;
3991 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog)
3996 struct bpf_program *
4000 struct bpf_program *prog;
4048 static int bpf_program__record_reloc(struct bpf_program *prog,
4201 static bool prog_contains_insn(const struct bpf_program *prog, size_t insn_idx)
4207 static struct bpf_program *find_prog_by_sec_insn(const struct bpf_object *obj,
4211 struct bpf_program *prog;
4240 struct bpf_program *prog;
5244 const struct bpf_program *targ_prog;
5705 static int record_relo_core(struct bpf_program *prog,
5723 static const struct bpf_core_relo *find_relo_core(struct bpf_program *prog, int insn_idx)
5739 static int bpf_core_resolve_relo(struct bpf_program *prog,
5791 struct bpf_program *prog;
5905 static void poison_map_ldimm64(struct bpf_program *prog, int relo_idx,
5935 static void poison_kfunc_call(struct bpf_program *prog, int relo_idx,
5961 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog)
6057 const struct bpf_program *prog,
6126 struct bpf_program *main_prog,
6127 const struct bpf_program *prog)
6206 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx)
6214 static int append_subprog_relos(struct bpf_program *main_prog, struct bpf_program *subprog)
6244 bpf_object__reloc_code(struct bpf_object *obj, struct bpf_program *main_prog,
6245 struct bpf_program *prog)
6248 struct bpf_program *subprog;
6452 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog)
6454 struct bpf_program *subprog;
6478 struct bpf_program *prog;
6509 struct bpf_program *p = &obj->programs[i];
6521 struct bpf_program *prog;
6607 struct bpf_program *targ_prog = NULL;
6785 static int bpf_object__sanitize_prog(struct bpf_object *obj, struct bpf_program *prog)
6820 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
6824 static int libbpf_prepare_prog_load(struct bpf_program *prog,
6883 static void fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz);
6885 static int bpf_object_load_prog(struct bpf_object *obj, struct bpf_program *prog,
7104 static void fixup_log_failed_core_relo(struct bpf_program *prog,
7143 static void fixup_log_missing_map_load(struct bpf_program *prog,
7176 static void fixup_log_missing_kfunc_call(struct bpf_program *prog,
7209 static void fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz)
7259 static int bpf_program_record_relos(struct bpf_program *prog)
7305 struct bpf_program *prog;
7345 struct bpf_program *prog;
7361 * after bpf_program is initialized to adjust its properties
7895 struct bpf_program *prog = st_ops->progs[i];
8045 int bpf_program__pin(struct bpf_program *prog, const char *path)
8074 int bpf_program__unpin(struct bpf_program *prog, const char *path)
8310 struct bpf_program *prog;
8347 struct bpf_program *prog;
8520 static struct bpf_program *
8521 __bpf_program__iter(const struct bpf_program *p, const struct bpf_object *obj,
8546 struct bpf_program *
8547 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prev)
8549 struct bpf_program *prog = prev;
8558 struct bpf_program *
8559 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *next)
8561 struct bpf_program *prog = next;
8570 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex)
8575 const char *bpf_program__name(const struct bpf_program *prog)
8580 const char *bpf_program__section_name(const struct bpf_program *prog)
8585 bool bpf_program__autoload(const struct bpf_program *prog)
8590 int bpf_program__set_autoload(struct bpf_program *prog, bool autoload)
8599 bool bpf_program__autoattach(const struct bpf_program *prog)
8604 void bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach)
8609 const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog)
8614 size_t bpf_program__insn_cnt(const struct bpf_program *prog)
8619 int bpf_program__set_insns(struct bpf_program *prog,
8640 int bpf_program__fd(const struct bpf_program *prog)
8652 enum bpf_prog_type bpf_program__get_type(const struct bpf_program *prog);
8654 enum bpf_prog_type bpf_program__type(const struct bpf_program *prog)
8665 int bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type)
8688 enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *prog);
8690 enum bpf_attach_type bpf_program__expected_attach_type(const struct bpf_program *prog)
8695 int bpf_program__set_expected_attach_type(struct bpf_program *prog,
8705 __u32 bpf_program__flags(const struct bpf_program *prog)
8710 int bpf_program__set_flags(struct bpf_program *prog, __u32 flags)
8719 __u32 bpf_program__log_level(const struct bpf_program *prog)
8724 int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level)
8733 const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size)
8739 int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size)
8762 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8763 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8764 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8765 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8766 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8767 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8768 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8769 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8770 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8771 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8772 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9130 struct bpf_program *prog;
9392 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
9928 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog)
10108 struct bpf_link *bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
10185 struct bpf_link *bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd)
10509 bpf_program__attach_kprobe_opts(const struct bpf_program *prog,
10604 struct bpf_link *bpf_program__attach_kprobe(const struct bpf_program *prog,
10615 struct bpf_link *bpf_program__attach_ksyscall(const struct bpf_program *prog,
10830 bpf_program__attach_kprobe_multi_opts(const struct bpf_program *prog,
10908 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
10945 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link)
10966 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
10997 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11253 bpf_program__attach_uprobe_multi(const struct bpf_program *prog,
11367 bpf_program__attach_uprobe_opts(const struct bpf_program *prog, pid_t pid,
11512 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11557 struct bpf_link *bpf_program__attach_uprobe(const struct bpf_program *prog,
11567 struct bpf_link *bpf_program__attach_usdt(const struct bpf_program *prog,
11620 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11700 struct bpf_link *bpf_program__attach_tracepoint_opts(const struct bpf_program *prog,
11734 struct bpf_link *bpf_program__attach_tracepoint(const struct bpf_program *prog,
11741 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11773 struct bpf_link *bpf_program__attach_raw_tracepoint(const struct bpf_program *prog,
11803 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11845 static struct bpf_link *bpf_program__attach_btf_id(const struct bpf_program *prog,
11881 struct bpf_link *bpf_program__attach_trace(const struct bpf_program *prog)
11886 struct bpf_link *bpf_program__attach_trace_opts(const struct bpf_program *prog,
11892 struct bpf_link *bpf_program__attach_lsm(const struct bpf_program *prog)
11897 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11903 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11910 bpf_program_attach_fd(const struct bpf_program *prog,
11945 bpf_program__attach_cgroup(const struct bpf_program *prog, int cgroup_fd)
11951 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd)
11956 struct bpf_link *bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex)
11963 bpf_program__attach_tcx(const struct bpf_program *prog, int ifindex,
11997 struct bpf_link *bpf_program__attach_freplace(const struct bpf_program *prog,
12035 bpf_program__attach_iter(const struct bpf_program *prog,
12074 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12080 struct bpf_link *bpf_program__attach_netfilter(const struct bpf_program *prog,
12122 struct bpf_link *bpf_program__attach(const struct bpf_program *prog)
12803 int bpf_program__set_attach_target(struct bpf_program *prog,
12983 struct bpf_program **prog = progs[i].prog;
13167 struct bpf_program *prog = *s->progs[i].prog;