Lines Matching +defs:prog +defs:mode
314 int libbpf_set_strict_mode(enum libbpf_strict_mode mode) in libbpf_set_strict_mode()
734 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
745 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
782 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
846 struct bpf_program *prog, *progs; in bpf_object__add_programs() local
1141 struct bpf_program *prog; in bpf_map__init_kern_struct_ops() local
3138 static bool prog_needs_vmlinux_btf(struct bpf_program *prog)
3155 struct bpf_program *prog; local
3231 struct bpf_program *prog = &obj->programs[i]; local
4272 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog)
4281 struct bpf_program *prog; local
4329 static int bpf_program__record_reloc(struct bpf_program *prog,
4489 static bool prog_contains_insn(const struct bpf_program *prog, size_t insn_idx)
4499 struct bpf_program *prog; local
4528 struct bpf_program *prog; local
5060 int ret, map, prog, insn_cnt = ARRAY_SIZE(insns); local
5966 static int record_relo_core(struct bpf_program *prog,
5984 static const struct bpf_core_relo *find_relo_core(struct bpf_program *prog, int insn_idx)
6000 static int bpf_core_resolve_relo(struct bpf_program *prog,
6052 struct bpf_program *prog; local
6168 static void poison_map_ldimm64(struct bpf_program *prog, int relo_idx,
6200 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog)
6296 const struct bpf_program *prog,
6366 const struct bpf_program *prog)
6445 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx)
6480 struct bpf_program *prog)
6687 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog)
6713 struct bpf_program *prog; local
6756 struct bpf_program *prog; local
7025 static int bpf_object__sanitize_prog(struct bpf_object *obj, struct bpf_program *prog)
7064 static int libbpf_prepare_prog_load(struct bpf_program *prog,
7121 static int bpf_object_load_prog(struct bpf_object *obj, struct bpf_program *prog,
7338 static void fixup_log_failed_core_relo(struct bpf_program *prog,
7377 static void fixup_log_missing_map_load(struct bpf_program *prog,
7410 static void fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz)
7450 static int bpf_program_record_relos(struct bpf_program *prog)
7493 struct bpf_program *prog; local
7533 struct bpf_program *prog; local
8192 int bpf_program__pin(struct bpf_program *prog, const char *path)
8221 int bpf_program__unpin(struct bpf_program *prog, const char *path)
8457 struct bpf_program *prog; local
8494 struct bpf_program *prog; local
8673 struct bpf_program *prog = prev; local
8685 struct bpf_program *prog = next; local
8694 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex)
8699 const char *bpf_program__name(const struct bpf_program *prog)
8704 const char *bpf_program__section_name(const struct bpf_program *prog)
8709 bool bpf_program__autoload(const struct bpf_program *prog)
8714 int bpf_program__set_autoload(struct bpf_program *prog, bool autoload)
8723 bool bpf_program__autoattach(const struct bpf_program *prog)
8728 void bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach)
8733 const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog)
8738 size_t bpf_program__insn_cnt(const struct bpf_program *prog)
8743 int bpf_program__set_insns(struct bpf_program *prog,
8763 int bpf_program__fd(const struct bpf_program *prog)
8777 enum bpf_prog_type bpf_program__type(const struct bpf_program *prog)
8782 int bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type)
8794 enum bpf_attach_type bpf_program__expected_attach_type(const struct bpf_program *prog)
8799 int bpf_program__set_expected_attach_type(struct bpf_program *prog,
8809 __u32 bpf_program__flags(const struct bpf_program *prog)
8814 int bpf_program__set_flags(struct bpf_program *prog, __u32 flags)
8823 __u32 bpf_program__log_level(const struct bpf_program *prog)
8828 int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level)
8837 const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size)
8843 int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size)
9227 struct bpf_program *prog; local
9488 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
9931 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog)
10111 struct bpf_link *bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
10186 struct bpf_link *bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd)
10487 bpf_program__attach_kprobe_opts(const struct bpf_program *prog,
10560 struct bpf_link *bpf_program__attach_kprobe(const struct bpf_program *prog,
10571 struct bpf_link *bpf_program__attach_ksyscall(const struct bpf_program *prog,
10653 bpf_program__attach_kprobe_multi_opts(const struct bpf_program *prog,
10732 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
10769 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link)
10790 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11261 bpf_program__attach_uprobe_opts(const struct bpf_program *prog, pid_t pid,
11370 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11415 struct bpf_link *bpf_program__attach_uprobe(const struct bpf_program *prog,
11426 struct bpf_link *bpf_program__attach_usdt(const struct bpf_program *prog,
11481 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11562 struct bpf_link *bpf_program__attach_tracepoint_opts(const struct bpf_program *prog,
11596 struct bpf_link *bpf_program__attach_tracepoint(const struct bpf_program *prog,
11603 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11635 struct bpf_link *bpf_program__attach_raw_tracepoint(const struct bpf_program *prog,
11665 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11707 static struct bpf_link *bpf_program__attach_btf_id(const struct bpf_program *prog,
11743 struct bpf_link *bpf_program__attach_trace(const struct bpf_program *prog)
11748 struct bpf_link *bpf_program__attach_trace_opts(const struct bpf_program *prog,
11754 struct bpf_link *bpf_program__attach_lsm(const struct bpf_program *prog)
11759 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11765 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11772 bpf_program__attach_fd(const struct bpf_program *prog, int target_fd, int btf_id,
11808 bpf_program__attach_cgroup(const struct bpf_program *prog, int cgroup_fd)
11814 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd)
11819 struct bpf_link *bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex)
11825 struct bpf_link *bpf_program__attach_freplace(const struct bpf_program *prog,
11858 bpf_program__attach_iter(const struct bpf_program *prog,
11897 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11903 struct bpf_link *bpf_program__attach(const struct bpf_program *prog)
11952 struct bpf_program *prog = st_ops->progs[i]; local
12530 int bpf_program__set_attach_target(struct bpf_program *prog,
12710 struct bpf_program **prog = progs[i].prog; local
12895 struct bpf_program *prog = *s->progs[i].prog; local