Lines Matching refs:cookie
13 static int custom_setup_prog(struct bpf_program *prog, long cookie) in custom_setup_prog() argument
15 if (cookie == COOKIE_ABC1) in custom_setup_prog()
22 struct bpf_prog_load_opts *opts, long cookie) in custom_prepare_load_prog() argument
24 if (cookie == COOKIE_FALLBACK) in custom_prepare_load_prog()
26 else if (cookie == COOKIE_ABC1) in custom_prepare_load_prog()
32 static int custom_attach_prog(const struct bpf_program *prog, long cookie, in custom_attach_prog() argument
35 switch (cookie) { in custom_attach_prog()
63 .cookie = COOKIE_ABC1, in register_sec_handlers()
69 .cookie = COOKIE_ABC2, in register_sec_handlers()
75 .cookie = COOKIE_CUSTOM, in register_sec_handlers()
112 opts.cookie = COOKIE_KPROBE; in test_custom_sec_handlers()
117 opts.cookie = COOKIE_FALLBACK; in test_custom_sec_handlers()