Home
last modified time | relevance | path

Searched refs:prog_attach_fn (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dcustom_sec_handlers.c66 .prog_attach_fn = NULL, in register_sec_handlers()
72 .prog_attach_fn = custom_attach_prog, in register_sec_handlers()
78 .prog_attach_fn = custom_attach_prog, in register_sec_handlers()
99 .prog_attach_fn = custom_attach_prog, in test_custom_sec_handlers()
/Linux-v6.6/tools/lib/bpf/
Dlibbpf.h1690 libbpf_prog_attach_fn_t prog_attach_fn; member
1692 #define libbpf_prog_handler_opts__last_field prog_attach_fn
Dlibbpf.c383 libbpf_prog_attach_fn_t prog_attach_fn; member
8901 sec_def->prog_attach_fn = OPTS_GET(opts, prog_attach_fn, NULL); in libbpf_register_prog_handler()
12121 if (!prog->sec_def || !prog->sec_def->prog_attach_fn) in bpf_program__attach()
12124 err = prog->sec_def->prog_attach_fn(prog, prog->sec_def->cookie, &link); in bpf_program__attach()
13168 if (!prog->sec_def || !prog->sec_def->prog_attach_fn) in bpf_object__attach_skeleton()
13175 err = prog->sec_def->prog_attach_fn(prog, prog->sec_def->cookie, link); in bpf_object__attach_skeleton()