Lines Matching refs:bpf_program

232 LIBBPF_API struct bpf_program *
245 struct bpf_program;
247 LIBBPF_API struct bpf_program *
248 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prog);
255 LIBBPF_API struct bpf_program *
256 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *prog);
258 LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog,
261 LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog);
262 LIBBPF_API const char *bpf_program__section_name(const struct bpf_program *prog);
263 LIBBPF_API bool bpf_program__autoload(const struct bpf_program *prog);
264 LIBBPF_API int bpf_program__set_autoload(struct bpf_program *prog, bool autoload);
265 LIBBPF_API bool bpf_program__autoattach(const struct bpf_program *prog);
266 LIBBPF_API void bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach);
290 LIBBPF_API const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog);
306 LIBBPF_API int bpf_program__set_insns(struct bpf_program *prog,
318 LIBBPF_API size_t bpf_program__insn_cnt(const struct bpf_program *prog);
320 LIBBPF_API int bpf_program__fd(const struct bpf_program *prog);
332 LIBBPF_API int bpf_program__pin(struct bpf_program *prog, const char *path);
346 LIBBPF_API int bpf_program__unpin(struct bpf_program *prog, const char *path);
347 LIBBPF_API void bpf_program__unload(struct bpf_program *prog);
381 struct bpf_program *prog);
403 bpf_program__attach(const struct bpf_program *prog);
414 bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd);
417 bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
434 bpf_program__attach_kprobe(const struct bpf_program *prog, bool retprobe,
437 bpf_program__attach_kprobe_opts(const struct bpf_program *prog,
460 bpf_program__attach_kprobe_multi_opts(const struct bpf_program *prog,
506 bpf_program__attach_ksyscall(const struct bpf_program *prog,
550 bpf_program__attach_uprobe(const struct bpf_program *prog, bool retprobe,
569 bpf_program__attach_uprobe_opts(const struct bpf_program *prog, pid_t pid,
599 bpf_program__attach_usdt(const struct bpf_program *prog,
613 bpf_program__attach_tracepoint(const struct bpf_program *prog,
617 bpf_program__attach_tracepoint_opts(const struct bpf_program *prog,
623 bpf_program__attach_raw_tracepoint(const struct bpf_program *prog,
635 bpf_program__attach_trace(const struct bpf_program *prog);
637 bpf_program__attach_trace_opts(const struct bpf_program *prog, const struct bpf_trace_opts *opts);
640 bpf_program__attach_lsm(const struct bpf_program *prog);
642 bpf_program__attach_cgroup(const struct bpf_program *prog, int cgroup_fd);
644 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd);
646 bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex);
648 bpf_program__attach_freplace(const struct bpf_program *prog,
663 bpf_program__attach_iter(const struct bpf_program *prog,
666 LIBBPF_API enum bpf_prog_type bpf_program__type(const struct bpf_program *prog);
679 LIBBPF_API int bpf_program__set_type(struct bpf_program *prog,
683 bpf_program__expected_attach_type(const struct bpf_program *prog);
698 bpf_program__set_expected_attach_type(struct bpf_program *prog,
701 LIBBPF_API __u32 bpf_program__flags(const struct bpf_program *prog);
702 LIBBPF_API int bpf_program__set_flags(struct bpf_program *prog, __u32 flags);
708 LIBBPF_API __u32 bpf_program__log_level(const struct bpf_program *prog);
709 LIBBPF_API int bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level);
710 LIBBPF_API const char *bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size);
711 LIBBPF_API int bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size);
725 bpf_program__set_attach_target(struct bpf_program *prog, int attach_prog_fd,
1318 struct bpf_program **prog;
1426 typedef int (*libbpf_prog_setup_fn_t)(struct bpf_program *prog, long cookie);
1431 typedef int (*libbpf_prog_prepare_load_fn_t)(struct bpf_program *prog,
1441 typedef int (*libbpf_prog_attach_fn_t)(const struct bpf_program *prog, long cookie,