Debian Codegraph @

NEWS

raw
1 v1.31
2
3 f33ac6dcd804a1a1 btf_encoder: Move ambiguous_addr flag to elf_function
4 09c1e9c924da02dc btf_encoder: Group all function ELF syms by function name
5 fe6738f4b46b63dc btf_encoder: Fix elf_functions cleanup on error
6 053d514e0110661b gitignore: Ignore all the test kmod build-related files
7 9e9d8613fb2e1677 tests: Add some tests validating skipped functions due to uncertain arg location
8 4a1f0c99df26e0aa btf_encoder: Skip functions consuming packed structs passed by value on stack
9 6b78b72e327b7224 pahole: Do not return an error when printing only a specific class
10 97bf0a0b0572ec02 pahole: Don't fail when encoding BTF on an object with no DWARF info
11 e323455cd9c8235e github CI: Add comparison of generated BTF functions between baseline, change
12 8ba4389303decc57 github CI: Do not build pahole as part of dwarves-ci setup
13 48512c10d2824d77 btf_loader: Fix smallest offset in case of bitfields
14 34462a4ef9d0e1f9 btf_loader: Infer alignment for zero-length arrays
15 0612877facbfc506 CMakeLists.txt: Remove custom `LIB_INSTALL_DIR` handling
16 981db527a9d83992 Fix pahole segfault with --show_reorg_steps option
17 042d73962d35fdd1 pahole: Sync with libbpf mainline
18
19 v1.30
20
21 06350d14776a77e1 dwarves: Fix clang warning about unused variable
22 d0511b0cb24ef3f4 dwarves: Add github actions to build, test
23 b4a071d99bb9e7c0 pahole: When trying to encode BTF avoid DWARF less files
24 59f5409f1357dee7 dwarf_loader: Fix termination on BTF encoding error
25 785b9457b2fd2864 pahole: Add a BTF feature check function
26 d13f825dbed9208c man-pages: Describe attributes and remove reproducible_build
27 40e82f5be9a7960a pahole: Introduce --btf_feature=attributes
28 e64fd0dd22bf5395 btf_encoder: Emit type tags for bpf_arena pointers
29 fe2dcd28ba9d3487 pahole: Sync with libbpf mainline
30 9cabda4ae6bfadcc btf_encoder: Use __weak declarations of version-dependent libbpf API
31 c5677178c8b0c426 btf_encoder: Refactor btf_encoder__tag_kfuncs()
32 cfdce160433adad4 btf_encoder: Filter out __gendwarfksyms_ptr_
33 a0be596ae76c720d Fix spelling error.
34 9810758003ce9f8c btf_encoder: Verify 0 address DWARF variables are in ELF section
35 f4b76280f81bde0b btf_encoder: Fix memory access bugs
36
37 v1.29
38
39 7f9c031edfc6d2f6 btf_encoder: Always initialize func_state to 0
40 24c655f17e875492 btf_encoder: Switch func_states from a list to an array
41 e3545ca63e50c309 btf_encoder: Clean up global encoders list
42 4c916259c3e7fd3e dwarf_loader: Multithreading with a job/worker model
43 17c757110e5ff2f1 dwarf_loader: Introduce cu->id
44 419e37941c470d1f btf_encoder: Remove skip_encoding_inconsistent_proto
45 99e78ff34f8171f9 btf_encoder: Introduce elf_functions_list
46 61f37edc7d860191 btf_encoder: Introduce elf_functions struct type
47 184dcaa47cd40444 btf_encoder: Separate ELF function, saved function representations
48 13ae534068b9f518 btf_encoder: Free encoder->secinfo in btf_encoder__delete()
49 80e501122a180e45 btf_encoder: Simplify function encoding
50 bc3e337e5b379935 pfunct: Don't print functions twice when using -f
51 176864dfe42f9f85 tests: Verify that pfunct prints btf_decl_tags read from BTF
52 e703e6ebe92c976a btf_loader: Support for multiple BTF_DECL_TAGs pointing to same tag
53 8067a85bf88af925 dwarves: Increase cu->obstack chunk size to 128Kb
54
55 v1.28
56
57 3ddadc131586d6f3 btf_encoder: handle .BTF_ids section endianness
58 12ca11281912c272 CMakeLists.txt: Require cmake 3.5 or higher
59 a2abd948216237de CMakeList.txt: Respect CMAKE_INSTALL_LIBDIR
60 98d1f018a8fc3fc3 tests default_vmlinux_btf: Cover the no args segfault too
61 031495f8a4b193bf tests default_vmlinux_btf: Introduce test for using BTF by default
62 9374bf455e5dcfab core, libctf: Check if constructor arguments are NULL before using them
63 e843385b66522ecb pahole: Honour exclusive BTF loading
64 ce69ca108201836d core: Add method to get the vmlinux BTF filename, allow overriding it via env var
65 65b7fd68ccbb4990 dwarf_loader: Use libdw__lock for dwarf_getlocation(s)
66 da2f7e56e7a69063 dwarf_loader: Check DW_OP_[GNU_]entry_value for possible parameter matching
67 6b4d0e4fab8c66cf pahole: Sync with released libbpf-1.5
68 729fd9963df576a0 pahole: Distilled_base btf_feature should be reported for libbpf > 1.5
69 58ba3891baf6285c tests/flexible_arrays: Print flex array struct from same vmlinux
70 b77d88003eb53fa1 btf_encoder: Use the ELF_C_READ_MMAP mode with elf_begin()
71 11b59c00770dbe26 tests/btf_functions: Redirect stderr for pfunct --format_path=btf
72 0ee47254eae5ae26 btf_loader: Send warnings to stderr
73 e91433cb3bb5bf58 tests: Use PAHOLE_LANG_EXCLUDE=rust to skip Rust CUs
74 97f2f7ba05508273 pfunct: Use languages__init() to honour PAHOLE_LANG_EXCLUDE
75 cbb1149c4eaf01b1 languages: Introduce languages__cu_filtered() from pahole's cu__filter()
76 fa7458521b6e421f languages: Use PAHOLE_LANG_EXCLUDE env var if present, as a fallback
77 1f25386486e4d7b5 languages: Introduce language__init()
78 8fc09fd3315ce934 core: Adopt the languages__parse(), languages__in() and 'struct languages' from pahole
79 b9a0283d24fe31c5 languages: Start making 'struct languages' a class
80 d9c3609d5eac98cd pahole: Add the tool name to languages_parse()
81 34269334c76fb690 dwarf_loader: Print the CU's language when a tag isn't supported
82 fb539071a5731788 tests: Exclude rust CUs when encoding BTF
83 4c6a4d39eb0e6489 btf_encoder: Filter var names before btf name check
84 6096a8dcdd744000 core: Add the debuginfod client cache directory to the vmlinux search path
85 91bcd1d43e23e956 tests: Add a test for the accounting of flexible arrays
86 6ab5318f536927cb fprintf: Show statistics about members with flexible arrays
87 b1a4297aefe6f767 fprintf: Differentiate embedded flexible arrays from flexible arrays
88 446c28d118b97380 pahole: Introduce --with_embedded_flexible_array
89 9b838b824e6b4153 fprintf: Add a comment if a member type has an embedded flexible array
90 5485b3cf799cfca2 core: Introduce class__has_embedded_flexible_array()
91 0d62f2fdf3faf625 core: Cache info about flexible arrays in class__has_flexible_array()
92 86c2461c7505f669 core: Move class__has_flexible_array() from pahole to the core
93 d580a45c694b158a pahole: Add global_var BTF feature
94 ff34e733a0c23bf4 btf_encoder: Allow encoding VARs from many sections
95 5b5238c0aaff1dfd btf_encoder: Explicitly check addr/size for u32 overflow
96 47dcb534e25313b2 btf_encoder: Stop indexing symbols for VARs
97 4536d74db7ad5378 btf_encoder: Use bitfield to control var encoding
98 d08775c932525c76 tests/btf_functions: reduce verbosity of test
99 876f9c6fad88007f tests/reproducible_build: Fix vmlinux finding logic
100 2b3595765dfd2837 tests reproducible_build.sh: Try first to find a vmlinux using pahole --running_kernel_vmlinux
101 3a29b13291b1516a pahole: Show the CUs that are filtered via --lang_exclude when in verbose mode:
102 19460635885cf32c core: Add a id -> string for DWARF language codes
103 b98565e7b17ec24d dwarf_loader: Honour --lang_exclude when merging LTO built CUs
104 7a2b5008d9713334 core: Constify cu->name
105 6a275a088f90cba8 btf_encoder: Cache all ELF section info
106 1c5f0f53f1d094a5 dwarf_loader: Add "artificial" and "top_level" variable flags
107 ef01f78f693a4b3e dutil: Return ELF section name when looked up by index
108 135b37a04ce5a440 tests: Distinguish between failed/skipped tests
109 57e485cf1cac88a9 tests/reproducible_build: Return 2 (skipped) if no vmlinux available
110 5ea9d3fbccb2b185 tests/btf_functions: Return 2 to indicate test had to be skipped
111 8344141695722f5f tests/reproducible_builds: Support envvar-specified vmlinux
112 c06310c689fe842a pahole: Generate "bpf_fastcall" decl tags for eligible kfuncs
113 dafd8e085f31d05b tests: Improve btf_functions.sh by reducing greps/pipes
114 4d3e050c1871e98d btf_encoder: Fix strncpy issues, other issues identified in code review
115 0a3b73d6a5fc3c64 pahole: Add --padding N to show only structs with N bytes of padding at its end
116 dfc38c09ce4f94bf pahole: Add --padding_ge N to show only structs with at least N bytes of padding at its end
117 b56cf57f25daf880 tests: Add test validating BTF encoding, reasons we skip functions
118 6b199c39c9320fc2 pfunct: Show all functions that match filter criteria
119 4bff1141bb48ae58 btf_encoder: Record BTF-centric function state instead of DWARF-centric
120 84ab4532efe4e263 dwarf_loader: Fix memleaks in creating cus
121 a4f5f07ea0f3ba92 pahole: Sync with latest in-progress libbpf-1.5
122 fd14dc67cb6aaead tests prettify_perf.data: Add regression test for 'pahole --prettify'
123 2282d7df4d99cfdd tests: Add script to enumerate and run regression tests in the tests/ dir
124 ba38e1567bc43f7a tests reproducible_build: Try to find the running kernel vmlinux if ran without args
125 ea1865cf7a109806 pahole: Add option to obtain a vmlinux matching the running kernel
126 c08046f98a3f8488 core: Add function to return the path to the running kernel vmlinux
127 1dfd141fafd40d63 pfunct: Print DW_AT_external=1 functions once
128 e3fda2668a8cebf0 pahole: Reduce memory usage by smarter deleting of CUs
129 c7b1f6a29ba15a5d btf_encoder: Add "distilled_base" BTF feature to split BTF generation
130 b6def578aa4a631f pahole: Sync with libbpf-1.5
131 d744d859768d6951 pahole: Do --lang_exclude CU filtering earlier
132 81661fa60f83c7f1 dwarf_loader: Allow filtering CUs early in loading
133 52ac9a728dc1c575 pahole: Only warn about multithreading not being available with older versions of elfutils in verbose mode
134 97de8fb828c198cd dwarf_loader: Simplify the tag__alloc() routine
135 bc50242950bb8975 dwarf_loader: Do just one alloc for 'struct dwarf_tag + struct tag'
136 799cbfb7d8297b84 dwarf_loader: All tags loaded from DWARF must be accompanied by a 'struct dwarf_tag'
137 cb3ce1212903aca2 core: Cloning classes should use the CU specific allocator
138 c2f89dab3f2b0ebb core: Introduce per tag alloc method
139 e42b8738a5063696 dwarf_loader: Provide a tag__free() callback
140 d349997698d7698c core: Introduce per-type tag free callback
141 6dfb51cb87c9474c core: Make destructors receive the 'struct cu' their object may have been allocated from
142 ce3540e995605d80 dwarf_loader: Things allocated with tag__alloc() must be freed with tag__free()
143 ca764e65ffbc74ca dwarf_loader: Memory allocated with cu__zalloc() should be freed with cu__free()
144 3ef508ad94012933 dwarf_loader: Make 'struct dwarf_tag' more compact by getting rid of 'struct dwarf_off_ref'
145 70febc8858588348 core: Reorganize 'struct class_member' to save 8 bytes
146 76bcb88a67556468 core: Make tag->recursivity_level a uint8_t
147 b8b9e04d177d8eb7 core: Make tag->top_level a single bit flag
148 539acefcdd5b0f71 core: Make tag->has_btf_type_tag a single bit flag
149 dba2c2c1aa5dfa05 core: Make tag->visited a single bit flag
150 7409cfadcae0253b core: Shrink 'struct namespace' a bit by using a hole in its embedded 'tag'
151 01646d9df0ca40e2 core: Add namespace__shared_tags() method
152 811a5499b11bd5fa core: type->suffix_disambiguation can be part of a bitfield
153 39a28ea592075f0e btf_encoder: Log libbpf errors when they cause encoding errors
154 15f4a8363dfcb7d4 core: 'struct namespaces'->nr_tags isn't used, ditch it
155 638c000bd64456d6 dwarf_loader: Replace the dtag specific method with tag__set_spec()
156 7aae38999c2ce548 dwarf_loader: Ditch dwarf_tag__spec() as we have dtag->specification
157 c0a78bcfd628302b dwarf_loader: Remove 'struct dwarf_tag' variable size
158 0364eb68d3802d4c core: Add accessor to the tag associated with a dwarf_tag
159 745db05e36546d9a core: Add accessor to the dwarf_tag associated with a tag
160 7c59cbdf149a1b45 fprintf: Fix identation in closing } on namespace fprintf
161 fbf77d8d44e507a2 pdwtags: Print namespaces and its contents
162 2a5ea3e4e5e0606f core: Add namespace iterator
163 5563b1c0e31c7e29 dwarf_loader: Add support for DW_TAG_GNU_formal_parameter_pack
164 1ecb5bd1a60a85e6 dwarf_loader: Add support for DW_TAG_GNU_template_parameter_pack
165 f524f2ed5873e664 dwarf_loader: Make cu__tag_not_handled() generally available
166 3b637ea23ee81872 dwarf_loader: Initial support for DW_TAG_template_value_param tag
167 ab31cd26d44e3619 dwarf_loader: Initial support for DW_TAG_template_type_param tag on DW_TAG_subprogram
168 8a1e0238ee4005a6 dwarf_loader: Initial support for DW_TAG_template_type_param tag
169 24009d1fa48ce381 dwarf_loader: Hash DW_TAG_enumerator entries
170 693522ee3a947d73 core: Ignore DW_TAG_inheritance with byte_size zero when finding holes
171 43f9515d82114987 dwarf_loader: Print the DWARF offset in tag__print_unsupported_tag()
172 e82a0fdcfb8ea0ce dwarf_loader: Simplify tag__print_not_supported()
173 f7e3f0942fedb945 pahole: Bail out when not finding debug anywhere
174 94a01bde592c555b dwarf_loader: Add missing cus__add(cus, cu) to cus__merge_and_process_cu()
175 6a2b27c0f512619b core: Initialize cu->node with INIT_LIST_HEAD()
176 0ce7745fa46da0ff PKG-MAINTAINERS: Add maintainer for nixpkgs package
177
178 v1.27
179
180 Tue Jun 11 2024
181
182 f62409e1190c2cb4 dwarf_loader: Show the DIE offset when finding unexpected tag in die__process()
183 a9ae414fef421bde btf_loader: Initial support for BTF_KIND_DECL_TAG
184 d08776019ef6a561 pfunct: Disable collecting fn_stats when processing BTF
185 72e88f29c6f7e142 pahole: Inject kfunc decl tags into BTF
186 ce4d0bc0200e322b pahole: Add --btf_feature=decl_tag_kfuncs feature
187 e3b1c322503269d3 pahole: Save input filename separate from output
188 d5847615d0a5c082 pahole: Describe expected use of 'default' in the man page
189 912a8e3f3d19fa76 btf_encoder: Fix DWARF int type with greater-than-16 byte issue
190 a1f684fa018ddbfa pahole: Allow asking for extra features using the '+' prefix in --btf_features
191 31c6ec74952898a6 pahole: Factor out routine to process "--btf_features=default"
192 2046cc50578beb44 gobuffer: Add gobuffer__sort() helper
193 9aba4c9220eebf81 tests: update reproducible_build test to use "default"
194 0a9eceb3e5453aee pahole: Replace use of "all" with "default" for --btf_features
195 2a6b7ec7ce981c3d tests/reproducible_build: use --btf_features=all,reproducible_build
196 43bd3efa85656565 pahole: Add reproducible_build to --btf_features
197 e78c82db744eab77 pahole: Allow --btf_features to not participate in "all"
198 a9738ddc828d5ea0 tests/reproducible_build: Use --btf_features=all when encoding
199 d7edf9ae0388fb97 tests/reproducible_build: Validate the vmlinux file
200 c933676ce2780325 tests: Add a BTF reproducible generation test
201 dba7b5e847529cde pahole: Encode BTF serially in a reproducible build
202 edc23a0dae4f8996 core/dwarf_loader: Add functions to set state of CU processing
203 f632e757f7ba3f21 dwarf_loader: Add the cu to the cus list early, remove on LSK_DELETE
204 7ddb9cfb91cd3d65 core: Add cus__remove(), counterpart of cus__add()
205 6fa064b96853897c core: Add unlocked cus__add() variant
206 a7dee0e323ac5eef dwarf_loader: Remove unused 'thr_data' arg from dwarf_cus__create_and_process_cu()
207 620d419a430f8fd8 dwarf_loader: Create the cu/dcu pair in dwarf_cus__nextcu()
208 941cd9a15d09dd3c dwarf_loader: Introduce dwarf_cus__process_cu()
209 7a2509e7ea639014 dwarf_loader: Separate creating the cu/dcu pair from processing it
210 2d633d93cd4faf19 pahole: Disable BTF multithreaded encoded when doing reproducible builds
211 d6e05fd33cb9dc52 core: Allow asking for a reproducible build
212 4faf35b97c3427d1 fprintf: Remove bogus deduction of negative hole from size of previous field
213 47e83035c12c153b core: The padding in ancestor classes may be used in descendants
214 9442420a8c204460 fprintf: Update 'last' variable for DW_TAG_inheritance as well
215 c52e4b7af88da5ab fprintf: Update the 'last' member when not finding the type for the current member
216 1ecde473f9a07ac8 fprintf: Don't ignore DW_TAG_inheritance in the sum of members check
217 f32ec0c79f3e8065 btf_encoder: Dynamically allocate the vars array for percpu variables
218 554c5e6a2736e0b6 PKG-MAINTAINERS: Add file with known pahole distro package maintainers
219
220 v1.26
221
222 Tue Feb 27 2024
223
224 ba8f6eb0b6b67c6e NEWS: Add missing list of changes for v1.25
225 90201c2bde4b0ca8 prefcnt: cus__load_files() requires a non NULL conf_load
226 f86ed770b5396cd5 dtagnames: cus__load_files() requires a non NULL conf_load
227 b2e0f084eca03613 syscse: cus__load_files() requires a non NULL conf_load
228 461f61ebaf8f3108 dwarf_loader: Print the line number in addition to the function when not finding the abstract origin
229 6e665da56c78d436 pahole: Wait to find a DWARF CU with both the class and the type_enum
230 be638365781ed0c8 pahole: Improve error message when not resolving symbolic names in filters
231 e18ef2fed1b1a2c5 pahole: Implement --contains_enumerator=ENUMERATOR_NAME
232 7146ad04b72b08a5 pahole: Do not use -1 to mean that a enumerator wasn't found in an enumeration
233 97dce38eae062cf9 core: Introduce cu__for_each_enumeration()
234 786ed0aa2ff5fe67 btfdiff: Do type expansion to cover "private" types and enumerations
235 9661c589cae83c6b btf_loader: Fix loading of 32-bit signed enums
236 a25293a66b737263 btfdiff: Parallelize loading BTF and DWARF
237 e52cf114039af8f3 fprintf: When expanding types do it for union typedefs as well
238 d05d4f528d08da06 fprintf: Factor out the fprintf of a union declaration, for reuse
239 f97c080d4aac4f8f fprintf: When expanding types do it for struct typedefs as well
240 eb4f49bca27fcca2 fprintf: Add missing space after expanding a structure for a struct member
241 0064b74c5ef0f358 fprintf: When expanding types do it for enums as well
242 1fd08c0f0021e7fb fprintf: Print number of bit paddings in class member types
243 4fa81a30b9ca3b78 fprintf: Print number of bit holes in class member types
244 85bdd96404efca19 fprintf: Print number of holes in class member types
245 08fc8e3285733ec8 fprintf: Introduce method to print info about type of last member
246 bd8d0536b4352b5d fprintf: Introduce struct to account holes in class member types
247 fdd815151054d840 pahole: Make sure the features string is NUL terminated
248 884c43ea82a154ce CMakeList.txt: Bump version to the upcoming 1.26 release, not out of the door yet
249 c129fa7579483bba pahole: Add --btf_features_strict to reject unknown BTF features
250 74a238a4368223c9 pahole: Add --supported_btf_features
251 7bc9b9975545ab53 pahole: Add --btf_features support
252 79e9df515e4d3e89 dwarves: Move ARRAY_SIZE() to dwarves.h
253 f5c6c1365e7bb3dc btf_encoder, pahole: Move BTF encoding options into 'struct conf_load'
254 37e3bf08e0314efa pahole: Don't keep structs in multiple RB trees
255 d65499a8605c224b README: Remove old comments about ancient distros and add 'git submodule' instruction
256 0a1944b19569c4f9 spec: Migrate license to a SPDX standardized one
257 31bc0d7410572f6e dwarf_loader: DW_TAG_subroutine_type may have a DW_AT_byte_size
258 bfa033b07f50a202 pdwtags: Print DW_TAG_constant tags
259 afca84ff989d9729 fprintf: Add DW_TAG_constant pretty printer (constant__fprintf)
260 cb7eb753694be3e8 dwarf_loader: Add support for DW_TAG_constant
261
262 v1.25
263
264 Thu Apr 13 2023
265
266 eab23ebd2ce22b3a fprintf: Fix `*` not being printed for pointers with btf_type_tag
267 c969e4969ccd2e7c btf_loader: A hack for BTF import of btf_type_tag attributes
268 40ebd8b9e3312d0a fprintf: Correct names for types with btf_type_tag attribute
269 4d17096076b2351f btf_encoder: Compare functions via prototypes not parameter names
270 82730394195276ac fprintf: Support skipping modifier
271 d184aaa125ea40ff fprintf: Generalize function prototype print to support passing conf
272 a9498899109d3be1 dwarf_loader: Fix for BTF id drift caused by adding unspecified types
273 eeeab1c9e8b85fc7 fprintf: Support DW_TAG_LLVM_annotation in dwarf_tag_name()
274 4ec4b64bd501986b CMakeLists.txt: Call cmake_minimum_required() before project()
275 111dfd2cee118892 dwarf_loader: Only mark parameter as using an unexpected register when it does
276 5851040e2468ba04 dwarf_loader: Fix parameter location retrieval for location lists
277 721ca66d5be462b2 dwarf_loader: Fix detection of struct parameters
278 ef68019c357845b4 pahole: Update man page for options also
279 d58c61498ea78064 pahole: Update descriptions for btf_gen_optimized, skip_encoding_btf_inconsistent_proto
280 9b2abc1c7a16c39d btf_encoder: Exclude functions with unexpected param register use not optimizations
281 a53c58158b761f8f dwarf_loader: Mark functions that do not use expected registers for params
282 431df45378ef00f3 btfdiff: Exclude Rust CUs since those are not yet being converted to BTF on the Linux kernel
283 1231b6b9b4d88e00 dwarf_loader: Fix sorting of Rust structs
284 c4eb1897d1f3841d core: Check that we're adding DW_TAG_member sorted by byte offset
285 b53d430aeab416e7 btf_encoder: Ensure ELF function representation is fully initialized
286 a3b47e41656d21e7 CMakeList.txt: Bump version to the upcoming 1.25 release, not out of the door yet
287 f104790698ae93f9 btf_encoder: Support delaying function addition to check for function prototype inconsistencies
288 6d95d162c6c804c4 btf_encoder: Represent "."-suffixed functions (".isra.0") in BTF
289 c8e8dbcd71507618 btf_encoder: Rework btf_encoders__*() API to allow traversal of encoders
290 d381cc7458c53fdf btf_encoder: Refactor function addition into dedicated btf_encoder__add_func
291 52b25808e44a8e7f btf_encoder: Store type_id_off, unspecified type in encoder
292 75939e655a797896 dwarf_loader: Help spotting functions with optimized-out parameters
293 2b5cb9bc0e905811 pahole: Sync with libbpf-1.1
294 45c044860c2abce7 dwarf_loader: Sync with LINUX_ELFNOTE_LTO_INFO macro from kernel
295 74f21ed08e4313f0 pahole: Set libbpf debug printer in -V mode
296 bc1538dcb14bc4d9 pahole: Use type__fprintf() directly for --compile
297 51643cb290f91425 core: Introduce base_type__language_defined()
298 ba4bdc73806101dc dwarf_loader: DW_TAG_inlined_subroutine needs recoding by DW_AT_abstract_origin
299 02d67c51765dfbd5 pfunct: Use zalloc() to make the code more robust
300 cd4d2d251e9a7f98 pahole: Use zalloc() to make the code more robust
301 e5e24ada4f5578ae core: Use zalloc() to make the code more robust
302 b72f5188856df0ab dwarves: Zero-initialize struct cu in cu__new() to prevent incorrect BTF types
303 d85b86ecc1df4076 emit: Support DW_TAG_atomic_type when emitting definitions for a typedef
304 7d0bc9334d2f1143 fprintf: Support _Atomic typedefs
305 8894c04f00e4c702 fprintf: Move the "typedef " invariant printf to the start of typedef__fprintf()
306 3836623af1b5ff1f pahole: Allow skipping the emission of atomic typedefs
307 6bb5a1fa990f5bd6 emit: Allow skip emitting the atomic typedefs
308 8d2e166dd3d168d9 emit: Optionally pass a conf_fprintf struct to type_emissions__init
309 8c2b37ec71423067 emit: Emit typedefs for atomic_ prefixed base types
310 a4f3a79da8d4ed8b emit: cu__type() == NULL means "void"
311 bcc648a10cbcd0b9 btf_encoder: Encode DW_TAG_unspecified_type returning routines as void
312 cffe5e1f75e1612e core: Record if a CU has a DW_TAG_unspecified_type
313 75e0fe28bb02036d core: Add DW_TAG_unspecified_type to tag__is_tag_type() set
314 121a46a026afac19 btf_encoder: Store the CU being processed to avoid changing many functions
315 56bcfa9135312ffe fprintf: Emit "_Atomic" modifiers for DW_TAG_atomic_type
316 cf27a2b805f21356 core: Print more info on tag__assert_search_result()
317 d5012f7be79f1b81 btf_encoder: Add extra debug info for unsupported DWARF tags
318 79d9a783ea74797a pahole: Support '--lang/--lang_exclude=asm'
319 e819d737de88dc1f pahole: Add "btf" to the format-path option man page
320 f01e5f3a849558b8 dwarf_loader: Support DW_TAG_label outside DW_TAG_lexblock
321 b84120772df33f93 pahole: Allow --compile to work with DWARF in addition to with BTF
322 6fdb0140692acff0 dwarves: support DW_TAG_atomic_type
323 d7507140eab4bf9f emit: Don't mark a enum with nr_members == 0 as printed, its just a fwd decl
324 843fe9bfab4859b4 emit: Check if disambiguated struct/enum/union name was already emitted in a previous CU
325 f5857bd34b220a64 pahole: Honour --compile when -C is used
326 2bb968b567011f8a btf: Fix building with system libbpf
327 ea30d58a2329764b core: Conditionally define language encodings
328
329 v1.24
330
331 Sat Apr 8 2023
332
333 eab23ebd2ce22b3a fprintf: Fix `*` not being printed for pointers with btf_type_tag
334 c969e4969ccd2e7c btf_loader: A hack for BTF import of btf_type_tag attributes
335 40ebd8b9e3312d0a fprintf: Correct names for types with btf_type_tag attribute
336 4d17096076b2351f btf_encoder: Compare functions via prototypes not parameter names
337 82730394195276ac fprintf: Support skipping modifier
338 d184aaa125ea40ff fprintf: Generalize function prototype print to support passing conf
339 a9498899109d3be1 dwarf_loader: Fix for BTF id drift caused by adding unspecified types
340 eeeab1c9e8b85fc7 fprintf: Support DW_TAG_LLVM_annotation in dwarf_tag_name()
341 4ec4b64bd501986b CMakeLists.txt: Call cmake_minimum_required() before project()
342 111dfd2cee118892 dwarf_loader: Only mark parameter as using an unexpected register when it does
343 5851040e2468ba04 dwarf_loader: Fix parameter location retrieval for location lists
344 721ca66d5be462b2 dwarf_loader: Fix detection of struct parameters
345 ef68019c357845b4 pahole: Update man page for options also
346 d58c61498ea78064 pahole: Update descriptions for btf_gen_optimized, skip_encoding_btf_inconsistent_proto
347 9b2abc1c7a16c39d btf_encoder: Exclude functions with unexpected param register use not optimizations
348 a53c58158b761f8f dwarf_loader: Mark functions that do not use expected registers for params
349 431df45378ef00f3 btfdiff: Exclude Rust CUs since those are not yet being converted to BTF on the Linux kernel
350 1231b6b9b4d88e00 dwarf_loader: Fix sorting of Rust structs
351 c4eb1897d1f3841d core: Check that we're adding DW_TAG_member sorted by byte offset
352 b53d430aeab416e7 btf_encoder: Ensure ELF function representation is fully initialized
353 a3b47e41656d21e7 CMakeList.txt: Bump version to the upcoming 1.25 release, not out of the door yet
354 f104790698ae93f9 btf_encoder: Support delaying function addition to check for function prototype inconsistencies
355 6d95d162c6c804c4 btf_encoder: Represent "."-suffixed functions (".isra.0") in BTF
356 c8e8dbcd71507618 btf_encoder: Rework btf_encoders__*() API to allow traversal of encoders
357 d381cc7458c53fdf btf_encoder: Refactor function addition into dedicated btf_encoder__add_func
358 52b25808e44a8e7f btf_encoder: Store type_id_off, unspecified type in encoder
359 75939e655a797896 dwarf_loader: Help spotting functions with optimized-out parameters
360 2b5cb9bc0e905811 pahole: Sync with libbpf-1.1
361 45c044860c2abce7 dwarf_loader: Sync with LINUX_ELFNOTE_LTO_INFO macro from kernel
362 74f21ed08e4313f0 pahole: Set libbpf debug printer in -V mode
363 bc1538dcb14bc4d9 pahole: Use type__fprintf() directly for --compile
364 51643cb290f91425 core: Introduce base_type__language_defined()
365 ba4bdc73806101dc dwarf_loader: DW_TAG_inlined_subroutine needs recoding by DW_AT_abstract_origin
366 02d67c51765dfbd5 pfunct: Use zalloc() to make the code more robust
367 cd4d2d251e9a7f98 pahole: Use zalloc() to make the code more robust
368 e5e24ada4f5578ae core: Use zalloc() to make the code more robust
369 b72f5188856df0ab dwarves: Zero-initialize struct cu in cu__new() to prevent incorrect BTF types
370 d85b86ecc1df4076 emit: Support DW_TAG_atomic_type when emitting definitions for a typedef
371 7d0bc9334d2f1143 fprintf: Support _Atomic typedefs
372 8894c04f00e4c702 fprintf: Move the "typedef " invariant printf to the start of typedef__fprintf()
373 3836623af1b5ff1f pahole: Allow skipping the emission of atomic typedefs
374 6bb5a1fa990f5bd6 emit: Allow skip emitting the atomic typedefs
375 8d2e166dd3d168d9 emit: Optionally pass a conf_fprintf struct to type_emissions__init
376 8c2b37ec71423067 emit: Emit typedefs for atomic_ prefixed base types
377 a4f3a79da8d4ed8b emit: cu__type() == NULL means "void"
378 bcc648a10cbcd0b9 btf_encoder: Encode DW_TAG_unspecified_type returning routines as void
379 cffe5e1f75e1612e core: Record if a CU has a DW_TAG_unspecified_type
380 75e0fe28bb02036d core: Add DW_TAG_unspecified_type to tag__is_tag_type() set
381 121a46a026afac19 btf_encoder: Store the CU being processed to avoid changing many functions
382 56bcfa9135312ffe fprintf: Emit "_Atomic" modifiers for DW_TAG_atomic_type
383 cf27a2b805f21356 core: Print more info on tag__assert_search_result()
384 d5012f7be79f1b81 btf_encoder: Add extra debug info for unsupported DWARF tags
385 79d9a783ea74797a pahole: Support '--lang/--lang_exclude=asm'
386 e819d737de88dc1f pahole: Add "btf" to the format-path option man page
387 f01e5f3a849558b8 dwarf_loader: Support DW_TAG_label outside DW_TAG_lexblock
388 b84120772df33f93 pahole: Allow --compile to work with DWARF in addition to with BTF
389 6fdb0140692acff0 dwarves: support DW_TAG_atomic_type
390 d7507140eab4bf9f emit: Don't mark a enum with nr_members == 0 as printed, its just a fwd decl
391 843fe9bfab4859b4 emit: Check if disambiguated struct/enum/union name was already emitted in a previous CU
392 f5857bd34b220a64 pahole: Honour --compile when -C is used
393 2bb968b567011f8a btf: Fix building with system libbpf
394 ea30d58a2329764b core: Conditionally define language encodings
395
396 Wed Aug 17 2022
397
398 d6c952893b1bbea9 dwarf_loader: Encode char type as signed
399 23342fef5e5f6070 dwarf_loader: Fix elfutils dwfl_getmodules() error checking
400 9712d9ec929fb6b3 btf_loader: Add support to BTF_KIND_ENUM64
401 35a11221b305a520 btf: Support BTF_KIND_ENUM64
402 3aa68ba050d4ddc4 libbpf: Sync with latest libbpf repo
403 c3d6522e0499c5b0 fprintf: Fix plural/singular when printing cacheline boundary
404 384a16a011226163 btf_encoder: Normalize array index type for parallel dwarf loading case
405 d9e36dd9dd2a526a libbpf: Sync with latest libbpf repo
406 49358dfe2aaae4e9 pahole: Add --lang_exclude to allow skipping compilation units written in some languages
407 8ee363790b743728 pahole: Introduce --lang to ask for only compilation units written in some languages
408 c3f2fe2f6a81f13c core: Add string to id language lookup method
409 3d0dfe0610517ff6 pahole: Don't try encode BTF when all CUs were filtered
410 2730ef6965efd8e6 fprintf: preserve conf_fprintf pointer in tag__ptr_name
411 1bc98ed290d2c833 btf_encoder: Collect info of per-cpu variables from threads
412 31df013b70540072 dwarves: Set errno if load fails in cus__load_files()
413 f952a6f69f9508c8 pahole: Avoid segfault when parsing bogus file
414 65d7273668ded59b pahole: Introduce --compile to produce a compilable output
415 4d004e2314f3252e core: Ditch 'dwarves__active_loader' extern declaration, it was nuked
416 4f332dbfd02072e4 emit: Notice type shadowing, i.e. multiple types with the same name (enum, struct, union, etc)
417 0a82f74ce25a5904 core: Make type->packed_attributes_inferred a one bit member
418 fac821246c582299 core: type->declaration is just one bit, make it a bitfield member
419 742f04f89da03665 emit: Search for data structures using its type in addition to its name
420 32cc1481721c4b11 fprintf: Consider enumerations without members as forward declarations
421 6afc296eeb180e25 emit: Fix printing typedef of nameless struct/union
422 49a2dd657728675b fprintf: Check if conf->conf_fprintf is not NULL in when resolving cacheline_size
423 46cec35ff0411e0f fprintf: Fix division by zero for uninitialized conf_fprintf->cacheline_size field
424 73383b3a39afe86b libbpf: Update libbpf to the latest git HEAD
425 21352753186ec582 pahole: Use per-thread btf instances to avoid mutex locking
426 96d2c5c323255134 dwarf_loader: Prepare and pass per-thread data to worker threads
427 724c8fddd71be1fe dwarf_loader: Receive per-thread data on worker threads
428 2f7d61b2bfb59427 core: Define DW_TAG_skeleton_unit if not available on current dwarf.h
429
430 v1.23
431
432 Wed Dec 8 2021
433
434 54ae2f7f5e4f6328 Revert "fprintf: Allow making struct/enum/union anonymous"
435 69fb1861de35120c Revert "pahole: Add --inner_anon option"
436 005236c3e40eeb64 pahole: Add --inner_anon option
437 7c5e35b63bd26f1d fprintf: Allow making struct/enum/union anonymous
438 d99d551930cf4b4b btf_encoder: Support btf_type_tag attribute
439 3da248c3284ef905 man pages: Add missing --skip_encoding_btf_decl_tag entry
440 a58ecca0a89b142b man pages: Add missing --skip_encoding_btf_type_tag entry
441 b488c8d328845bd8 dwarf_loader: Support btf_type_tag attribute
442 a0cc68687f1281cd dutil: Move DW_TAG_LLVM_annotation definition to dutil.h
443 76401e9e46f07753 libbpf: Sync with latest libbpf repo to pick support for BTF_KIND_TYPE_TAG
444 0135ccd632796ab3 dwarf_loader: Warn about DW_TAG_skeleton_unit and give a workaround
445 433dc780ca48944b fprintf: Add DWARF5 tags added in elfutils 0.170
446 7af9ed4aed182869 dwarf_loader: Print the hexadecimal value for unexpected tags in die__process()
447 ec62499774c4bcac btf_encoder: generate BTF_KIND_DECL_TAGs for typedef btf_decl_tag attributes
448 468b4196f65458e8 dwarf_loader: support typedef DW_TAG_LLVM_annotation
449 696c62180455fd29 btf_loader: Use cacheline size to infer alignment
450 48f4086b766d2214 btf_loader: Propagate struct conf_load
451 772725a77d3323c6 dwarves_fprintf: Move cacheline_size into struct conf_fprintf
452 cdd088c05cfed082 btfdiff: Suppress alignment tags with BTF as well as with DWARF
453 836c139fdf6f2b13 btf_loader: Infer alignment info
454 4db65fe0cd02b3cc core: Export tag__natural_alignment()
455 43e8216c25ee767f fprintf: Fix __attribute__((__aligned__(N)) handling for struct members
456 c52f6421f21146ad btf: Rename btf_tag to btf_decl_tag
457 3433c67bbd158e1d manpages: Minor fixes
458 e975d0fba833d02d btf_loader: Refactor class__fixup_btf_bitfields
459 5282feee6d4d3a88 pahole: Add --skip_missing option
460 6931e393f8f6d81f fprintf: Fix nested struct printing wrt attributes
461 16a7acaba4466121 btf_encoder: Fix handling of percpu symbols on s390
462 3cde0135ca51de73 dwarf_loader: Fix heap overflow when accessing variable specification
463 a9c99e98815f06bd dwarves: Introduce conf_load->thread_exit() callback
464 cc6c7d473d518324 Update libbpf to get API to combine BTF
465 e38e89e8539b144a btf_encoder: Generate BTF_KIND_TAG from llvm annotations
466 aa8c494e65a77fa5 dwarf_loader: Parse DWARF tag DW_TAG_LLVM_annotation
467 3d20210d84f61ee2 CMakeList.txt: Don't download libbpf source when system library is used
468 38fad22d669ab044 libbpf: Get latest libbpf
469 88431099950ab3e8 CMakeList.txt: Make python optional
470
471 v1.22:
472
473 Mon Aug 23 2021
474
475 40a40df961e74aac core: Bump the chunk size for ptr_table uses in types, tags, functions tables
476 9f0809e6a8e790a1 pahole: Introduce --ptr_table_stats
477 f035871495435e58 core: Add CU stats printer
478 c59e996c97eb5569 pahole: Fix races in accessing type information in live CUs
479 c34b6c6cc96b9669 pahole: Add missing limits.h include to get ULLONG_MAX definition
480 5e8ad60d1f33bed6 CMakeList.txt: Look for obstack outside libc
481 739bc50b90694ffe cmake: Add a module to find if obstack is in a separate library
482 5244b47a883bee96 CMakeList.txt: Look for argp outside libc
483 3f70d31571d47c64 cmake: Add a module to find if argp is in a separate library
484 9f9588dc2bd8c955 fprintf: Add alternative method for reading the data cacheline size
485 71867afd666f2945 core: Include missing limits.h to get PATH_MAX definition
486 0d8d457fa325fb07 dutil: Include linux/stddef.h to build on Alpine Linux systems
487 bb02fec203463b9f README.tarball: Overcome --transform problem with symlinks
488 9fed416b380a7a17 MANIFEST: Add lib/include/bpf
489 cb1cf166769a169e spec: Remove deleted libbtf.h from the RPM file list
490 d0c3dd18c7d81cff README.tarball: Remove hardcoded version, get it from 'git tag'
491 b5140d5e6c8cade8 MANIFEST: Remove long gone strings header files
492 02fd228f6af7b04e MANIFEST: Add buildcmd.sh
493 06e41eccc2d19263 buildcmd.sh: Add single build script for use in CI
494 eba3e874add53187 pahole: Consider type members's names when comparing unions, structs
495 f61d458c9126467e pahole: Consider type members's types when comparing unions, structs
496 589a298829760a14 core: Introduce helpers for getting the first and next members of a type
497 815041d6dc4d62bf pahole: Improve the type sorting routine to consider multiple types with same name
498 93e26698693aca95 core: Remove extra ; in 'print_numeric_version' extern declaration
499 19798784d7a715d0 btf_loader: Mark the 'level' arg to the libbpf error callback as __maybe_unused
500 22763a8fc7ee5f79 btf_loader: Mark create_new_datasec() args as __maybe_unused
501 38df86db2b65dd43 dwarf_loader: cus__load_debug_types() doesn't use its 'cus' arg, remove it
502 16d646c07e98d66c dwarf_loader: Rename finalize_cu_immediately() to cus__finalize() to follow convention
503 90599e6177f20696 dwarf_loader: Remove unused 'dcu' argument from finalize_cu_immediately()
504 6fd4377a0db1e8d3 dwarf_loader: Remove unused 'dcus' argument from cu__finalize()
505 2bb04ecf79880a97 dwarf_loader: Remove unused 'cus' argument from finalize_cu()
506 9ada372a21d0abc2 dwarf_loader: Fix signed/unsigned comparision in tag__recode_dwarf_bitfield()
507 e4e9267c3a177ffa core: cus__fprintf_load_files_err() doesn't use its 'cus' argument
508 df92cb6b8e0f1577 core: Change last_seen_bit to uint32_t in class__find_holes()
509 789d8b3e1a7210d1 core: Change aligned_start to uint32_t in class__find_holes()
510 182cdcaed9055c76 core: Change cur_bitfield_end to uint32_t in class__find_holes()
511 5900f43f10844971 core: Change bit_start and bit_end to uint32_t in class__find_holes()
512 8634d8535f3fb25d btf_encoder: Fix signed/unsigned comparision
513 8d2efa2b6c147c37 btf_encoder: has_arg_names() doesn't need the 'cu' pointer
514 05f737076f81eab9 btf_encoder: btf_encoder__encode_tag() doesn't need the 'core_id' pointer
515 dc30e82b26dc98ef btf_encoder: btf_encoder__encode_tag() doesn't need the 'cu' pointer
516 4360359e434b41db btf_encoder: btf_encoder__add_struct_type() doesn't need the 'cu' pointer
517 6e1e4881a584ca54 btf_encoder: btf_encoder__add_func_proto() doesn't need the 'cu' pointer
518 9fbfcee7d9708876 btf_encoder: No need to read the ehdr in btf_encoder__write_elf(), ditch it
519 898cc490279c794b ctracer: No need to read the ehdr, ditch it
520 dee83e27dd69cb98 btf_encoder: No need to store the ehdr in the instance
521 24404190b80aa6bf elf_symtab: Remove needless GElf_Ehdr pointer argument from the constructor
522 74c2078e04755b6a dutil: elf_symtab__new() doesn't need the GElf_Ehdr *ep argument
523 23ea62817c3c9d1d pahole: Move case fallthru comment to after the statement
524 7a8e75cd9a99f618 elfcreator: elfcreator_copy_scn() doesn't need the 'elf' arg
525 3925a5bd53d68edc syscse: zero_extend() doesn't need a 'cu' arg
526 21b2933f018a954d pahole: Fix signedness of ternary expression operator
527 4e11c13895556982 ctracer: Remove a bunch of unused 'cu' pointers
528 54c1e93b8eada3db pahole: Use the 'prototypes' parameter in prototypes__load()
529 8b495918e6b52c4c codiff: class__find_pair_member() doesn't need 'cu' args
530 057be3d9936f78d9 core: class__find_member_by_name() doesn't need a cu pointer
531 ce9de90364d0fe98 core: Document type->node member usage
532 cead526d6b96e1d7 core: Fix nnr_members typo on 'struct type' comment docs
533 7cfc9be1f27876f4 man-pages: Improve the --nr_methods/-m pahole man page entry
534 3895127ce674cfb6 pahole: Clarify that currently --nr_methods doesn't work together witn -C
535 2ea46285aca0c639 pahole: No need to store the class name in 'struct structure'
536 4d8551396df5ce5a pahole: Multithreaded DWARF loading requires elfutils >= 0.178
537 e57e23c72a7c0446 btf_encoder: Add methods to maintain a list of btf encoders
538 e9b83dba79a87935 list: Adopt list_next_entry() from the Linux kernel
539 6edae3e768e6bc0d dwarf_loader: Make hash table size default to 12, faster than 15
540 d2d83be1e2124785 pahole: Allow tweaking the size of the loader hash tables
541 ff7bd7083f36db80 core: Allow sizing the loader hash table
542 3068ff36b7ff943d hash: Remove unused hash_32(), hash_ptr()
543 8eebf70d05d881cf dwarf_loader: Use a per-CU frontend cache for the latest lookup result
544 a2f1e698487b783c core: Use obstacks: take 2
545 dca86fb8c2220f9a dwarf_loader: Add comment on why we can't ignore lexblocks
546 9d0a7ee0c38ebac5 pahole: Ignore DW_TAG_label when encoding BTF
547 d40c5f1e20795938 core: Allow ignoring DW_TAG_label
548 51ba83192979916e pahole: Ignore DW_TAG_inline_expansion when encoding BTF
549 903863889131a7fa core: Allow ignoring DW_TAG_inline_expansion
550 20757745f04ace54 pahole: Allow encoding BTF with parallel DWARF loading
551 5a85d9a450819500 core: Zero out unused entries when extending ptr_table array in ptr_table__add()
552 d133569bd0f0b422 pahole: No need to read DW_AT_alignment when encoding BTF
553 21a41e5386938db1 dwarf_loader: Allow asking not to read the DW_AT_alignment attribute
554 1ef1639039b56005 dwarf_loader: Do not look for non-C DWARF attributes in C CUs
555 88265eab35666f34 core: Add cu__is_c() to check if the CU language is C
556 1caed1c443d4a0dc dwarf_loader: Add a lock around dwarf_decl_file() and dwarf_decl_line() calls
557 dd13708f2fd7557b btfdiff: Use multithreaded DWARF loading
558 f95f7838499f94c3 btfdiff: Use --sort for pretty printing from both BTF and DWARF
559 3e1c7a20770ec432 pahole: Introduce --sort
560 967290bc7176e3c2 pahole: Store the class id in 'struct structure' as well
561 2b45e1b6d04b147c dwarf_loader: Defer freeing libdw Dwfl handler
562 35845e7e41872158 core: Provide a way to store per loader info in cus and an exit function
563 5365c45177643f35 pahole: Keep class + cu in tree of structures
564 fb99cad539e58638 dwarf_loader: Parallel DWARF loading
565 75d4748861ad98cf pahole: Disable parallell BTF encoding for now
566 1c60f71daacbe4d0 pahole: Add locking for the structures list and rbtree
567 46ad8c01585df768 dwarf_loader: Introduce 'dwarf_cus' to group all the DWARF specific per-cus state
568 d963af9fd8148ba0 dwarf_loader: Factor common bits for creating and processing CU
569 0c5bf70cc1259162 fprintf: class__vtable_fprintf() doesn't need a 'cu' arg
570 38ff86b149e1aa9a fprintf: string_type__fprintf() doesn't need a 'cu' arg
571 a75c342ac2fc6c54 core: Ditch tag__free_orig_info(), unused
572 80fe32fd294ac15e core: variable__name() doesn't need a 'cu' arg
573 caa219dffcb41422 core: base_type__name() doesn't need a 'cu' arg
574 7569e46d3515f93e core: namespace__delete() doesn't need a 'cu' arg
575 de4e8b7f178257d5 core: {tag,function,lexblock}__delete() doesn't need a 'cu' arg
576 789ed4e3a2c34b54 core: ftype__delete() doesn't need a 'cu' arg
577 6340cb462767aa95 core: enumeration__delete() doesn't need a 'cu' arg
578 33e44f5295702d95 core: type__delete() doesn't need a 'cu' arg
579 0f54ca9c827e9ef7 core: class__clone() doesn't need a 'cu' arg
580 2b2014187b811243 core: class__delete() doesn't need a 'cu' arg
581 f40900eba656db3b core: type__delete_class_members() doesn't need a 'cu' arg
582 50916756d59ad7f9 core: class_member__delete() doesn't need a 'cu' arg
583 2e50463c3aa149d3 core: type__clone_members() doesn't need a 'cu' arg
584 a66208355ea8108c core: class_member__clone() doesn't need a 'cu' arg
585 33e0d5f874dc22c4 pahole: Introduce --prettify option
586 bc36e94f32e662aa pahole: Try harder to resolve the --header type when pretty printing
587 fcfa2141c375849b pahole: Make prototype__stdio_fprintf_value() receive a FILE to read raw data from
588 1a65d232b040fae6 man-page: Move the PRETTY PRINTING header earlier
589 2d35630fa55de2bc pahole: Make pipe_seek() honour the 'fp' arg instead of hardcoding stdin
590 9aa01472d9655e1b pahole: Rename 'fp' to 'output' in prototype__stdio_fprintf_value()
591 472b94018055873d pahole: Use the supplied 'fp' argument in type__instance_read_once()
592 63992cb02a69485b core: Use namespace->name in class__clone()
593 ced4c34c37acd185 core: Remove strings.c, unused
594 adbb66c2957d9eef ctf_loader: Use uint32_t instead of strings_t, that is going away
595 ad707445b3fcaf11 core: Remove base_type_name_to_size_table.sname, unused
596 f8d571934b96ea35 pahole: Add missing bpf/btf.h include
597 deb6a4a4921b33ec libctf: Comment out unused CTF encoding functions
598 82155bc92f726c43 btf_loader: Add missing bpf/btf.h include
599 05f1f9dece4ed54d btf_encoder: Add missing bpf/btf.h include
600 f4a77d03909c1cf8 pahole: Use conf_load.kabi_prefix
601 2b9bd83e63bacb59 dwarf_loader: Make attr_suffix() handle kabi_prefix
602 daaafeb35f168fd1 dwarf_loader: Pass conf_load to functions calling attr_string()
603 def39099c1920346 ctf_loader: No need for the 'strings' extern, not used
604 2499920ac8d88b82 btf_loader: No need for the 'strings' extern, not used
605 a388aaf489f945d4 dwarf_loader: Remove unused strings variable and debug_fmt_ops->{init,exit}()
606 3d3b7b3287617b8f core: Remove unused debug_fmt_ops->dwarf__strings_ptr()
607 05687c547e9f22e8 core: Remove unused cu__string() method
608 a201149e181be613 dwarf_loader: No need to strdup() what dwarf_formstring() returns
609 6b7f1b72f9a958e4 core: No need for debug_fmt_ops->variable_name() anymore
610 9d0e3ab9a29c2e81 pahole: function__name() doesn't need a 'struct cu *' argument
611 a7d789a4f841b0ea core: Make variable->name a real string
612 b5694280ec5b1f1f core: Make label->name a real string
613 e974d1b2404154ea pahole: class_member_filter__new() doesn't need a 'struct cu *' argument
614 0275e8d24975c531 pahole: class_member_filter__parse() doesn't need a 'struct cu *' argument
615 90183e8e4da43785 pahole: tag__real_sizeof() doesn't need a 'struct cu *' argument
616 5cb91927385d7b75 pahole: Rename tag__fprintf_hexdump_value() to instance__fprintf_hexdump_value()
617 75c769a900185faf pahole: enumerations__lookup_entry_from_value() doesn't need to return a CU anymore
618 1edca2655284d968 pahole: enumeration__lookup_entry_from_value() doesn't need a 'cu' argument
619 f8d98eff756bf406 core: Ditch unused enumeration__prefix_len() method
620 5cc365164a4cba46 core: Ditch unused enumeration__prefix() method
621 e18c60d793935ab6 pahole: enumeration__lookup_value() doesn't need a 'cu' argument
622 4b877c8e6762c42f pahole: enumeration__lookup_enumerator() doesn't need a 'cu' argument
623 3ff11828fee01a91 core: enumeration__emit_definitions() doesn't need a 'cu' argument
624 0947d6e7954d752d core: enumeration__fprintf() doesn't need a 'cu' argument
625 bb22f5bb0a137342 core: Make enumeration__max_entry_name_len() static
626 dc83336171d1157c core: enumeration__max_entry_name_len() doesn't need a 'cu' argument
627 ec1667c76db61e2f core: Make enumeration__calc_prefix() static
628 45ec63ed20a56557 core: enumeration__calc_prefix doesn't need a 'cu' argument
629 2fae84e2f79726fb btf_encoder: btf_encoder__add_enum_type() doesn't need a 'cu' argument, ditch it
630 96243fdd79c5c45d core: enumerator__name() doesn't need a 'cu' argument, ditch it
631 ee5c12893b2e8aa8 core: Ditch dwarves__active_loader, unused
632 713239bc008910ff core: Make enumerator->name a real string
633 7721cc17aca7020d emit: type__emit_fwd_decl() isn't used outside emit.c, make it static
634 9aa5db7acd420d55 emit: type__emit_fwd_decl() doesn't need a cu arg
635 c46f91ef6f9cd0a1 emit: type_emissions__find_definition() doesn't need a cu arg
636 c127d25daf88c1a2 core: class__name() doesn't need a cu arg
637 00e8c5fe216755d6 core: type__name() doesn't need a cu arg
638 b99c4008acca8794 core: Make namespace->name a real string
639 379a73c6eb4633d4 core: Make class_member->name a real string
640 3280cb41768a7130 core: Make parameter->name a real string
641 f009162fd133d155 core: Make base_type->name a real string
642 e2ee753fa74ca570 pahole: Disable incomplete CTF encoder
643 0d13bc50ee8dbdf8 core: Ditch unused cu__find_struct_by_sname()
644 46f3f372416d7f9f core: Convert cu__find_base_type_by_sname_and_size to search for a string
645 f84e8777eada296a core: Convert cu__find_enumeration_by_sname_and_size to search for a string
646 a16c82f7110467b7 dwarf_loader: Rename strings_t 'name' to 'sname' to clarify usage
647 82e5b5101a6adf73 core: Make function->name a real string
648 4f73cac85321bd5b core: Make function->linkage_name a real string
649 a93160df5335ed2e dwarf_loader: Make dwarf_tag->decl_file a real string
650 a3fcbcacf79787d6 pahole: Allow specifying the number of threads to use while loading files
651 d70b2562ee5d90f2 pahole: Make '-j' available for use as number of jobs (threads)
652 41a283c65d300945 core: Protect cus->cus with a mutex
653 972065482a7f714d core: Make 'struct cus' opaque, only visible in dwarves.c
654 3895b29060fdc21e core: Introduce helper to return number of cu entries in a 'struct cus'
655 874e750fb8bddcad core: Move cus__find_pair() from codiff to the core
656 bf74fc1fcf1ab78e core: Introduce helper to return if there is no cu entries in a 'struct cus'
657 7020f9214328ac8d core: Prepare cus__find_cu_by_name() for locking
658 4bf7285b37108222 core: Prepare cus__find_function_at_addr() for locking
659 73a2fd1e5a70c7f2 core: Prepare __cus__find_struct_by_name() for locking
660 5020bf721b204673 core: Prepare cus__find_type_by_name() for locking
661 d124926baf2366a2 core: Initialize cu->priv in cu__new()
662 3ec54ee72ff7c5b1 CMakeList.txt: Bump version to the upcoming 1.22 release, not out of the door yet
663 1ef87b26fd268b52 Revert "btf_encoder: Reduce the size of encode_cu() by moving function encoding to separate method"
664 7869cc113b0b5a3d dwarf_loader: Separate non-LTO per CU processing + BTF encoding part
665 de3a7f912559433c btf_encoder: Reduce the size of encode_cu() by moving function encoding to separate method
666 d348b37ed16249e0 btf_encoder: Reduce the size of encode_cu() by moving var encoding to separate method
667 f62196d3be5a8765 btf_encoder: No need to set the endianness twice when encoding into an ELF file
668 819f83bd9736b9c8 btf_encoder: Pass detached_filename to the constructor
669 7ed4ddc46826538e btf_encoder: Adopt writing to raw file method
670 1498094d335f697a btf_encoder: Rename btf__encode_in_elf to btf_encoder__write_elf, shortening function signature
671 cd2b8978c43ea00a btf_encoder: Combine btf__write_elf() with btf__encode_in_elf()
672 18a3e9711ccc6887 btf_encoder: Move duplicate code to btf_encoder__encode()
673 9eb3d7a29de32bf4 btf_encoder: Pass the 'skip_encoding_vars' to the constructor
674 707101ec38d76958 btf_encoder: No need to export the 'struct btf_definition', make it opaque
675 f1feaa94c7a92e5c libbpf: bump dependency to >= 0.4.0
676 1b50808c2958dde3 libbpf: If LIBBPF_EMBEDDED=OFF and libbpf-dev/pkgconfig is not available, fail the build
677 790dfbda79444d11 headers: Rebame __unused to __maybe_unused to avoid clashes with system headers
678 82756ea3eaf1f6e7 libbpf: Fixup patch to allow to use packaged version
679 ba953a53be25765e README: Add documentation for -DBUILD_SHARED_LIBS
680 aa2027708659f172 CMakeLists.txt: Enable SHARED and STATIC lib creation
681 ae2581647e849488 libbpf: Allow to use packaged version
682 743f2536d8b876a4 btf_encoder: Move libbtf.c to btf_encoder.c, the only user of its functions
683 6f72dddbed0e1bf8 btf_encoder: Move PERCPU_SECTION define to the only source file using it
684 f0f5b4f2bc34b029 btf_encoder: Move library global variable btf_gen_floats to btf_encoder class
685 09970b03bd309d83 btf_encoder: Ditch unused 'btf_encoder__verbose' global variable
686 1bf2e3511a1386c4 btf_encoder: Use encoder->verbose instead of btf_encoder__verbose
687 4ffa484b6a04530b btf_encoder: Adopt btf__log_func_param() and use encoder->verbose
688 729da7613b399f9c btf_encoder: Adopt btf__log_member() and use encoder->verbose
689 be75b76b6b9e479f btf_encoder: Adopt btf__log_type() and use encoder->verbose
690 9f19e96001f72c49 btf_encoder: No need to pass encoder->percpu_secinfo to btf_encoder__add_datasec()
691 869c177f8e13ce12 btf_encoder: Make btf_encoder__add_var_secinfo() receive a btf_encoder pointer
692 f0e8cd68f5dcb20b btf_encoder: Adopt btf__encode_var_secinfo() as btf_encoder__add_var_secinfo()
693 cc646d93d18270e9 btf_encoder: Adopt btf__encode_datasec_type() as btf_encoder__add_datasec()
694 b0f71fabdeee329b btf_encoder: Adopt btf__encode_var_type() as btf_encoder__add_var()
695 1aece1e7e6d593db btf_encoder: Adopt btf__encode_enum_val() as btf_encoder__add_enum_val()
696 4371b3cd5b9b18e6 btf_encoder: Adopt btf__encode_enum() as btf_encoder__add_enum()
697 b536947512efcb7e btf_encoder: Adopt btf__encode_enumeration_type() as btf_encoder__add_enum_type()
698 1bc29591ec010fa8 btf_encoder: Adopt btf__encode_func_proto_param() as btf_encoder__add_func_param()
699 393febe592e94f4a btf_encoder: Adopt btf__encode_func_proto() as btf_encoder__add_func_proto()
700 4eb4c03578b29791 btf_encoder: Adopt btf__encode_array() as btf_encoder__add_array()
701 06cd9f00c69d11bd btf_encoder: Adopt btf__encode_struct() as btf_encoder__add_struct()
702 0b29d5a65ccef5f6 btf_encoder: Adopt btf__encode_member() as btf_encoder__add_field()
703 3e2a1f7ddc930d3c btf_encoder: Adopt btf__encode_struct_type() as btf_encoder__add_struct_type()
704 2c7a2f270ef7bcea btf_encoder: Adopt btf__encode_ref_type() as btf_encoder__add_ref_type()
705 07d4ec9cef0c1619 btf_encoder: Adopt btf__encode_float_type() as btf_encoder__add_float()
706 68ed8af85908e432 btf_encoder: Adopt btf__encode_base_type() as btf_encoder__add_base_type()
707 14ab2e036147b6bc libbtf: Ditch unused btf_elf__verbose_log() macro
708 539c94fee9315254 libbtf: Ditch btf_elf class, unused
709 282a8a2187bde9bd btf_encoder: Use 'struct btf' directly, stop using btf_elf
710 dd0b01f56837794e libbtf: Remove unused ELF fields and calls from btf_elf
711 a0c5f49b0c405b1b btf_encoder: Phagocytize percpu_secinfo from btf_elf
712 c288e29d06c380b5 pahole: Rename 'encoder' to 'btf_encoder' as we support multiple formats
713 46a3e3a87a8963ca btf_encoder: Move the global btf_encoder to its users, like pahole
714 fa849010b4565015 btf_encoder: Adopt the cu__encode_btf() method, as btf_encoder__encode_cu()
715 3be437c5e7d2777e btf_encoder: Set btf_encoder__verbose in just one place, its users
716 e1e787af4496b51f btf_encoder: Move btf_elf__verbose var to btf_encoder class
717 66f4054252ab996e btf_encoder: Adopt btf_elf__force, its only used in btf_encoder methods
718 5e1207754eb67249 pahole: Adopt btf_encoder object instantiation from btf_encoder
719 0208952e8ffcfdc3 btf_encoder: Move the function encode() to be a btf_encoder method
720 bcc5f95364da96bb btf_encoder: Temporarily expose the 'encoder' variable
721 e27be59f10c7c6e3 btf_encoder: Move 'filename' member from btf_elf to btf_encoder
722 da9d70a16ff01492 btfdiff: Support diffing DWARF vs detached BTF
723 6bc135c8f49696a9 btf_encoder: No need for calling btf_encoder__encode() from cu__encode_btf()
724 48a0fa2ef7b546a3 btf_encoder: Move btf_elf based encode_in_elf and write_elf methods to btf_encoder
725 cc8eae604dc07b5e btf_encoder: Move collect_symbols() call to btf_encoder constructor
726 96e59c55686bccaf btf_encoder: Remove needless hash.h include, not used anymore
727 92f8852d8d178966 btf_encoder: Move global elf_functions table to the btf_encoder class
728 aa48ed55a790c2d5 btf_encoder: Move ELF's ehdr from btf_elf to btf_encoder
729 b3701a8346a6ea71 btf_encoder: Move 'symtab' from btf_elf to btf_encoder
730 be8dac48691f6578 btf_encoder: Move percpu members from btf_elf to btf_encoder
731 7f70877b198200ac btf_encoder: Add a 'verbose' member for encoder specific logging requests
732 ef8a48b3bc7cda1f btf_encoder: Move 'array_index_id' global variable to 'struct btf_encoder'
733 f3e6edffd7210265 btf_encoder: Move percpu vars global variables to btf_encoder class
734 14053c490bf68a49 btf_encoder: Adopt collect_function() as a btf_encoder method
735 049675f4a5401ac2 btf_encoder: Adopt collect_per_cpu_var() as a btf_encoder method
736 21b5e9b368228502 btf_encoder: Adopt collect_symbol() as a btf_encoder method
737 e40bc12ddf42b4a8 btf_encoder: Move 'need_index_type' global variable to 'struct btf_encoder'
738 cccfeec3c7d68f89 btf_encoder: Make tag__encode_btf() its encode_tag() method
739 65b3c598ab24a14a btf_encoder: Move 'has_index_type' global variable to 'struct btf_encoder'
740 a5c732e712564798 btf_encoder: Introduce 'struct btf_encoder' to have all the current globals
741 bd4e585d81a35862 btf_encoder: Replace btfe with btf in tag__encode_btf()
742 de2676159d8472b7 btf_encoder: Move encode_enumeration_type() from btf_elf to btf
743 80dec71c934fc96a btf_encoder: Move encode_struct_type() from btf_elf to btf
744 6d7790a5d4fc68a4 btf_encoder: Move add_datasec_type() from btf_elf to btf encode_datasec_type()
745 12d340c321e31564 btf_encoder: Move add_var_secinfo() from btf_elf to btf encode_var_secinfo()
746 d90b38c1f3ca9171 btf_encoder: Move add_var_type() from btf_elf to btf encode_var_type()
747 bce82c1a00a9beee btf_encoder: Move add_func_proto() from btf_elf to btf encode_func_proto()
748 188f25b74130d131 btf_encoder: Move add_enum() from btf_elf to btf encode_enum()
749 f82bd80a5c175425 btf_encoder: Move add_struct() from btf_elf to btf encode_struct()
750 1216aebd27ecd4e6 btf_encoder: Move add_array() from btf_elf to btf encode_array()
751 a96c91261e731602 btf_encoder: Move add_ref_type() from btf_elf to btf encode_ref_type()
752 a97ed8080a354487 btf_encoder: Move add_member() from btf_elf to btf encode_member()
753 56e0c2d4ccc7a9bd btf_encoder: Move add_base_type() from btf_elf to btf encode_base_type()
754 adeeb9ebcf7ef8bd btf_encoder: Move add_float_type() from btf_elf to btf encode_float_type()
755 37d3b8a1cedac677 btf_encoder: bpf__log_func_param() doesn't need the btfe arg
756 64d216f57e7a229f btf_encoder: Move log_member() from btf_elf to btf
757 20bb260428c0a1ad btf_encoder: Move log_type() from btf_elf to btf
758 16d026ce5db765c9 btf_encoder: Move log_err() from btf_elf to btf
759 c5f594eaa9b5ab8c btf_encoder: Remove 'elf' from btf_elf__int_encoding_str() name
760 c81d11b8bb80bed1 btf_elf: Remove base_btf member, used only in the constructor
761 69f5fff50e442cad btf_elf: No point in falling back to raw BTF in btf_new()
762 3fcf804a7e69aa4f btf_elf: No point in looking at the filename for /sys/kernel/btf in btf_elf__new()
763 c9eb447502b771c5 libbtf: Ditch unused btf_elf__string() method
764 a355a245fb48b05f libbtf: Remove unused btf_elf__load()
765 3de65d433ab18301 btf_encoder: Move printable_name() from btfe to btf
766 7fb31d787d3deec1 btf_loader: Stop using libbtf.h and the btf_elf class
767 e431c18b80650545 btf_loader: cu__fixup_btf_bitfields doesn'n need btfe parameter, ditch it
768 8c1919c10df8a79f btf_loader: class__fixup_btf_bitfields doesn'n need btfe parameter, ditch it
769 4d2ae0d9049e47c5 btf_elf: Remove unused btfe->priv member
770 b54b74edfcd0dc8c btf_loader: Add a local 'btf' var to prep next patches
771 52bedef0fddaa227 btf_loader: Move load_sections() from btf_elf to btf
772 ac3f2952a854fccc btf_loader: Move load_types() from btf_elf to btf
773 1a33deae144dbd22 btf_loader: Move create_new_tag() from btfe to cu
774 8323cb33bc73817a btf_loader: Move create_new_datasec() from btfe to cu
775 6fb41bbf8e31f3cf btf_loader: Move create_new_variable() from btfe to cu
776 9122424dda37ccff btf_loader: Move create_new_typedef() from btfe to cu
777 dd3e9ab4a00f8cf9 btf_loader: Move create_new_forward_decl() from btfe to cu
778 cca6b51d292df6f1 btf_loader: Move create_new_subroutine_type() from btfe to cu
779 ba1b77d01dda3ac0 btf_loader: Move create_new_enumeration() from btfe to cu
780 a58bc8300f13c93f btf_loader: Move create_new_union() from btfe to cu
781 367f5fe74cbb35ec btf_loader: Move create_new_class() from btfe to cu
782 2460bead8a8fc02f btf_loader: The create_members() function doesn't need the btfe arg
783 1136795fec7ff6bf btf_loader: Move create_new_array() from btfe to cu
784 ab2f5028916c7822 btf_loader: Move create_new_float_type() from btfe to cu
785 6b452a1cc5f2f22b btf_loader: Move create_new_int_type() from btfe to cu
786 073a5f69ef19700a btf_loader: Move create_new_function() from btfe to cu
787 29ad464f73286067 btf_loader: Move load_ftype() from btfe to cu
788 407693e2cabfa7a3 btf_loader: Pass cu to the load_sections/types routines
789 89b9c4f8851ebc8f libbtf: Remove the 'base_btf' global var, now unused
790 6f70d0accaf17f74 pahole: Use conf_load->base_btf to call cu__encode_btf()
791 0e77be409969631b btf_loader: Use conf_load->base_btf instead of the global btf_base var
792 6ee61b161dbcc42c pahole: Set conf_load.btf_base when applicable
793 b8255beb12c02d76 core: Allow passing the base_btf object via 'struct conf_load'
794 f93e05d8bd45d4b3 btf_encoder: Pass the base BTF object to the BTF encoder
795 81797a00fbdd1017 btf_elf: Remove unused 'wordsize' member
796 ecc888b855c249a6 btf_loader: Use btf__pointer_size() to set cu->addr_size
797 e6b69ffc74dcb3f0 btf_elf: Remove unused is_big_endian member
798 81fe7d688de85fa2 btf_loader: Use btf__endianness() instead of to be removed btfe member
799 9f8ce7e1137f22c1 libbtf: Remove unused btf_elf->raw_btf member
800 89be5646a03435bf pahole: Allow encoding BTF into a detached file
801 22a76fbc8b33a3cd btf_loader: Use btf__parse_split()
802 c9d4c106ab95cd8c dwarf_loader: Add define for DW_OP_addrx
803 76f7844c817eeac5 libbtf: Fix typo
804 3d510406ff363056 pahole: Add --kabi_prefix flag
805 0d17503db0580a66 btf_encoder: fix and complete filtering out zero-sized per-CPU variables
806 fb418f9d8384d3a9 dwarves: Make handling of NULL by destructos consistent
807 f049fe9ebf7aa9c2 dutil: Make handling of NULL by destructos consistent
808 1512ab8ab6fe76a9 pahole: Make handling of NULL by destructos consistent
809 1105b7dad2d0978b elf_symtab: Use zfree() where applicable
810 131275fa20437dec codiff: Use zfree() where applicable
811 6784b03fd447f507 dutil: Adopt the zalloc()/zfree() from perf
812 d7f5824a9e1895d1 libctf: Use zfree() where applicable
813 45d9eb8602b42a6b pahole: Use zfree() where applicable
814 f48cc78e8e6e56df dwarf_loader: Use zfree() instead of ad-hoc implementation
815 d0f6a4a1da524873 gobuffer: Use zfree() and make delete accept NULL, like free()
816 db37185d16d4a56d dwarves: Use zfree()
817 e7e86c75e149c161 libbtf: Use zfree()
818 972001e58e9f5ed9 dutil: Adopt zfree(), to use it more pervasively
819 5847901abf13e8bd dwarves: Plug leaks in cu__new() found by covscan
820 32114e611a93b046 dwarf_loader: Call dwarf_cu__delete() when aborting the load
821 26bd4c41646a64b9 dwarf_loader: Delete the allocated CU when aborting
822 d8940df90b4a952b dwarf_loader: Make all ABORT returns go thru a single exit label
823 3ba54ee43a301419 dwarf_loader: Use zalloc() to allocate dwarf_cu
824 f3957627bb3e3431 dwarf_loader: Make dwarf_cu__delete() accept NULL, just like free()
825 8772c9d827813d4d dwarves: Accept NULL in cu__delete(), just like free() accepts
826 25cc0c77545cefbc dwarf_loader: Check if we have a CU after the loop in cus__merge_and_process_cu()
827 2f30062b546de1ef dwarf_loader: Check tag__recode_dwarf_bitfield() return, may be NULL
828 d68fd2bbc59291f3 ctracer: Initialize the 'parm_list' variable, detected by covscan
829 5b0fb9745e1e9597 codiff: Fix usage of negative errno values with strerror(), reported by covscan
830 cba940fb86a46fa9 btf_loader: Fix some memory leaks found by covscan
831 674063b1ea4156d2 loaders: Plug enumeration__delete() leak detected by covscan
832 505a1f5615c5064a dwarves: Stop using obstacks
833 872658b88021b487 CMakeLists.txt: Specify the file extension of srcs
834 aa8519378a37c9a5 README: Mention how to specify another prefix
835 58a98f76ac95b1bb btf: Remove ftrace filter
836 7c60b0443cb01795 pahole: Fix error message when --header couldn't be read
837 7eea706c14997b4f pahole: Introduce --with_flexible_array option to show just types ending in a flexible array
838
839 v1.21:
840
841 Fri Apr 9 2021
842
843 ae0b7dde1fd50b12 dwarf_loader: Handle DWARF5 DW_OP_addrx properly
844 9adb014930f31c66 dwarf_loader: Handle subprogram ret type with abstract_origin properly
845 5752d1951d081a80 dwarf_loader: Check .notes section for LTO build info
846 209e45424ff4a22d dwarf_loader: Check .debug_abbrev for cross-CU references
847 39227909db3cc2c2 dwarf_loader: Permit merging all DWARF CU's for clang LTO built binary
848 763475ca1101ccfe dwarf_loader: Factor out common code to initialize a cu
849 d0d3fbd4744953e8 dwarf_loader: Permit a flexible HASHTAGS__BITS
850 ffe0ef4d73906c18 btf: Add --btf_gen_all flag
851 de708b33114d42c2 btf: Add support for the floating-point types
852 4b7f8c04d009942b fprintf: Honour conf_fprintf.hex when printing enumerations
853 f2889ff163726336 Avoid warning when building with NDEBUG
854 8e1f8c904e303d5d btf_encoder: Match ftrace addresses within ELF functions
855 9fecc77ed82d429f dwarf_loader: Use a better hashing function, from libbpf
856 0125de3a4c055cdf btf_encoder: Funnel ELF error reporting through a macro
857 7d8e829f636f47ab btf_encoder: Sanitize non-regular int base type
858
859 v1.20:
860
861 Tue Feb 2 2021
862
863 8d6f06f053a06829 (HEAD -> master, seventh/master, quaco/master, origin/master, origin/HEAD) dwarf_loader: Add conditional DW_FORM_implicit_const definition for older systems
864 66d12e4790b7c5e5 dtagnames: Stop using the deprecated mallinfo() function
865 1279e439b622aeb5 cmake: Bump minimum required version to 2.8.12 as per upstream support warning
866 b1eaf0da6d1f72b2 dwarves: Make enum prefix search more robust
867 d783117162c0212d dwarf_loader: Handle DWARF5 DW_TAG_call_site like DW_TAG_GNU_call_site
868 3ff98a6396e91d0a dwarf_loader: Support DW_FORM_implicit_const in __attr_offset()
869 b91b19840b0062b8 dwarf_loader: Support DW_AT_data_bit_offset
870 c692e8ac5ccbab99 dwarf_loader: Optimize a bit the reading of DW_AT_data_member_location
871 65917b24942ce620 dwarf_loader: Fix typo
872 77205a119c85e396 dwarf_loader: Introduce __attr_offset() to reuse call to dwarf_attr()
873 8ec231f6b0c8aaef dwarf_loader: Support DW_FORM_implicit_const in attr_numeric()
874 7453895e01edb535 btf_encoder: Improve ELF error reporting
875 1bb49897dd2b65b0 bpf_encoder: Translate SHN_XINDEX in symbol's st_shndx values
876 3f8aad340bf1a188 elf_symtab: Handle SHN_XINDEX index in elf_section_by_name()
877 e32b9800e650a6eb btf_encoder: Add extra checks for symbol names
878 82749180b23d3c9c libbpf: allow to use packaged version
879 452dbcf35f1a7bf9 btf_encoder: Improve error-handling around objcopy
880 cf381f9a3822d68b btf_encoder: Fix handling of restrict qualifier
881 b688e35970600c15 btf_encoder: fix skipping per-CPU variables at offset 0
882 8c009d6ce762dfc9 btf_encoder: fix BTF variable generation for kernel modules
883 b94e97e015a94e6b dwarves: Fix compilation on 32-bit architectures
884 17df51c700248f02 btf_encoder: Detect kernel module ftrace addresses
885 06ca639505fc56c6 btf_encoder: Use address size based on ELF's class
886 aff60970d16b909e btf_encoder: Factor filter_functions function
887 1e6a3fed6e52d365 rpm: Fix changelog date
888
889 v1.19:
890
891 Fri Nov 20 2020
892
893 bf21da407593f104 fprintf: Make typedef__fprintf print anonymous enums
894 9c4bdf9331bf06a7 fprintf: Align enumerators
895 89cf28228a8ab55e fprintf: Add enumeration__max_entry_name_len()
896 932b84eb45a9b8ba fprintf: Make typedef__fprintf print anonymous structs
897 4a1479305b53933d pahole: Add heuristic to auto-add --btf_base for /sys/kernel/btf/ prefixed files
898 e1d01045828a5c4c btf: Fallback to raw BTF mode if the header magic matches
899 24cea890abedb15b pahole: Force '-F btf' with --btf_base
900 cfad738682506ce4 libbtf: Assume its raw_btf if filename starts with "/sys/kernel/btf/"
901 7293c7fceac36844 pahole: The --btf_base option receives a PATH, not a SIZE
902 b3dd4f3c3d5ea59e btf_encoder: Use better fallback message
903 d06048c53094d9d2 btf_encoder: Move btf_elf__verbose/btf_elf__force setup
904 8156bec8aedb685b btf_encoder: Fix function generation
905 d0cd007339ee509e btf_encoder: Generate also .init functions
906 25753e0396abea25 pfunct: Use load stealer to speed up --class
907 aa8fb8c091446467 man-pages: Add entry for -J/--btf_encode to pahole's man page
908 ace05ba9414c1fe4 btf: Add support for split BTF loading and encoding
909 7290d08b4a6e5876 libbpf: Update libbpf submodule reference to latest master
910 344f2483cfcd4952 libbtf: Improve variable naming and error reporting when writing out BTF
911 94a7535939f92e91 btf_encoder: Fix array index type numbering
912 9fa3a100f71e7a13 pfunct: Use a load stealer to stop as soon as a function is found
913 de18bd5fe3515358 pfunct: Try sole argument as a function name, just like pahole
914 bc1afd458562f21e pahole: Introduce --numeric_version for use in scripts and Makefiles
915 784c3dfbd63d5bcf dwarves: Switch from a string based version to major/minor numbers
916 fc06ee1b6e9dc14a pahole: Check if the sole arg is a file, not considering it a type if so
917 f47b3a2df3622204 dwarf_loader: Fix partial unit warning
918 5a22c2de79fb9edf btf_encoder: Change functions check due to broken dwarf
919 7b1af3f4844b36b9 btf_encoder: Move find_all_percpu_vars in generic collect_symbols
920 863e6f0f2cc08592 btf_encoder: Check var type after checking var addr.
921 5e7ab5b9e064a3eb btf_loader: Handle union forward declaration properly
922 ec3f944102a71241 cmake: Make libbpf's Linux UAPI headers available to all binaries
923 8cac1c54c83c346b btf_encoder: Ignore zero-sized ELF symbols
924 040fd7f585c9b9fc btf_encoder: Support cross-compiled ELF binaries with different endianness
925 29fce8dc8571c6af strings: use BTF's string APIs for strings management
926 75f3520fedf6afdb strings: Rename strings.h to avoid clashing with /usr/include/strings.h
927 bba7151e0fd2fb3a dwarf_loader: increase the size of lookup hash map
928 2e719cca66721284 btf_encoder: revamp how per-CPU variables are encoded
929 0258a47ef99500db btf_encoder: Discard CUs after BTF encoding
930 3c913e18b2702a9e btf_encoder: Fix emitting __ARRAY_SIZE_TYPE__ as index range type
931 48efa92933e81d28 btf_encoder: Use libbpf APIs to encode BTF type info
932 5d863aa7ce539e86 btf_loader: Use libbpf to load BTF
933 0a9b89910e711951 dwarves: Expose and maintain active debug info loader operations
934 7bc2dd07d51cb5ee btf_encoder: detect BTF encoding errors and exit
935 c35b7fa52cb8112a libbpf: Update to latest libbpf version
936 ef4f971a9cf745fc dwarf_loader: Conditionally define DW_AT_alignment
937 cc3f9dce3378280f pahole: Implement --packed
938 08f49262f474370a man-pages: Fix 'coimbine' typo
939
940 v1.18:
941
942 Fri 02 Oct 2020
943
944 aee6808c478b760f btf_loader: Initialize function->lexblock.tags to fix segfault in pdwtags
945 c815d26689313d8d btf_encoder: Handle DW_TAG_variable that has DW_AT_specification
946 b8068e7373cc1592 pahole: Only try using a single file name as a type name if not encoding BTF or CTF
947 8b1c63283194ebe1 libctf: Make can't get header message to appear only in verbose mode
948 63e11400e80f6ac4 libbtf: Make can't get header message to appear only in verbose mode
949 fc2b317db0bdc1a9 dwarf_loader: Check for unsupported_tag return in last two missing places
950 2b5f4895e8968e83 dwarf_loader: Warn user about unsupported TAGs
951 010a71e181b450d7 dwarf_loader: Handle unsupported_tag return in die__process_class()
952 3d616609ee0fd6df dwarf_loader: Add minimal handling of DW_TAG_subrange_type
953 2e8cd6a435d96335 dwarf_loader: Ignore DW_TAG_variant_part for now to fix a segfault
954 e9e6285fd0d63ed0 dwarf_loader: Skip empty CUs
955 1abc001417b579b8 btf_encoder: Introduce option '--btf_encode_force'
956 da4ad2f65028e321 btf_encoder: Allow disabling BTF var encoding.
957 f5847773d94d4875 fprintf: Support DW_TAG_string_type
958 8b00a5cd677df778 dwarf_loader: Support DW_TAG_string_type
959 0d9c3c9835659fb7 dwarves: Check if a member type wasn't found and avoid a NULL deref
960 2ecc308518edfe05 dwarf_loader: Bail out at DW_TAG_imported_unit tags
961 8c92fd298101171d dwarf_loader: Ignore entries in a DW_TAG_partial_unit, for now
962 4cfd420f7ef13af4 README: Add instructions to do a cross build
963 9e495f68c683574f dwarf_loader: Move vaddr to conditional where it is used
964 69fce762074a5483 pahole: Use "%s" in a snprintf call
965 22f93766cf02f4e0 pahole: Support multiple types for pretty printing
966 78f2177d904902c6 pahole: Print the evaluated range= per class
967 5c32b9d5c7ac8fff pahole: Count the total number of bytes read from stdin
968 e3e5a4626c94d9c5 pahole: Make sure the header is read only once
969 208bcd9873442013 pahole: Introduce 'range=member' as a class argument for pretty printing
970 b9e406311990c2d5 pahole: Cache the type_enum lookups into struct enumerator
971 fda1825f0b9f1c9f dwarves: Introduce tag_cu_node, so that we can have the leaner tag_cu
972 47d4dd4c8a2cf9fd pahole: Optimize --header processing by keeping the first successfull instance
973 fdfc64ec44f4ad53 pahole: Introduce --range
974 f63d3677e31d88a3 pahole: Support multiple enums in type_enum=
975 c50b6d37e99fddec pahole: Add infrastructure to have multiple concatenated type_enum
976 671ea22ca18dd41f pahole: Move finding type_enum to a separate function
977 dd3c0e9eb0cbc77f dwarves: Move the common initialization of fields for 'struct type'
978 aa7ab3e8755a4c12 pahole: Allow for more compact enum filters by suppressing common prefix
979 4ece15c37b028a80 dwarves: Find common enumerators prefix
980 d28bc97b5c12736b man-pages: Document pretty printing capabilities and provide examples
981 a345691f08f04f19 pahole: Make --header without -C to be equivalent to -C header-arg --count=1
982 eba4ac6b2c1dcb11 pahole: Fallback to pretty printing using types in multiple CUs
983 7c12b234ee30f6d2 dwarves: Introduce cus__find_type_by_name()
984 c6f3386e3364486d pahole: Make the type_instance constructor receive the looked up type + its CU
985 30297256e1f27de5 pahole: Pass the header type_instance to tag__stdio_fprintf_value()
986 ead8084d3ffcda1f pahole: Store the CU in the type_instance struct
987 2c886fff0af13510 pahole: Store the CU where type_enum was found
988 526b116bfec71054 pahole: If pretty printing, don't discard CUs, keep them
989 a1b8fddb4dcd90d9 pahole: Show which classes were not processed and why
990 bc6a3cac50cdbdf6 pahole: Fixup the --class_name parsing wrt class args (type=, sizeof=, etc)
991 363c37340521debe pahole: Remope pretty printed classes from the prototypes list
992 9f675e7fdbf525fb cmake: Use -O0 for debug builds
993 4e5b02beea24656d pahole: Don't stop when not finding the type_enum
994 823739b56f2b5230 pahole: Convert class_names into a list of struct prototypes
995 0a97d6c143fcc92a pahole: Factor out parsing class prototypes
996 80af0fbbf3a3f1f6 dutils: Allow for having a priv area per strlist
997 04b6547e7343410e pahole: Honour --hex_fmt when pretty printing
998 266c0255984ddbe7 pahole: Support filters without 'filter='
999 6c683ce0e11d6c1c pahole: Allow for a 'type' boolean class arg meaning 'type=type'
1000 1c68f41bb87f7718 pahole: Allow for a 'sizeof' boolean class arg meaning 'sizeof=size'
1001 b4b3fb0a3aeb9686 pahole: First look for ',' then '=' to allow for boolean args
1002 446b85f7276bda4c pahole: Add support for --size_bytes, accepts header variables
1003 0f10fa7529d4a9c7 pahole: Move reading the header to outside the --seek_bytes code
1004 9310b04854a8b709 pahole: Add support for referencing header variables when pretty printing
1005 611f5e8bd7eb760d pahole: Add == class member filtering
1006 f2987224beb2b496 pahole: Do the 'type_enum' class argument validation as soon as we parse it
1007 02ca176c6290ff96 pahole: Do the 'type' class argument validation earlier
1008 172d743d9ce3f3a1 pahole: Do the 'sizeof' class argument validation earlier
1009 9a30c101d7c019ee pahole: As soon as a attribute is found, check if the type is a struct or class
1010 a38ccf47237298dc pahole: Allow filter=expression as a class argument for pretty printing
1011 3c4ee1d91f5311ac pahole: Pretty print bitfields
1012 451d66ec02e94492 pahole: Pretty print unions too, cope with unnamed ones
1013 48c7704b49ffa6b1 pahole: Check if the type with arguments is present in the current CU
1014 472519ac2c49d340 pahole: Support nested structs
1015 ae43029363ee2c53 dwarves_fprintf: Export the 'tabs' variable
1016 ab714acec86841b7 pahole: Support zero sized base type arrays
1017 ff7815a0f823a676 pahole: Add missing space before '}' in array__fprintf_base_type_value()
1018 5f2502274e1097db pahole: Support zero sized arrays in array__fprintf_base_type_value()
1019 3aadfbdd72e32016 pahole: Follow array type typedefs to find real sizeof(entry)
1020 7309039aa7510eec pahole: Make 'type' + 'type_enum' select a type to cast a variable sized record
1021 42b7a759f37e5d45 dutil: Add a strlwr() helper to lowercase a string, returning it
1022 a5bb31b86fbe5362 pahole: Fix --skip for variable sized records
1023 f4df384d77312867 pahole: Decouple reading ->sizeof_member from printing
1024 78cdde5cb7200555 pahole: Introduce 'type_enum' class argument
1025 163c330d3138e56f dwarves: Introduce cu__find_enumeration_by_name()
1026 20051b7157fce20c pahole: Add the 'type' modifier to make a struct member be used to find a cast type
1027 210dffe0d13d171b pahole: Iterate classes in the order specified in the command line:
1028 37a5c7c5ba0e1e7d strlist: Allow iterating a strlist in the original order
1029 6b5d938d99b2e457 pahole: Support multiple class/struct args
1030 affbebf04bcaa1ec pahole: Make the class splitter take into account per-class parameters
1031 84387de4a5cf141d pahole: Allow specifying a struct member based sizeof() override
1032 e0773683fa3edd61 dwarves: Allow setting a struct/class member as the source of sizeof()
1033 f399db09a0d5b069 pahole: Allow simple parser for arguments to classes
1034 04d957ba3cdf1047 pahole: Add variable for class name when traversing list of classes
1035 f3d9054ba8ff1df0 btf_encoder: Teach pahole to store percpu variables in vmlinux BTF.
1036 fe284221448c950d pahole: Introduce --seek_bytes
1037 44af7c02b5d0a7f2 pahole: Implement --skip, just like dd
1038 5631fdcea1bbe2bc pahole: Introduce --count, just like dd's
1039 272bc75024b4f08c man-pages: Add information about stdin raw data pretty printing
1040 66835f9e190ce77e pahole: Add support for base type arrays
1041 1a67d6e70090953d pahole: Factor out base_type__fprintf_value()
1042 6fb98aa1209f02b5 pahole: Support char arrays when dumping from stdin
1043 a231d00f8d08825e pahole: Print comma at the end of field name + field value
1044 1b2cdda38c0a6f5e dwarves: Introduce tag__is_array()
1045 a83313fb22520d8d pahole: Pretty print base types in structs from stdin
1046 cc65946e3068f7b6 dwarves: Adopt tag__is_base_type() from ctrace.c
1047 d8079c6d373a5754 pahole: Hex dump a type from stdio when it isn't a tty
1048 38109ab45fe0307d spec: Fix date
1049
1050 v1.17:
1051
1052 Fri 13 Mar 2020
1053
1054 f14426e41046 docs: Add command line to generate tarball with a prefix
1055 0b2621d426ea dwarves: Avoid truncation when concatenating paths for dir entries
1056 d7b351079583 dwarves: Don't use conf if its NULL in cus__load_running_kernel()
1057 dde3eb086dd3 dwarves: Make list__for_all_tags() more robust
1058 081f3618a795 dwarves: Add -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 to build libbpf
1059 e8f43a4963bf libbpf: Get latest libbpf
1060 de84ae36c738 cmake: libebl was merged into libdw
1061 290b8fdbdab7 pahole: Improve --contains --recursive a bit
1062 3d5be866e55f pahole: Fill 'tab' with spaces earlier
1063 88674f039551 gobuffer: Do not crash on object without any public symbols
1064 cb17f94f46a0 Add changes-v1.16 to the MANIFEST file
1065 32a19e044c93 pahole: Fix changelog date in dwarves.spec
1066 9b09f578b7d1 pahole: Initialize var to silence -Werror=maybe-uninitialized on gcc version 4.8.5 20150623
1067 277c2b3d1b4a man-pages: Add section about --hex + -E to locate offsets deep into sub structs
1068 812c980b3f76 man-pages: Update some info, expand BTF info, add some EXAMPLES
1069 e0942c7b031f pahole: Add support for finding pointers to void
1070 6a326e93088e pahole: Make --contains and --find_pointers_to to work with base types
1071 3c1a9a3329d9 pahole: Make --contains look for more than just unions, structs
1072 ded5d36f9cf5 dwarves: Introduce cu__find_type_by_name
1073 88d99562e55c pahole: Add --structs to ask just for structs, counterpart of --unions
1074 0b444cf1118c pahole: Make --contains and --find_pointers_to honour --unions
1075 a8a7e605bb45 pahole: Make --find_pointers_to consider unions
1076 0dc327e382f8 pahole: Consider unions when looking for classes containing some class
1077 3661f17d0b2c pahole: Introduce --unions to consider just unions
1078 2dd09c617101 pahole: union have no holes, fix --sizes formatter
1079 6c29cca8c28f pahole: Don't consider unions for options that only make sense for structs
1080 dcba200367f7 pahole: When the sole argument passed isn't a file, take it as a class name
1081 1944de0c93e6 pahole: Use function__for_each_parameter()
1082 66e640508e4d dwarves: Make function__for_each_parameter receive 'cu' arg
1083 252b0fcc91cc pahole: Fix -m/--nr_methods - Number of functions operating on a type pointer
1084 202c8d5f5bd5 pahole: Do not require a class name to operate without a file name
1085 617f5ac2e6c9 dwarves: Move BTF loader ahead of the CTF one
1086 cdd5e1399b9c btf loader: Support raw BTF as available in /sys/kernel/btf/vmlinux
1087
1088 v1.16:
1089
1090 Mon Dec 16 2019
1091
1092 69df73444c69 (HEAD -> master, acme.korg/master) dwarves: Add -O2 to CFLAGS
1093 6d11dd157f75 elfcreator: Address initialization warning emitted by 'gcc -O6'
1094 1bc63a4cffa7 fprintf: Fixup truncation possibility pointed out by gcc -O2
1095 5c590fc29d06 ptr_table: Zero out new id ranges
1096 644466dce77f fprintf: Remove extraneous sizeof operator
1097 a59459bb80e7 fprintf: Account inline type __aligned__ member types for spacing
1098 56547f133a5b fprintf: Fix alignment of class members that are structs/enums/unions
1099 be37b64aef38 dwarves: Ignore static members for alignment
1100 cca018e495a8 SPEC: Add dwarves dependency on libdwarves1
1101 ccf3eebfcd9c btf_loader: Add support for BTF_KIND_FUNC
1102 f95fd85f7b53 pfunct: type->type == 0 is void, fix --compile for that
1103 3e8f09e304ba (origin/master, origin/HEAD) pdwtags: Print DW_TAG_subroutine_type as well
1104 3c5f2a224aa1 btf_encoder: Preserve and encode exported functions as BTF_KIND_FUNC
1105 910e060b5c4b btf_loader: Skip BTF_KIND_DATASEC entries
1106 96235a74a34d btf_loader: Replace if/else series with a proper switch {}
1107 a4ba2234ff58 btf_loader: Support BTF_KIND_VAR
1108 5965ce015eab dwarves: Fix ptr_table__add_with_id() handling of pt->nr_entries
1109 173911ac38ea btf_loader: Show the unknown kind numbers
1110 0d8e11e8568e pglobal: Allow passing the format path specifier, to use with BTF
1111 ba27df9f2f94 CMakeLists: Use lib/bpf/include/uapi when building libdwarves
1112 95517e1d995e libbpf: Get latest libbpf
1113 ca294eebfc47 MANIFEST: Add missing files
1114 d5e01d10e515 fprintf: Set tconf.type_spacing earlier
1115 c6a9a0eb6ac7 fprintf: Fix up decrementing recursivity level in type__fprintf()
1116 93c3cdf89715 cmake: Add -Wall to CFLAGS
1117 7360f0528ff3 elfcreator: Remove unused 'machine' variable
1118 0f52b11f911c prefcnt: Avoid ambiguous else with for_each macro
1119 608813d0affa pglobal: Avoid ambiguous else
1120 77d06c2d305d reorganize: Enclose bitfield routines under ifdef
1121 2221ae30bce9 reorganize: Ditch unused variable
1122 c419c513eae5 libbtf: Enlarge the 'cmd' buffer to not possibly truncate the pathname
1123 092fffe56701 btf_loader: Enum values are s32, cast before calling btf_elf__get32()
1124 7bfb1aa80f9a libctf: Enlarge the 'cmd' buffer to not possibly truncate the pathname
1125 f67c281f9841 fprintf: Correct the type for the 'cacheline' variable, it should be uint32_t
1126 7b36fab5a8df fprintf: Add guard against unlikely overlapping copy
1127 e737976c09d9 fprintf: Do not scrub type when looking up its type
1128 e95dacb704bf fprintf: Remove unused printf arg when printing enumerations
1129 71c4f83f2828 emit: Remove unused 'is_pointer' variable
1130 fe87354c31bb dwarves: Ditch unused asprintf() function
1131 60c73a769882 dwarves: We need to consistently check if 'conf was specified
1132 5fdfd09a6bbe dwarves: Fix check in type__find_first_biggest_size_base_type_member()
1133 24ced5be8a75 dwarf_loader: Fix array overrun access
1134 33e2d7aa35a7 ctf_loader: Plug leak when bailing out due to unknown tag
1135 aefa9303818b codiff: Remove unused filenames variable
1136 de5e72bc15fb btf_loader: Plug leak when bailing out due to unknown tag
1137 511a79129494 dwarves: Remove unused variable
1138 b1412a88bb61 fprintf: Fixup handling classes with no members
1139 [acme@quaco pahole]$
1140
1141 v1.15
1142
1143 Thu Jun 27 2019
1144
1145 3ed9a67967cf fprintf: Avoid null dereference with NULL configs
1146 568dae4bd498 printf: Fixup printing "const" early with "const void"
1147 68f261d8dfff fprintf: Fix recursively printing named structs in --expand_types
1148 139a3b337381 ostra: Initial python3 conversion
1149 01276a7e8966 spec: Sync spec with fedora's
1150 9f1f0628b9ad rpm: Add missing devel headers
1151 989dc3f1ba0d cmake: Install missing devel headers
1152
1153 v1.13
1154
1155 Tue Apr 16 2019
1156
1157 See changes-v1.13 for a more verbose description of the changes.
1158
1159 0fb727166a0e pfunct: Strip inlines in the code generated for --compile
1160 7b967744db7b emit: Emit the types for inline structs defined in pointer members
1161 30526e2848db fprintf: Print relative offsets for inner pointer structs
1162 cfa377c238f8 emit: Do not emit a forward declararion to a nameless struct
1163 cf459ca16fb2 fprintf: Pretty print struct members that are pointers to nameless structs
1164 09ed2e78befe pfunct: Emit definitions for pointers inside pointer to function args
1165 e9fc2f647026 fullcircle: Check that we found the CFLAGS
1166 05921c47f557 emit: Handle typedefs that are a pointer to typedefs
1167 87af9839bf63 fullcircle: Try building from pfunct --compile and check types
1168 c7fd9cc1fe97 pfunct: Fixup more return types
1169 56c50b8dbe9b emit: Make find_fwd_decl a bit more robust
1170 2bcb01fc2f9d fprintf: Handle single zero sized array member structs
1171 0987266cd9e2 fprintf: Deal with zero sized arrays in the midle of a union
1172 1101337a7450 fprintf: Deal with zero sized arrays in the middle of a struct
1173 13aa13eb0ca4 fprintf: Don't reuse 'type' in multiple scopes in the same function
1174 c8fc6f5a7a46 core: Use unnatural alignment of struct embedded in another to infer __packed__
1175 6f0f9a881589 fprintf: Fixup multi-dimensional zero sized arrays const handling
1176 9a4d71930467 fprintf: Allow suppressing the inferred __attribute__((__packed__))
1177 ec935ee422b0 fprintf: Allow suppressing the output of force paddings at the end of structs
1178 8471736f3c6c core: Cope with zero sized types when looking for natural alignment
1179 986a3b58a869 fprintf: Only add bitfield forced paddings when alignment info available
1180 49c27bdd6663 core: Allow the loaders to advertise features they have
1181 dc6b9437a3a0 emit: Handle structs with DW_AT_alignment=1 meaning __packed__
1182 f78633cfb949 core: Infer __packed__ for union struct members
1183 75c52de9c6df core: Move packed_attribute_inferred from 'class' to 'type' class
1184 1bb4527220f4 fprintf: Fixup const pointers
1185 dc3d44196103 core: Improve the natural alignment calculation
1186 ac32e5e908ba codiff: Fix comparision of multi-cu against single-cu files
1187 f2641ce169d6 core: Take arrays into account when inferring if a struct is packed
1188 85c99369631a fprintf: Do not add explicit padding when struct has __aligned__ attr
1189 b5e8fab596d3 emit: Cover void ** as a function parameter
1190 28a3bc7addad fprintf: Support packed enums
1191 f77a442f09e3 fprintf: Do not print the __aligned__ attribute if asked
1192 ea583dac52f0 fprintf: Print zero sized flat arrays as [], not [0]
1193 f909f13dd724 fprintf: Fixup handling of unnamed bitfields
1194 3247a777dcfc core: Infer if a struct is packed by the offsets/natural alignments
1195 13e5b9fc00ee fprintf: Add unnamed bitfield padding at the end to rebuild original type
1196 ccd67bdb205b fprintf: Print "const" for class members more early, in type__fprintf()
1197 b42d77b0bbda fprintf: Print __attribute__((__aligned__(N))) for structs/classes
1198 1c9c1d6bbd45 dwarf_loader: Store DW_AT_alignment if available in DW_TAG_{structure,union,class}_type
1199 41c55858daf4 codiff: Add --quiet option
1200 a104eb1ea11d fprintf: Notice explicit bitfield alignment modifications
1201 75f32a24c7c7 codiff: Improve the comparision of anonymous struct members
1202 6b1e43f2c1ac codiff: When comparing against a file with just one CU don't bother finding by name
1203 15a754f224f7 core: Add nr_entries member to 'struct cus'
1204 99750f244cb8 pfunct: Generate a valid return type for the --compile bodies
1205 881aabd6fc22 reorganize: Introduce class__for_each_member_from_safe()
1206 1b2e3389f304 reorganize: Introduce class__for_each_member_reverse()
1207 10fef2916dce reorganize: Introduce class__for_each_member_continue()
1208 e7a56ee8cc69 reorganize: Introduce class__for_each_member_from()
1209 9a79bb6ced23 tag: Introduce tag__is_pointer_to()
1210 45ad54594442 tag: Introduce tag__is_pointer()
1211 89ce57a02e3a pdwtags: Find holes in structs
1212 ce6f393bc9ea fprintf: Fixup the printing of const parameters
1213 7aec7dd6c29c pfunct: Do not reconstruct external functions
1214 163b873f81c8 pfunct: Do not reconstruct inline expansions of functions
1215 ea83b780eca0 pfunct: Handle unnamed struct typedefs
1216 e7ebc05d12e1 emit: Unwind the definitions for typedefs in type__emit_definitions()
1217 093135b0bfd5 pfunct: Do not emit a type multiple times
1218 3ce2c5216612 pfunct: Ask for generating compilable output that generates DWARF for types
1219 e7a786540d83 pfunct: Make --expand_types/-b without -f expand types for all functions
1220 9b2eadf97b44 pfunct: Follow const, restrict, volatile in --expand_types
1221 f3f86f2f89b0 pfunct: Reconstruct function return types for --expand_types
1222 a7d9c58cb81a fprintf: Add missing closing parens to the align attribute
1223 d83d9f578fa0 dwarf_loader: Handle DW_TAG_label in inline expansions
1224 73e545b144b4 dwarf_loader: Handle unsupported_tag in die__process_inline_expansion
1225 fe590758cb3f class__find_holes: Zero out bit_hole/hole on member
1226 863c2af6e9d7 reorganize: Disable the bitfield coalescing/moving steps
1227 b95961db697a fprintf: Show statistics about holes due to forced alignments
1228 ec772f21f681 fprintf: Show the number of forced alignments in a class
1229 52d1c75ea437 btfdiff: Use --suppress_aligned_attribute with -F dwarf
1230 6cd6a6bd8787 dwarves_fprintf: Allow suppressing the __attribute__((__aligned__(N))
1231 f31ea292e3cb dwarf_loader: Store the DW_AT_alignment if available
1232 c002873c4479 dwarves_fprintf: Move invariant printing of ; to outside if block
1233 8ce85a1ad7f0 reorganize: Use class__find_holes() to recalculate holes
1234 5d1c4029bd45 dwarves: Fix classification of byte/bit hole for aligned bitfield
1235 78c110a7ea24 dwarves: Revert semantics of member bit/byte hole
1236 b56fed297e5f dwarves_fprintf: Count bitfield member sizes separately
1237 c0fdc5e685e9 dwarf_loader: Use DWARF recommended uniform bit offset scheme
1238 5104d1bef384 loaders: Record CU's endianness in dwarf/btf/ctf loaders
1239 975757bc8867 dwarves: Use bit sizes and bit/byte hole info in __class__fprintf
1240 1838d3d7623e dwarves: Revamp bit/byte holes detection logic
1241 03d9b6ebcac7 dwarf_loader: Fix bitfield fixup logic for DWARF
1242 4abc59553918 btf_loader: Adjust negative bitfield offsets early on
1243 41cf0e3cba0c dwarf_loader: Don't recode enums and use real enum size in calculations
1244 55c96aaed8ce loaders: Strip away volatile/const/restrict when fixing bitfields
1245 7005757fd573 libbpf: Sync in latest libbpf sources
1246 69970fc77ec5 pahole: Filter out unions when looking for packable structs
1247 fa963e1a8698 dwarves_fprintf: Print the bit_offset for inline enum bitfield class members
1248 bb8350acf52f dwarves: Switch type_id_t from uint16_t to uint32_t
1249 5375d06faf26 dwarves: Introduce type_id_t for use with the type IDs
1250 f601f6725890 libctf: The type_ids returned are uint32_t fixup where it was uint16_t
1251 c9b2ef034f89 dwarf: Add cu__add_tag_with_id() to stop using id == -1 to allocate id
1252 762e7b58f447 dwarves: Change ptr_table__add() signature to allow for uint32_t returns
1253 079e6890b788 dwarf_loader: Mark tag__recode_dwarf_bitfield() static
1254 3526ebebd3ab pahole: Use 32-bit integers for type ID iterations within CU
1255 3bd8da5202e4 libbpf: update reference to bring in btf_dedup fixes
1256 a9afcc65fc8f btf_encoder: Don't special case packed enums
1257 8f4f280163b7 btf_loader: Simplify fixup code by relying on BTF data more
1258 be5173b4df0f dwarves: Fixup sizeof(long double) in bits in base_type_name_to_size table
1259 5081ed507095 dwarves: Add _Float128 base_type
1260 d52c9f9b9455 dwarf_loader: Fixup bitfield entry with same number of bits as its base_type
1261 6586e423d4fa btf_loader: Fix bitfield fixup code
1262 7daa4300d230 pahole: Complete list of base type names
1263 6bcf0bd70305 btfdiff: Support specifying custom pahole location
1264 88028b5d0c32 btfdiff: Use --show_private_classes with DWARF
1265 e6c59bd11d3d libbpf: Build as PIC and statically link into libdwarves
1266 cf4f3e282d64 cmake: Bump miminum required version to use OBJECT feature
1267 5148be53dc65 btfdiff: Rename tmp files to contain the format used
1268 dd3a7d3ab3e8 btf_encoder: run BTF deduplication before writing out to ELF
1269 54106025cd14 libbtf: Fixup temp filename to .btf, not .btfe
1270 e6dfd10bcbf3 libbpf: Build as shared lib
1271 c234b6ca6e55 libbpf: Pull latest libbpf
1272 fe4e1f799c55 btf_elf: Rename btf_elf__free() to btf_elf__delete()
1273 6780c4334d55 btf: Rename 'struct btf' to 'struct btf_elf'
1274 ca86e9416b8b pahole: use btf.h directly from libbpf
1275 21507cd3e97b pahole: add libbpf as submodule under lib/bpf
1276 c25ada500ddc pahole: Add build dir, config.h to .gitignore
1277 a58c746c4c7e Fixup copyright notices for BTF files authored by Facebook engineers
1278 e714d2eaa150 Adopt SPDX-License-Identifier
1279 c86960dce55d btf_loader: We can set class_member->type_offset earlier
1280 278b64c3eee0 btfdiff: Use diff's -p option to show the struct/union
1281 1182664d6aa6 dwarves_fprintf: Handle negative bit_offsets in packed structs with bitfields
1282 b0cf845e02c6 dwarves: Change type of bitfield_offset from uint8_t to int8_t
1283 06e364bc62e7 btfdiff: Add utility to compare pahole output produced from DWARF and BTF
1284 b79db4cab41c dwarves: add __int128 types in base_type_name_to_size
1285 de3459cc0ebe btf_loader: BTF encodes the size of enums as bytes not bits
1286 693347f8def7 btf_encoder: Fix void handling in FUNC_PROTO.
1287 2d0b70664f3e dwarves_fprintf: Separate basic type stats into separate type__fprintf() method
1288 18f5910f96e0 dwarves: Add type to tag helper
1289 f2092f56586a btf: recognize BTF_KIND_FUNC in btf_loader
1290 11766614096c btf: Fix kind_flag usage in btf_loader
1291 68b93e6858ae dutil: Add missing string.h header include
1292 851ef335e328 dutil: Drop 'noreturn' attribute for ____ilog2_NaN()
1293 ab0cb33e54e8 btf_loader: Fixup class_member->bit_offset for !big_endian files
1294 b24718fe27d3 dwarves: Fix documentation for class_memer->bitfield_size
1295 3ffe5ba93b63 pahole: Do not apply 'struct class' filters to 'struct type'
1296 da18bb340bee dwarves: Check if the tag is a 'struct class' in class__find_holes()
1297 2a82d593be81 btf: Add kind_flag support for btf_loader
1298 472256d3c57b btf_loader: Introduce a loader for the BTF format
1299 93d6d0016523 dwarves: No need to print the "signed ", the name has it already
1300 0a9bac9a3e8e dwarves: Relookup when searching for signed base types
1301 a2cdc6c2a0a3 dutil: Adopt strstart() from the linux perf tools sources
1302 3aa3fd506e6c btf: add func_proto support
1303 8630ce404287 btf: fix struct/union/fwd types with kind_flag
1304 65bd17abc72c btf: Allow multiple cu's in dwarf->btf conversion
1305 d843945ba514 pahole: Search for unions as well with '-C'
1306 da632a36862c dwarves: Introduce {cu,cus}__find_struct_or_union_by_name() methods
1307 31664d60ad41 pahole: Show tagged enums as well when no class is specified
1308 b18354f64cc2 btf: Generate correct struct bitfield member types
1309 70ef8c7f07ff dwarves_fprintf: Set conf.cachelinep in union__fprintf() too
1310 bfdea37668c6 dwarves_fprintf: Print the scope of variables
1311 465110ec99d3 dwarves: Add the DWARF location to struct variable
1312 c65f2cf4361e dwarves: Rename variable->location to ->scope
1313 0d2511fd1d8e btf: Fix bitfield encoding
1314 92417082aad3 MANIFEST: Add missing COPYING file
1315 eb6bd05766f5 dwarf_loader: Process DW_AT_count in DW_TAG_subrange_type
1316
1317 v1.12
1318
1319 Thu Aug 16 2018
1320
1321 1ca2e351dfa1 README.btf: Add section on validating the .BTF section via the kernel
1322 9eda5e8163ce README.btf: No need to use 'llvm.opts = -mattr=dwarfris' with elfutils >= 0.173
1323 7818af53f64a dwarves: Add a README.btf file with steps to test the BTF encoder
1324 f727c22191d0 dwarf_loader: Initial support for DW_TAG_partial_unit
1325 e975ff247aa8 dwarves_fprintf: Print cacheline boundaries in multiple union members
1326 68645f7facc2 btf: Add BTF support
1327 81466af0d4f8 pahole: Show the file where a struct was used
1328 2dd87be78bb2 dwarves_fprintf: Show offsets at union members
1329 66cf3983e1ac README.DEBUG: Add an extra step to make the instructions cut'n'exec
1330 2a092d61453c dwarves: Fix cus__load_files() success return value
1331 02a456f5f54c pahole: Search and use running kernel vmlinux when no file is passed
1332 5f057919a0c0 man-pages: Add entry for --hex
1333
1334 v1.11
1335
1336 Wed Jun 2017
1337
1338 5a57eb074170 man-pages: Update URL to the dwarves paper
1339 b52386d041fa dwarves_fprintf: Find holes when expanding types
1340 103e89bb257d dwarves_fprintf: Find holes on structs embedded in other structs
1341 ab97c07a7ebe dwarves_fprintf: Fixup cacheline boundary printing on expanded structs
1342 046ad67af383 dwarves_fprintf: Shorten class__fprintf() sig
1343 44130bf70e1c dwarves: Update e-mail address
1344 327757975b94 dwarf_loader: Add URL for template tags description
1345 f4d5e21fd1b2 dwarf_loader: Tidy up template tags usage
1346 e12bf9999944 dwarf_loader: Do not hash unsupported tags
1347 3afcfbec9e08 dwarf_loader: Add DW_TAG_GNU_formal_parameter_pack stub in process_function
1348 55d9b20dbaf6 dwarf_loader: Ignore DW_TAG_dwarf_procedure when processing functions
1349 45618c7ec122 dwarf_loader: Initial support for DW_TAG_unspecified_type
1350 658a238b9890 dwarf_loader: Stop emitting warnings about DW_TAG_call_site
1351 0fbb39291d59 dwarf_loader: Add support for DW_TAG_restrict_type
1352 9df42c68265d dwarves: Initial support for rvalue_reference_type
1353 8af5ccd86d21 dwarves: Use cus__fprintf_load_files_err() in the remaining tools
1354 10515a7c4db7 dwarves: Introduce cus__fprintf_load_files_err()
1355 0e6463635082 pahole: Show more informative message when errno is properly set on error
1356 2566cc2c8715 pdwtags: Show proper error messages for files it can't handle
1357 9f3f67e78679 dwarves: Fix cus__load_files() error return
1358 ae3a2720c3d3 dutil: Add ____ilog2_NaN declaration to silence compiler warning
1359 0b81b5ad4743 Update version in CMakeLists.txt
1360 79536f4f9587 cmake: Use INTERFACE_LINK_LIBRARIES
1361 1decb1bc4a41 dwarf_loader: Check cu__find_type_by_ref result
1362 956343d05a41 Add instructions on how to build with debug info
1363 e71353c3fa0a dwarf_loader: Ignore DW_TAG_dwarf_procedure
1364 189695907242 dwarves_fprintf: Add the missing GNU_ suffix to DWARF_TAG_ created by the GNU project
1365 d973b1d5daf0 dwarf_fprintf: Handle DW_TAG_GNU_call_site{_parameter}
1366 c23eab4b1253 dwarf_loader: Print unknown tags as an hex number
1367 943a0de0679a dwarves_fprintf: DW_TAG_mutable_type doesn't exist.
1368 a8e562a15767 dwarf_loader: Use obstack_zalloc when allocating tag
1369 fd3838ae9aa3 dwarves: Stop using 'self'
1370 5ecf1aab9e10 dwarf_loader: Support DW_FORM_data{4,8} for reading class member offsets
1371 c4ccdd5ae63b dwarves_reorganize: Fix member type fixup
1372 e31fda3063e3 dwarves_reorganize: Fixup calculation of bytes needed for bitfield
1373 1e461ec7e0e8 dwarves_fprintf: Fix printf types on 64bit linux
1374 222f0067a9c3 dwarves_fprintf: Don't ignore virtual data members
1375 e512e3f9b36b dwarves: Update git url
1376 8c6378fd8834 dwarves: Support static class data members
1377 a54515fa6ee4 dwarves: Stop using 'self'
1378 6035b0d91f19 rpm: Add missing BuildRequires: zlib-devel
1379 be7b691756ff dwarf_loader: Don't stop processing after finding unsupported tag
1380
1381 v1.10
1382
1383 Wed May 30 2012
1384
1385 . Initial DWARF4 support, by Tom Tromey
1386
1387 . Add stubs for some new GNU Tags
1388
1389 . Fix build on older systems
1390
1391 . Fix a crash when pahole is called with -R -S, from Tal Kelrich
1392
1393 v1.9:
1394
1395 Ignore DW_TAG_template_{type,value}_parameter, fixing a bug reported at:
1396
1397 https://bugzilla.redhat.com/show_bug.cgi?id=654471
1398
1399 More work is needed to properly support these tags.
1400
1401 -----------------------------------------
1402
1403 After a long time without a new release because I was trying to get the CTF
1404 support completed, and due to the very strong gravity force in the Linux kernel
1405 perf tools, here it is 1.8, with lots of performance improvements, bug fixes
1406 and changes to better use these tools in scripts.
1407
1408 For full details please take a look at the git changesets, repo available at:
1409
1410 http://git.kernel.org/cgit/devel/pahole/pahole.git
1411
1412 - Arnaldo
1413
1414 pahole:
1415
1416 . Allow list of structs to be passed to pahole.
1417
1418 E.g.: 'pahole -C str_node,strings'
1419
1420 Suggested by Zack Weinberg <[email protected]>, for scripting.
1421
1422 . Introduce --hex to print offsets and sizes in hexadecimal
1423
1424 codiff:
1425
1426 . Improve detection of removal and addition of members in structs
1427
1428 . Detect changes in padding and the number of holes/bit_holes
1429
1430 pfunct:
1431
1432 . --no_parm_names
1433
1434 Because CTF doesn't encodes the names of the parameters and I want to
1435 test the upcoming CTF function section code in ctftwdiff.
1436
1437 . pfunct --addr
1438
1439 Using an rbtree to find in which function the given addr is.
1440
1441 libdwarves:
1442
1443 . Greatly reduce the data structures footprint and lookup by recoding
1444 the IDs as short integers, that was done to facilitate support for CTF
1445 but benefited the core libraries greatly.
1446
1447 . Handle GCC support for vector instructions
1448
1449 So now it recognizes, as printed by pdwtags:
1450
1451 908 typedef int __m64 __attribute__ ((__vector_size__ (8))); size: 8
1452 909 int array __attribute__ ((__vector_size__ (8))); size: 8
1453 910 int array __attribute__ ((__vector_size__ (4))); size: 4
1454 911 short int array __attribute__ ((__vector_size__ (2))); size: 2
1455 912 char array __attribute__ ((__vector_size__ (1))); size: 1
1456
1457 . Destructors were added so that no leaks are left if this library is to
1458 be used in other tools that don't end the program when done using this lib.
1459
1460 . Allow the tools to pass a callback that is used after loading each object
1461 file (CU/Compile Unit), so that we can more quickly find tags and stop
1462 the processing sooner, or at least delete the CU if it doesn't have anything
1463 needed by the tool. This _greatly_ speeded up most of the tools.
1464
1465 . Tools now can pass a debug format "path", specifying the order it wants to
1466 try, so that if a file have both DWARF and CTF, specifying 'ctf,dwarf' will
1467 use the CTF info.
1468
1469 . Now the formatting routines are in a separate file, dwarves_fprintf.c. This
1470 was done for organizational purposes but also to pave the way for multiple
1471 formatting backends, so that we can print, for instance, in CSV the structs,
1472 for easier scripting like done by several folks out there.
1473
1474 . Handle volatile typedef bitfields, like:
1475
1476 struct _GClosure {
1477 volatile guint ref_count:15; /* 0:17 4 */
1478 volatile guint meta_marshal:1; /* 0:16 4 */
1479 volatile guint n_guards:1; /* 0:15 4 */
1480
1481 . Load java 'interfaces' as a struct/class.
1482
1483 . Fix buffer expansion bug, detected thanks to boost that provided things like:
1484
1485 virtual int undefine(class
1486 grammar_helper<boost::spirit::grammar<boost::detail::graph::dot_skipper,
1487 boost::spirit::parser_context<boost::spirit::nil, class
1488 grammar<boost::detail::graph::dot_skipper,
1489 boost::spirit::parser_context<boost::spirit::nil_t> > *); /*
1490 linkage=_ZN5boost6spirit4impl14grammar_helperINS0_7grammarINS_6detail5graph11dot_skipperENS0_14parser_contextINS0_5nil_tEEEEES6_NS0_7scannerINS0_10multi_passISt16istream_i
1491 */
1492
1493 . Allow optional addr information loading, speeding up some apps that don't
1494 use such addresses (or in modes where addrs aren't used) such as pahole.
1495
1496 . Use a obstacks, speeding up apps as measured with the perf tools.
1497
1498 . Support zero sized arrays in the middle of a struct.
1499
1500 . Fix padding calculation in the reorganize routines.
1501
1502 . Fix bitfield demotion in the reorganize routines.
1503
1504 . Support "using" pointing to data members (C++).
1505
1506 . Properly support pointers to const, reported by Jan Engelhardt <[email protected]>:
1507
1508 . Support more compact DW_AT_data_member_location form, pointed out by Mark
1509 Wielaard <[email protected]> and reported by Mike Snitzer <[email protected]>
1510
1511 Experimental CTF support:
1512
1513 libdwarves was reorganized so that it can support multiple debugging formats,
1514 with the first one being supported being the Compact C Type Format that comes
1515 from the OpenSolaris world.
1516
1517 David S. Miller contributed an initial CTF decoder and from there I wrote an
1518 encoder.
1519
1520 To test this a regression testing harness (regtest in the sources) that will
1521 take files with DWARF info and from there encode its contents in CTF in another
1522 ELF section in the same file (.SUN_ctf). Then it will decode both the DWARF
1523 and CTF sections and compare the results for pahole running with some new
1524 flags that cope with some subtleties in the way CTF encodes things.
1525
1526 --flat_arrays
1527
1528 We have just one dimension in CTF, with the total number of entries,
1529 in DWARF we can express this, but not in CTF:
1530
1531 __u8 addr[0][6]; /* 4 0 */
1532
1533 So --flat_arrays will show it as:
1534
1535 __u8 addr[0]; /* 4 0 */
1536
1537 --show_private_classes
1538 --fixup_silly_bitfields
1539
1540 To cope with things like 'char foo:8' that since CTF has only the
1541 number of bits, can't be expressed as we don't know if it is a
1542 bitfield or just a char without the ':8' suffix.
1543
1544 --first_obj_only
1545
1546 Look only at the first object file in a file with multiple object
1547 files, like vmlinux. This is because the CTF support is not complete yet,
1548 needing the merging of types in multiple object files to be done.
1549
1550 --classes_as_structs
1551
1552 CTF has only a type for structs, not for classes like DWARF (DW_TAG_class_type
1553 is not present in CTF), so print them all as 'struct'.
1554
1555 Running with the above limitations produce just a few mismatches, related to
1556 packed structs and enumerations and bitfields.