dwarves
dwarves copied to clipboard
Pahole and the dwarves
Unless I'm missing something, it seems like pahole `--btf_encode_detached` doesn't export all the global variables ```shell $ ../pahole_git/build/pglobal -v vmlinux-5.8.0-53-generic | sed '/^$/d' | wc -l 26843 $ ../pahole_git/build/pahole --btf_encode_detached...
According to man: https://github.com/acmel/dwarves/blob/49358dfe2aaae4e90b072332c3e324019826783f/man-pages/pahole.1#L286-L288 But in the HEAD of repo, there is no reference of `dwarf_offset` besides man-pages: ```bash $ ag dwarf_offset rpm/SPECS/dwarves.spec 389:- PAHOLE: Add a newline after the...
my environment: kernel version 5.10.0 elfutils-devel 0.182-1 libdw-dev 0.177 libelfutils1-devel 0.182 problems: [root@localhost ~]# pahole /bin/ls pahole: symbol lookup error: pahole: undefined symbol: tabs
```shell $ cat struct_foo.c struct foo { int array[10][20]; }; int main() { struct foo bar; } EOF $ gcc -ggdb struct_foo.c -o struct_foo $ ../pahole_git/build/pahole struct_foo struct foo {...
dwarves-1.24: ``` [ 2s] + /usr/bin/cmake /home/abuild/rpmbuild/BUILD/dwarves-1.24/. '-GUnix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_INSTALL_LIBDIR:PATH=lib64 -DCMAKE_INSTALL_LIBEXECDIR=/usr/libexec -DCMAKE_BUILD_TYPE=RelWithDebInfo '-DCMAKE_C_FLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g' '-DCMAKE_CXX_FLAGS=-O2 -Wall...
Throwing userspace programs with atomic types at pahole currently results in either odd results (struct fiels with zero length) or straight up segfaults (dereferencing a NULL tag). Add DW_TAG_atomic_type analogous...
This fixes the use of classes_as_structs and probably other options, when fprintf meets a pointer/reference type. Signed-off-by: Alibek Omarov
On distros with elfutils version < 0.170 (SLES 15 SP3 for example), dwarves fails to build with the following error: ``` dwarf_loader.c:2529:13: error: ‘DW_TAG_skeleton_unit’ undeclared (first use in this function);...
Running buildcmd.sh gives me ``` [ 14%] Building C object CMakeFiles/bpf.dir/lib/bpf/src/libbpf_errno.c.o .../dwarves/lib/bpf/src/gen_loader.c: In function 'get_ksym_desc': .../dwarves/lib/bpf/src/gen_loader.c:585:2: error: 'for' loop initial declarations are only allowed in C99 mode for (int i...
Can it be deleted, updated or have link directing people to https://git.kernel.org/pub/scm/devel/pahole/pahole.git I was directed to this repo from a stack overflow post and ended up wasting time trying to...