Lines Matching defs:cookie

361 /* stored as sec_def->cookie for all libbpf-supported SEC()s */
390 long cookie;
5363 "BPF cookie support", probe_kern_bpf_cookie,
7268 struct bpf_prog_load_opts *opts, long cookie)
7270 enum sec_def_flags def = cookie;
7379 err = prog->sec_def->prog_prepare_load_fn(prog, &load_attr, prog->sec_def->cookie);
7807 err = prog->sec_def->prog_setup_fn(prog, prog->sec_def->cookie);
9202 .cookie = (long)(flags), \
9207 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9208 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9209 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9211 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9213 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9214 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9215 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9216 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9217 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9218 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9219 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link);
9359 sec_def->cookie = OPTS_GET(opts, cookie, 0);
9487 if (!(sec_def->cookie & SEC_ATTACHABLE))
9911 if (!(sec_def->cookie & SEC_ATTACHABLE))
11364 static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11401 static int attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11422 static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11453 static int attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link)
11978 static int attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12099 static int attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12221 static int attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12283 static int attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12348 link_opts.tracing.cookie = OPTS_GET(opts, cookie, 0);
12377 static int attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12383 static int attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12588 static int attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link)
12644 err = prog->sec_def->prog_attach_fn(prog, prog->sec_def->cookie, &link);
13695 err = prog->sec_def->prog_attach_fn(prog, prog->sec_def->cookie, link);