bpf: add sample usages for persistent maps/progs
[firefly-linux-kernel-4.4.55.git] / samples / bpf / libbpf.h
index b7f63c70b4a2c5113d2e1cb7a14d912cc4ec0cac..014aacf916e4063c28227da658e38e7c011c8c46 100644 (file)
@@ -15,6 +15,9 @@ int bpf_prog_load(enum bpf_prog_type prog_type,
                  const struct bpf_insn *insns, int insn_len,
                  const char *license, int kern_version);
 
+int bpf_obj_pin(int fd, const char *pathname);
+int bpf_obj_get(const char *pathname);
+
 #define LOG_BUF_SIZE 65536
 extern char bpf_log_buf[LOG_BUF_SIZE];