Searched refs:prog_attach_fn (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | custom_sec_handlers.c | 66 .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/tools/lib/bpf/ |
| H A D | libbpf.c | 438 libbpf_prog_attach_fn_t prog_attach_fn; member 10277 sec_def->prog_attach_fn = OPTS_GET(opts, prog_attach_fn, NULL); in libbpf_register_prog_handler() 14062 if (!prog->sec_def || !prog->sec_def->prog_attach_fn) in bpf_program__attach() 14071 err = prog->sec_def->prog_attach_fn(prog, prog->sec_def->cookie, &link); in bpf_program__attach() 15118 if (!prog->sec_def || !prog->sec_def->prog_attach_fn) in bpf_object__attach_skeleton() 15125 err = prog->sec_def->prog_attach_fn(prog, prog->sec_def->cookie, link); in bpf_object__attach_skeleton()
|