diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-12-28 05:39:10 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2017-12-31 18:12:23 +0300 |
commit | 522622104ebabbc3372d2fad706b4d30cee13319 (patch) | |
tree | 3be32b64c434196ddab3ab47693552aa1eaf7834 /tools/bpf/bpftool/main.h | |
parent | 675fc275a3a2d905535207237402c6d8dcb5fa4b (diff) | |
download | linux-522622104ebabbc3372d2fad706b4d30cee13319.tar.xz |
tools: bpftool: report device information for offloaded programs
Print the just-exposed device information about device to which
program is bound.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf/bpftool/main.h')
-rw-r--r-- | tools/bpf/bpftool/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/main.h b/tools/bpf/bpftool/main.h index 8f6d3cac0347..65b526fe6e7e 100644 --- a/tools/bpf/bpftool/main.h +++ b/tools/bpf/bpftool/main.h @@ -96,6 +96,8 @@ struct pinned_obj { int build_pinned_obj_table(struct pinned_obj_table *table, enum bpf_obj_type type); void delete_pinned_obj_table(struct pinned_obj_table *tab); +void print_dev_plain(__u32 ifindex, __u64 ns_dev, __u64 ns_inode); +void print_dev_json(__u32 ifindex, __u64 ns_dev, __u64 ns_inode); struct cmd { const char *cmd; |