Lines Matching refs:prog

325 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prog);
333 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *prog);
335 LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog,
338 LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog);
339 LIBBPF_API const char *bpf_program__section_name(const struct bpf_program *prog);
340 LIBBPF_API bool bpf_program__autoload(const struct bpf_program *prog);
341 LIBBPF_API int bpf_program__set_autoload(struct bpf_program *prog, bool autoload);
342 LIBBPF_API bool bpf_program__autoattach(const struct bpf_program *prog);
343 LIBBPF_API void bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach);
367 LIBBPF_API const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog);
383 LIBBPF_API int bpf_program__set_insns(struct bpf_program *prog,
395 LIBBPF_API size_t bpf_program__insn_cnt(const struct bpf_program *prog);
397 LIBBPF_API int bpf_program__fd(const struct bpf_program *prog);
409 LIBBPF_API int bpf_program__pin(struct bpf_program *prog, const char *path);
423 LIBBPF_API int bpf_program__unpin(struct bpf_program *prog, const char *path);
424 LIBBPF_API void bpf_program__unload(struct bpf_program *prog);
458 struct bpf_program *prog);
480 bpf_program__attach(const struct bpf_program *prog);
494 bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd);
497 bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
533 bpf_program__attach_kprobe(const struct bpf_program *prog, bool retprobe,
536 bpf_program__attach_kprobe_opts(const struct bpf_program *prog,
561 bpf_program__attach_kprobe_multi_opts(const struct bpf_program *prog,
610 bpf_program__attach_uprobe_multi(const struct bpf_program *prog,
658 bpf_program__attach_ksyscall(const struct bpf_program *prog,
704 bpf_program__attach_uprobe(const struct bpf_program *prog, bool retprobe,
723 bpf_program__attach_uprobe_opts(const struct bpf_program *prog, pid_t pid,
753 bpf_program__attach_usdt(const struct bpf_program *prog,
767 bpf_program__attach_tracepoint(const struct bpf_program *prog,
771 bpf_program__attach_tracepoint_opts(const struct bpf_program *prog,
784 bpf_program__attach_raw_tracepoint(const struct bpf_program *prog,
787 bpf_program__attach_raw_tracepoint_opts(const struct bpf_program *prog,
800 bpf_program__attach_trace(const struct bpf_program *prog);
802 bpf_program__attach_trace_opts(const struct bpf_program *prog, const struct bpf_trace_opts *opts);
805 bpf_program__attach_lsm(const struct bpf_program *prog);
807 bpf_program__attach_cgroup(const struct bpf_program *prog, int cgroup_fd);
809 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd);
811 bpf_program__attach_sockmap(const struct bpf_program *prog, int map_fd);
813 bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex);
815 bpf_program__attach_freplace(const struct bpf_program *prog,
830 bpf_program__attach_netfilter(const struct bpf_program *prog,
845 bpf_program__attach_tcx(const struct bpf_program *prog, int ifindex,
860 bpf_program__attach_netkit(const struct bpf_program *prog, int ifindex,
876 bpf_program__attach_iter(const struct bpf_program *prog,
879 LIBBPF_API enum bpf_prog_type bpf_program__type(const struct bpf_program *prog);
892 LIBBPF_API int bpf_program__set_type(struct bpf_program *prog,
896 bpf_program__expected_attach_type(const struct bpf_program *prog);
911 bpf_program__set_expected_attach_type(struct bpf_program *prog,
914 LIBBPF_API __u32 bpf_program__flags(const struct bpf_program *prog);
915 LIBBPF_API int bpf_program__set_flags(struct bpf_program *prog, __u32 flags);
921 LIBBPF_API __u32 bpf_program__log_level(const struct bpf_program *prog);
922 LIBBPF_API int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level);
923 LIBBPF_API const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size);
924 LIBBPF_API int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size);
938 bpf_program__set_attach_target(struct bpf_program *prog, int attach_prog_fd,
1705 struct bpf_program **prog; member
1813 typedef int (*libbpf_prog_setup_fn_t)(struct bpf_program *prog, long cookie);
1818 typedef int (*libbpf_prog_prepare_load_fn_t)(struct bpf_program *prog,
1828 typedef int (*libbpf_prog_attach_fn_t)(const struct bpf_program *prog, long cookie,