commit | b00b8daec828dd59af7d1f7a42acd6e5867f80c6 | [log] [tgz] |
---|---|---|
author | Martin KaFai Lau <kafai@fb.com> | Wed Apr 18 15:56:00 2018 -0700 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu Apr 19 21:46:25 2018 +0200 |
tree | 7b66e5f4fb01c891dcb0c62b2e7239efd912d66c | |
parent | 179cde8cef7e88fc7c0f00c3f23482720d8c4a21 [diff] |
bpf: btf: Add pretty print capability for data with BTF type info This patch adds pretty print capability for data with BTF type info. The current usage is to allow pretty print for a BPF map. The next few patches will allow a read() on a pinned map with BTF type info for its key and value. This patch uses the seq_printf() infra. Signed-off-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Alexei Starovoitov <ast@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>