Lines Matching refs:prog

295 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prog);
303 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *prog);
305 LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog,
308 LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog);
309 LIBBPF_API const char *bpf_program__section_name(const struct bpf_program *prog);
310 LIBBPF_API bool bpf_program__autoload(const struct bpf_program *prog);
311 LIBBPF_API int bpf_program__set_autoload(struct bpf_program *prog, bool autoload);
312 LIBBPF_API bool bpf_program__autoattach(const struct bpf_program *prog);
313 LIBBPF_API void bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach);
337 LIBBPF_API const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog);
353 LIBBPF_API int bpf_program__set_insns(struct bpf_program *prog,
365 LIBBPF_API size_t bpf_program__insn_cnt(const struct bpf_program *prog);
367 LIBBPF_API int bpf_program__fd(const struct bpf_program *prog);
379 LIBBPF_API int bpf_program__pin(struct bpf_program *prog, const char *path);
393 LIBBPF_API int bpf_program__unpin(struct bpf_program *prog, const char *path);
394 LIBBPF_API void bpf_program__unload(struct bpf_program *prog);
428 struct bpf_program *prog);
450 bpf_program__attach(const struct bpf_program *prog);
464 bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd);
467 bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
503 bpf_program__attach_kprobe(const struct bpf_program *prog, bool retprobe,
506 bpf_program__attach_kprobe_opts(const struct bpf_program *prog,
529 bpf_program__attach_kprobe_multi_opts(const struct bpf_program *prog,
578 bpf_program__attach_uprobe_multi(const struct bpf_program *prog,
626 bpf_program__attach_ksyscall(const struct bpf_program *prog,
672 bpf_program__attach_uprobe(const struct bpf_program *prog, bool retprobe,
691 bpf_program__attach_uprobe_opts(const struct bpf_program *prog, pid_t pid,
721 bpf_program__attach_usdt(const struct bpf_program *prog,
735 bpf_program__attach_tracepoint(const struct bpf_program *prog,
739 bpf_program__attach_tracepoint_opts(const struct bpf_program *prog,
745 bpf_program__attach_raw_tracepoint(const struct bpf_program *prog,
757 bpf_program__attach_trace(const struct bpf_program *prog);
759 bpf_program__attach_trace_opts(const struct bpf_program *prog, const struct bpf_trace_opts *opts);
762 bpf_program__attach_lsm(const struct bpf_program *prog);
764 bpf_program__attach_cgroup(const struct bpf_program *prog, int cgroup_fd);
766 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd);
768 bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex);
770 bpf_program__attach_freplace(const struct bpf_program *prog,
785 bpf_program__attach_netfilter(const struct bpf_program *prog,
800 bpf_program__attach_tcx(const struct bpf_program *prog, int ifindex,
816 bpf_program__attach_iter(const struct bpf_program *prog,
819 LIBBPF_API enum bpf_prog_type bpf_program__type(const struct bpf_program *prog);
832 LIBBPF_API int bpf_program__set_type(struct bpf_program *prog,
836 bpf_program__expected_attach_type(const struct bpf_program *prog);
851 bpf_program__set_expected_attach_type(struct bpf_program *prog,
854 LIBBPF_API __u32 bpf_program__flags(const struct bpf_program *prog);
855 LIBBPF_API int bpf_program__set_flags(struct bpf_program *prog, __u32 flags);
861 LIBBPF_API __u32 bpf_program__log_level(const struct bpf_program *prog);
862 LIBBPF_API int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level);
863 LIBBPF_API const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size);
864 LIBBPF_API int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size);
878 bpf_program__set_attach_target(struct bpf_program *prog, int attach_prog_fd,
1542 struct bpf_program **prog; member
1650 typedef int (*libbpf_prog_setup_fn_t)(struct bpf_program *prog, long cookie);
1655 typedef int (*libbpf_prog_prepare_load_fn_t)(struct bpf_program *prog,
1665 typedef int (*libbpf_prog_attach_fn_t)(const struct bpf_program *prog, long cookie,