diff -drupN a/samples/bpf/libbpf.h b/samples/bpf/libbpf.h
--- a/samples/bpf/libbpf.h	2018-08-06 17:23:04.000000000 +0300
+++ b/samples/bpf/libbpf.h	2022-06-12 05:28:14.000000000 +0300
@@ -15,6 +15,10 @@ int bpf_prog_load(enum bpf_prog_type pro
 		  const struct bpf_insn *insns, int insn_len,
 		  const char *license, int kern_version);
 
+int bpf_prog_attach(int prog_fd, int attachable_fd, enum bpf_attach_type type,
+		    unsigned int flags);
+int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type);
+
 int bpf_obj_pin(int fd, const char *pathname);
 int bpf_obj_get(const char *pathname);