@@ -19,7 +19,7 @@ SYNOPSIS
BTF COMMANDS
=============
-| **bpftool** **btf dump** *BTF_SRC*
+| **bpftool** **btf dump** *BTF_SRC* [**c**]
| **bpftool** **btf help**
|
| *BTF_SRC* := { **id** *BTF_ID* | **prog** *PROG* | **map** *MAP* [{**key** | **value** | **kv** | **all**}] | **file** *FILE* }
@@ -49,6 +49,9 @@ DESCRIPTION
.BTF section with well-defined BTF binary format data,
typically produced by clang or pahole.
+ If **c** option is specified, BTF contents will be output in
+ compilable C syntax.
+
**bpftool btf help**
Print short help message.
Document optional **c** option for btf dump subcommand. Signed-off-by: Andrii Nakryiko <andriin@fb.com> --- tools/bpf/bpftool/Documentation/bpftool-btf.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)