Lines Matching defs:cookie

350 /* stored as sec_def->cookie for all libbpf-supported SEC()s */
379 long cookie;
4958 "BPF cookie support", probe_kern_bpf_cookie,
6825 struct bpf_prog_load_opts *opts, long cookie)
6827 enum sec_def_flags def = cookie;
6936 err = prog->sec_def->prog_prepare_load_fn(prog, &load_attr, prog->sec_def->cookie);
7364 err = prog->sec_def->prog_setup_fn(prog, prog->sec_def->cookie);
8757 .cookie = (long)(flags), \
8762 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8763 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8764 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8765 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8766 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8767 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8768 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8769 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8770 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8771 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8772 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link);
8903 sec_def->cookie = OPTS_GET(opts, cookie, 0);
9031 if (!(sec_def->cookie & SEC_ATTACHABLE))
9455 if (!(sec_def->cookie & SEC_ATTACHABLE))
10908 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
10945 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link)
10966 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
10997 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11512 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11620 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11741 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11803 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11868 link_opts.tracing.cookie = OPTS_GET(opts, cookie, 0);
11897 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11903 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12074 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12130 err = prog->sec_def->prog_attach_fn(prog, prog->sec_def->cookie, &link);
13181 err = prog->sec_def->prog_attach_fn(prog, prog->sec_def->cookie, link);