diff options
Diffstat (limited to 'tools/bpf/bpftool/main.h')
-rw-r--r-- | tools/bpf/bpftool/main.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/main.h b/tools/bpf/bpftool/main.h index bff330b49791..b8e9584d6246 100644 --- a/tools/bpf/bpftool/main.h +++ b/tools/bpf/bpftool/main.h | |||
@@ -96,6 +96,8 @@ struct pinned_obj { | |||
96 | int build_pinned_obj_table(struct pinned_obj_table *table, | 96 | int build_pinned_obj_table(struct pinned_obj_table *table, |
97 | enum bpf_obj_type type); | 97 | enum bpf_obj_type type); |
98 | void delete_pinned_obj_table(struct pinned_obj_table *tab); | 98 | void delete_pinned_obj_table(struct pinned_obj_table *tab); |
99 | void print_dev_plain(__u32 ifindex, __u64 ns_dev, __u64 ns_inode); | ||
100 | void print_dev_json(__u32 ifindex, __u64 ns_dev, __u64 ns_inode); | ||
99 | 101 | ||
100 | struct cmd { | 102 | struct cmd { |
101 | const char *cmd; | 103 | const char *cmd; |
@@ -111,13 +113,18 @@ char *get_fdinfo(int fd, const char *key); | |||
111 | int open_obj_pinned(char *path); | 113 | int open_obj_pinned(char *path); |
112 | int open_obj_pinned_any(char *path, enum bpf_obj_type exp_type); | 114 | int open_obj_pinned_any(char *path, enum bpf_obj_type exp_type); |
113 | int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(__u32)); | 115 | int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(__u32)); |
116 | int do_pin_fd(int fd, const char *name); | ||
114 | 117 | ||
115 | int do_prog(int argc, char **arg); | 118 | int do_prog(int argc, char **arg); |
116 | int do_map(int argc, char **arg); | 119 | int do_map(int argc, char **arg); |
120 | int do_cgroup(int argc, char **arg); | ||
117 | 121 | ||
118 | int prog_parse_fd(int *argc, char ***argv); | 122 | int prog_parse_fd(int *argc, char ***argv); |
119 | 123 | ||
120 | void disasm_print_insn(unsigned char *image, ssize_t len, int opcodes); | 124 | void disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, |
125 | const char *arch); | ||
121 | void print_hex_data_json(uint8_t *data, size_t len); | 126 | void print_hex_data_json(uint8_t *data, size_t len); |
122 | 127 | ||
128 | const char *ifindex_to_bfd_name_ns(__u32 ifindex, __u64 ns_dev, __u64 ns_ino); | ||
129 | |||
123 | #endif | 130 | #endif |