Search notes:

pahole

pahole [OPTION…] FILE
-a --anon_include include anonymous classes
-A --nested_anon_include include nested (inside other structs) anonymous classes
--btf_base =PATH Path to the base BTF file
--btf_encode_force Ignore those symbols found invalid when encoding BTF.
-B --bit_holes =NR_HOLES Show only structs at least NR_HOLES bit holes
-c --cacheline_size =SIZE set cacheline size to SIZE
--classes_as_structs Use struct when printing classes
--count =COUNT Print only COUNT input records
-C --class_name =CLASS_NAME Show just this class
-d --recursive recursive mode, affects several other flags
-D --decl_exclude =PREFIX exclude classes declared in files with PREFIX
-E --expand_types expand class members
-f --find_pointers_to =CLASS_NAME Find pointers to CLASS_NAME
--first_obj_only Only process the first object file in the binary
--fixup_silly_bitfields Fix silly bitfields such as int foo:32
--flat_arrays Flat arrays
-F --format_path =FORMAT_LIST List of debugging formats to try
--header_type =TYPE File header type
--hex Print offsets and sizes in hexadecimal
-H --holes =NR_HOLES show only structs with at least NR_HOLES holes
-i --contains =CLASS_NAME Show classes that contains CLASS_NAME
-I --show_decl_info Show the file and line number where the tags were defined
-J --btf_encode Encode as BTF
-l --show_first_biggest_size_base_type_member show first biggest size base_type member
-m --nr_methods show number of methods
-M --show_only_data_members show only the members that use space in the class layout
-n --nr_members show number of members
--numeric_version Print a numeric version, i.e. 119 instead of v1.19
-N --class_name_len show size of classes
-p --expand_pointers expand class pointer members
--packed Show just packed structs
-P --packable show only structs that has holes that can be packed
-q --quiet be quieter
--range =STRUCT Data struct with offset and size fields to determine --seek_bytes and --size_bytes
-r --rel_offset show relative offsets of members in inner structs
-R --reorganize reorg struct trying to kill holes
--seek_bytes =BYTES Seek COUNT input records
--show_private_classes Show classes that are defined inside other classes or in functions
--size_bytes =BYTES Read only this number of bytes from this point onwards
--skip =COUNT Skip COUNT input records
-s --sizes show size of classes
--skip_encoding_btf_vars Do not encode VARs in BTF.
--structs Show just structs
--suppress_aligned_attribute Suppress __attribute__((aligned(N))
--suppress_force_paddings Suppress int :N paddings at the end
--suppress_packed Suppress output of inferred __attribute__((__packed__))
-S --show_reorg_steps show the struct layout at each reorganization step
-t --separator =SEP use SEP as the field separator
-T --nr_definitions show how many times struct was defined
-u --defined_in show CUs where CLASS_NAME (-C) is defined
--unions Show just unions
-V --verbose verbose
-w --word_size =WORD_SIZE change the arch word size to WORD_SIZE
-x --exclude =PREFIX exclude PREFIXed classes
-X --cu_exclude =PREFIX exclude PREFIXed compilation units
-y --prefix_filter =PREFIX include PREFIXed classes
-z --hole_size_ge =HOLE_SIZE show only structs with at least one hole greater or equal to HOLE_SIZE
-Z --ctf_encode Encode as CTF
-? --help Give this help list
--usage Give a short usage message
--version Print program version

See also

Using pahole for Linux sources
DWARF

Index