diff options
Diffstat (limited to 'tools/bpf/bpftool/main.h')
-rw-r--r-- | tools/bpf/bpftool/main.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/main.h b/tools/bpf/bpftool/main.h index b8e9584d6246..6173cd997e7a 100644 --- a/tools/bpf/bpftool/main.h +++ b/tools/bpf/bpftool/main.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2017 Netronome Systems, Inc. | 2 | * Copyright (C) 2017-2018 Netronome Systems, Inc. |
3 | * | 3 | * |
4 | * This software is dual licensed under the GNU General License Version 2, | 4 | * This software is dual licensed under the GNU General License Version 2, |
5 | * June 1991 as shown in the file COPYING in the top-level directory of this | 5 | * June 1991 as shown in the file COPYING in the top-level directory of this |
@@ -117,14 +117,19 @@ int do_pin_fd(int fd, const char *name); | |||
117 | 117 | ||
118 | int do_prog(int argc, char **arg); | 118 | int do_prog(int argc, char **arg); |
119 | int do_map(int argc, char **arg); | 119 | int do_map(int argc, char **arg); |
120 | int do_event_pipe(int argc, char **argv); | ||
120 | int do_cgroup(int argc, char **arg); | 121 | int do_cgroup(int argc, char **arg); |
121 | 122 | ||
122 | int prog_parse_fd(int *argc, char ***argv); | 123 | int prog_parse_fd(int *argc, char ***argv); |
124 | int map_parse_fd_and_info(int *argc, char ***argv, void *info, __u32 *info_len); | ||
123 | 125 | ||
124 | void disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, | 126 | void disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, |
125 | const char *arch); | 127 | const char *arch); |
128 | void print_data_json(uint8_t *data, size_t len); | ||
126 | void print_hex_data_json(uint8_t *data, size_t len); | 129 | void print_hex_data_json(uint8_t *data, size_t len); |
127 | 130 | ||
131 | unsigned int get_page_size(void); | ||
132 | unsigned int get_possible_cpus(void); | ||
128 | const char *ifindex_to_bfd_name_ns(__u32 ifindex, __u64 ns_dev, __u64 ns_ino); | 133 | const char *ifindex_to_bfd_name_ns(__u32 ifindex, __u64 ns_dev, __u64 ns_ino); |
129 | 134 | ||
130 | #endif | 135 | #endif |