summaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2025-01-03 23:45:33 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2025-01-10 19:25:25 +0300
commitab4439981f8549b013f4ea0b274b7c77c88ab4bc (patch)
tree6431dacc19ca8f56ad024dbc019af20cd86c1a9e /scripts/bpf_doc.py
parentd2ffdc1c9a0ee71b30e25fbe3e2a37bf4c146085 (diff)
downloadlinux-ab4439981f8549b013f4ea0b274b7c77c88ab4bc.tar.xz
gendwarfksyms: Add symtypes output
Add support for producing genksyms-style symtypes files. Process die_map to find the longest expansions for each type, and use symtypes references in type definitions. The basic file format is similar to genksyms, with two notable exceptions: 1. Type names with spaces (common with Rust) in references are wrapped in single quotes. E.g.: s#'core::result::Result<u8, core::num::error::ParseIntError>' 2. The actual type definition is the simple parsed DWARF format we output with --dump-dies, not the preprocessed C-style format genksyms produces. Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Petr Pavlu <petr.pavlu@suse.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions