aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/main.h
diff options
context:
space:
mode:
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>2017-11-08 13:55:47 +0900
committerDavid S. Miller <davem@davemloft.net>2017-11-11 12:34:42 +0900
commit1852719658c0f853b5481c9eaed862f1a9355edc (patch)
tree2e80c8518feee8cc5b5e277239b5b1e30b4f1b43 /tools/bpf/bpftool/main.h
parentMerge branch 'BPF-directed-error-injection' (diff)
downloadlinux-dev-1852719658c0f853b5481c9eaed862f1a9355edc.tar.xz
linux-dev-1852719658c0f853b5481c9eaed862f1a9355edc.zip
tools: bpftool: open pinned object without type check
This was needed for opening any file in bpf-fs without knowing its object type Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--tools/bpf/bpftool/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/main.h b/tools/bpf/bpftool/main.h
index ff5ad05b137b..2ff2a361af0d 100644
--- a/tools/bpf/bpftool/main.h
+++ b/tools/bpf/bpftool/main.h
@@ -89,6 +89,7 @@ int cmd_select(const struct cmd *cmds, int argc, char **argv,
int get_fd_type(int fd);
const char *get_fd_type_name(enum bpf_obj_type type);
char *get_fdinfo(int fd, const char *key);
+int open_obj_pinned(char *path);
int open_obj_pinned_any(char *path, enum bpf_obj_type exp_type);
int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(__u32));