Lines Matching +defs:prog +defs:mode
313 int libbpf_set_strict_mode(enum libbpf_strict_mode mode) in libbpf_set_strict_mode()
743 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
754 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
791 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
856 struct bpf_program *prog, *progs; in bpf_object__add_programs() local
1116 struct bpf_program *prog; in bpf_map__init_kern_struct_ops() local
3153 static bool prog_needs_vmlinux_btf(struct bpf_program *prog)
3170 struct bpf_program *prog; local
3246 struct bpf_program *prog = &obj->programs[i]; local
3272 struct bpf_program *prog = &obj->programs[i]; local
4386 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog)
4395 struct bpf_program *prog; local
4443 static int bpf_program__record_reloc(struct bpf_program *prog,
4603 static bool prog_contains_insn(const struct bpf_program *prog, size_t insn_idx)
4613 struct bpf_program *prog; local
4642 struct bpf_program *prog; local
5173 int ret, map, prog, insn_cnt = ARRAY_SIZE(insns); local
6181 static int record_relo_core(struct bpf_program *prog,
6199 static const struct bpf_core_relo *find_relo_core(struct bpf_program *prog, int insn_idx)
6215 static int bpf_core_resolve_relo(struct bpf_program *prog,
6267 struct bpf_program *prog; local
6381 static void poison_map_ldimm64(struct bpf_program *prog, int relo_idx,
6411 static void poison_kfunc_call(struct bpf_program *prog, int relo_idx,
6437 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog)
6533 const struct bpf_program *prog,
6603 const struct bpf_program *prog)
6682 static struct reloc_desc *find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx)
6753 struct bpf_program *prog)
6942 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog)
6968 struct bpf_program *prog; local
7011 struct bpf_program *prog; local
7299 static int bpf_object__sanitize_prog(struct bpf_object *obj, struct bpf_program *prog)
7338 static int libbpf_prepare_prog_load(struct bpf_program *prog,
7405 static int bpf_object_load_prog(struct bpf_object *obj, struct bpf_program *prog,
7622 static void fixup_log_failed_core_relo(struct bpf_program *prog,
7661 static void fixup_log_missing_map_load(struct bpf_program *prog,
7694 static void fixup_log_missing_kfunc_call(struct bpf_program *prog,
7727 static void fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz)
7777 static int bpf_program_record_relos(struct bpf_program *prog)
7823 struct bpf_program *prog; local
7863 struct bpf_program *prog; local
8416 struct bpf_program *prog = st_ops->progs[i]; local
8566 int bpf_program__pin(struct bpf_program *prog, const char *path)
8595 int bpf_program__unpin(struct bpf_program *prog, const char *path)
8831 struct bpf_program *prog; local
8868 struct bpf_program *prog; local
9070 struct bpf_program *prog = prev; local
9082 struct bpf_program *prog = next; local
9091 void bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex)
9096 const char *bpf_program__name(const struct bpf_program *prog)
9101 const char *bpf_program__section_name(const struct bpf_program *prog)
9106 bool bpf_program__autoload(const struct bpf_program *prog)
9111 int bpf_program__set_autoload(struct bpf_program *prog, bool autoload)
9120 bool bpf_program__autoattach(const struct bpf_program *prog)
9125 void bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach)
9130 const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog)
9135 size_t bpf_program__insn_cnt(const struct bpf_program *prog)
9140 int bpf_program__set_insns(struct bpf_program *prog,
9161 int bpf_program__fd(const struct bpf_program *prog)
9175 enum bpf_prog_type bpf_program__type(const struct bpf_program *prog)
9186 int bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type)
9211 enum bpf_attach_type bpf_program__expected_attach_type(const struct bpf_program *prog)
9216 int bpf_program__set_expected_attach_type(struct bpf_program *prog,
9226 __u32 bpf_program__flags(const struct bpf_program *prog)
9231 int bpf_program__set_flags(struct bpf_program *prog, __u32 flags)
9240 __u32 bpf_program__log_level(const struct bpf_program *prog)
9245 int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level)
9254 const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size)
9260 int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size)
9662 struct bpf_program *prog; local
9924 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
10460 int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog)
10640 struct bpf_link *bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
10717 struct bpf_link *bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd)
11041 bpf_program__attach_kprobe_opts(const struct bpf_program *prog,
11136 struct bpf_link *bpf_program__attach_kprobe(const struct bpf_program *prog,
11147 struct bpf_link *bpf_program__attach_ksyscall(const struct bpf_program *prog,
11362 bpf_program__attach_kprobe_multi_opts(const struct bpf_program *prog,
11440 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11477 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11498 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11529 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11801 bpf_program__attach_uprobe_multi(const struct bpf_program *prog,
11915 bpf_program__attach_uprobe_opts(const struct bpf_program *prog, pid_t pid,
12060 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12115 struct bpf_link *bpf_program__attach_uprobe(const struct bpf_program *prog,
12126 struct bpf_link *bpf_program__attach_usdt(const struct bpf_program *prog,
12181 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12262 struct bpf_link *bpf_program__attach_tracepoint_opts(const struct bpf_program *prog,
12296 struct bpf_link *bpf_program__attach_tracepoint(const struct bpf_program *prog,
12303 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12335 struct bpf_link *bpf_program__attach_raw_tracepoint(const struct bpf_program *prog,
12365 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12407 static struct bpf_link *bpf_program__attach_btf_id(const struct bpf_program *prog,
12443 struct bpf_link *bpf_program__attach_trace(const struct bpf_program *prog)
12448 struct bpf_link *bpf_program__attach_trace_opts(const struct bpf_program *prog,
12454 struct bpf_link *bpf_program__attach_lsm(const struct bpf_program *prog)
12459 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12465 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12472 bpf_program_attach_fd(const struct bpf_program *prog,
12507 bpf_program__attach_cgroup(const struct bpf_program *prog, int cgroup_fd)
12513 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd)
12518 struct bpf_link *bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex)
12525 bpf_program__attach_tcx(const struct bpf_program *prog, int ifindex,
12560 bpf_program__attach_netkit(const struct bpf_program *prog, int ifindex,
12593 struct bpf_link *bpf_program__attach_freplace(const struct bpf_program *prog,
12631 bpf_program__attach_iter(const struct bpf_program *prog,
12670 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12676 struct bpf_link *bpf_program__attach_netfilter(const struct bpf_program *prog,
12718 struct bpf_link *bpf_program__attach(const struct bpf_program *prog)
13399 int bpf_program__set_attach_target(struct bpf_program *prog,
13581 struct bpf_program **prog = prog_skel->prog; local
13721 struct bpf_program *prog = *prog_skel->prog; local