Skip to content

Commit 52e071d

Browse files
committed
Prep 1.30
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
1 parent 06350d1 commit 52e071d

5 files changed

Lines changed: 72 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ if (NOT DEFINED BUILD_SHARED_LIBS)
4545
endif (NOT DEFINED BUILD_SHARED_LIBS)
4646

4747
# Just for grepping, DWARVES_VERSION isn't used anywhere anymore
48-
# add_definitions(-D_GNU_SOURCE -DDWARVES_VERSION="v1.29")
48+
# add_definitions(-D_GNU_SOURCE -DDWARVES_VERSION="v1.30")
4949
add_definitions(-D_GNU_SOURCE -DDWARVES_MAJOR_VERSION=1)
50-
add_definitions(-D_GNU_SOURCE -DDWARVES_MINOR_VERSION=29)
50+
add_definitions(-D_GNU_SOURCE -DDWARVES_MINOR_VERSION=30)
5151
find_package(DWARF REQUIRED)
5252
find_package(ZLIB REQUIRED)
5353
find_package(argp REQUIRED)

MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ changes-v1.26
5858
changes-v1.27
5959
changes-v1.28
6060
changes-v1.29
61+
changes-v1.30
6162
buildcmd.sh
6263
COPYING
6364
NEWS

NEWS

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
v1.30
2+
3+
06350d14776a77e1 dwarves: Fix clang warning about unused variable
4+
d0511b0cb24ef3f4 dwarves: Add github actions to build, test
5+
b4a071d99bb9e7c0 pahole: When trying to encode BTF avoid DWARF less files
6+
59f5409f1357dee7 dwarf_loader: Fix termination on BTF encoding error
7+
785b9457b2fd2864 pahole: Add a BTF feature check function
8+
d13f825dbed9208c man-pages: Describe attributes and remove reproducible_build
9+
40e82f5be9a7960a pahole: Introduce --btf_feature=attributes
10+
e64fd0dd22bf5395 btf_encoder: Emit type tags for bpf_arena pointers
11+
fe2dcd28ba9d3487 pahole: Sync with libbpf mainline
12+
9cabda4ae6bfadcc btf_encoder: Use __weak declarations of version-dependent libbpf API
13+
c5677178c8b0c426 btf_encoder: Refactor btf_encoder__tag_kfuncs()
14+
cfdce160433adad4 btf_encoder: Filter out __gendwarfksyms_ptr_
15+
a0be596ae76c720d Fix spelling error.
16+
9810758003ce9f8c btf_encoder: Verify 0 address DWARF variables are in ELF section
17+
f4b76280f81bde0b btf_encoder: Fix memory access bugs
18+
119
v1.29
220

321
7f9c031edfc6d2f6 btf_encoder: Always initialize func_state to 0

changes-v1.30

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
CI testing:
2+
3+
- support for github CI tests to build pahole with gcc
4+
and LLVM.
5+
- support for github CI tests to build pahole, a kernel
6+
along with BTF using that pahole and run tests.
7+
- tests can also be run standalone; see toplevel README
8+
for details.
9+
10+
DWARF loader:
11+
12+
- better detection of abort during thread processing.
13+
14+
BTF encoder:
15+
16+
- pahole now uses an improved scheme to detect presence of
17+
newer libbpf functions for cases where pahole is built with
18+
a non-embedded libbpf. A local weak declaration is added,
19+
and if the function is non-NULL - indicating it is present -
20+
the associated feature is avaialble. BTF feature detection
21+
makes use of this now and BTF features declared in pahole
22+
can provide a feature check function.
23+
24+
- Type tags are now emitted for bpf_arena pointers if the
25+
attributes btf_feature is specified.
26+
27+
- kfunc tagging has been refactored into btf_encoder__collect_kfuncs
28+
to simplify from the previous two-stage collect/tag process.
29+
30+
- To support global variables other than per-CPU variables, code
31+
was added to match a variable with the relevant section. However
32+
variables in to-be-discarded sections have address value 0 and
33+
appeared to be in the per-CPU section (since it starts at 0).
34+
Add checks to ensure the variable really is in the relevant
35+
ELF section.
36+
37+
- To avoid expensive variable address checking in the above case,
38+
filter out variables prefixed by __gendwarfksyms_ptr_ which are
39+
present when CONFIG_GENDWARFKSYMS is set.
40+
41+
- Memory access bugs reported by address sanitizer were also fixed.

rpm/SPECS/dwarves.spec

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%define libver 1
33

44
Name: dwarves
5-
Version: 1.29
5+
Version: 1.30
66
Release: 1%{?dist}
77
License: GPL-2.0-only
88
Summary: Debugging Information Manipulation Tools (pahole & friends)
@@ -79,7 +79,7 @@ rm -Rf %{buildroot}
7979
%files
8080
%doc README.ctracer
8181
%doc README.btf
82-
%doc changes-v1.29
82+
%doc changes-v1.30
8383
%doc NEWS
8484
%{_bindir}/btfdiff
8585
%{_bindir}/codiff
@@ -131,6 +131,14 @@ rm -Rf %{buildroot}
131131
%{_libdir}/%{libname}_reorganize.so
132132

133133
%changelog
134+
* Wed Apr 9 2025 Alan Maguire <alan.maguire@oracle.com> - 1.30-1
135+
- Better detection of abort during DWARF loader thread processing
136+
- pahole now detects presence of libbpf APIs and BTF features using weak function
137+
declarations when built using a shared library libbpf
138+
- Type tags are emitted for BPF arena pointers with new BTF "attributes" feature
139+
140+
Signed-off-by: Alan Maguire <alan.maguuire@oracle.com> - 1.30-1
141+
134142
* Wed Jan 15 2025 Arnaldo Carvalho de Melo <acme@redhat.com> - 1.29-1
135143
- Multithreading is now in the DWARF loader using a jobs queue and a pool of worker threads.
136144
- The BTF encoding now is always reproducible, and as fast/faster than before.

0 commit comments

Comments
 (0)