131 lines
3.8 KiB
RPMSpec
131 lines
3.8 KiB
RPMSpec
%define libname libdwarves
|
|
%define libver 1
|
|
|
|
Name: dwarves
|
|
Version: 1.15
|
|
Release: 5%{?dist}
|
|
License: GPLv2
|
|
Summary: Debugging Information Manipulation Tools (pahole & friends)
|
|
URL: http://acmel.wordpress.com
|
|
Source: http://fedorapeople.org/~acme/dwarves/%{name}-%{version}.tar.xz
|
|
Patch: 0001-fprintf-Fixup-handling-classes-with-no-members.patch
|
|
Requires: %{libname}%{libver} = %{version}-%{release}
|
|
BuildRequires: gcc
|
|
BuildRequires: cmake
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: elfutils-devel >= 0.130
|
|
|
|
%description
|
|
dwarves is a set of tools that use the debugging information inserted in
|
|
ELF binaries by compilers such as GCC, used by well known debuggers such as
|
|
GDB, and more recent ones such as systemtap.
|
|
|
|
Utilities in the dwarves suite include pahole, that can be used to find
|
|
alignment holes in structs and classes in languages such as C, C++, but not
|
|
limited to these.
|
|
|
|
It also extracts other information such as CPU cacheline alignment, helping
|
|
pack those structures to achieve more cache hits.
|
|
|
|
These tools can also be used to encode and read the BTF type information format
|
|
used with the Linux kernel bpf syscall, using 'pahole -J' and 'pahole -F btf'.
|
|
|
|
A diff like tool, codiff can be used to compare the effects changes in source
|
|
code generate on the resulting binaries.
|
|
|
|
Another tool is pfunct, that can be used to find all sorts of information about
|
|
functions, inlines, decisions made by the compiler about inlining, etc.
|
|
|
|
%package -n %{libname}%{libver}
|
|
Summary: Debugging information processing library
|
|
|
|
%description -n %{libname}%{libver}
|
|
Debugging information processing library.
|
|
|
|
%package -n %{libname}%{libver}-devel
|
|
Summary: Debugging information library development files
|
|
Requires: %{libname}%{libver} = %{version}-%{release}
|
|
|
|
%description -n %{libname}%{libver}-devel
|
|
Debugging information processing library development files.
|
|
|
|
%prep
|
|
%setup -q -c -n %{name}-%{version}
|
|
%patch -p1
|
|
|
|
%build
|
|
%cmake .
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -Rf %{buildroot}
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
%ldconfig_scriptlets -n %{libname}%{libver}
|
|
|
|
%files
|
|
%doc README.ctracer
|
|
%doc README.btf
|
|
%doc NEWS
|
|
%{_bindir}/btfdiff
|
|
%{_bindir}/codiff
|
|
%{_bindir}/ctracer
|
|
%{_bindir}/dtagnames
|
|
%{_bindir}/fullcircle
|
|
%{_bindir}/pahole
|
|
%{_bindir}/pdwtags
|
|
%{_bindir}/pfunct
|
|
%{_bindir}/pglobal
|
|
%{_bindir}/prefcnt
|
|
%{_bindir}/scncopy
|
|
%{_bindir}/syscse
|
|
%{_bindir}/ostra-cg
|
|
%dir %{_datadir}/dwarves/
|
|
%dir %{_datadir}/dwarves/runtime/
|
|
%dir %{_datadir}/dwarves/runtime/python/
|
|
%defattr(0644,root,root,0755)
|
|
%{_mandir}/man1/pahole.1*
|
|
%{_datadir}/dwarves/runtime/Makefile
|
|
%{_datadir}/dwarves/runtime/linux.blacklist.cu
|
|
%{_datadir}/dwarves/runtime/ctracer_relay.c
|
|
%{_datadir}/dwarves/runtime/ctracer_relay.h
|
|
%attr(0755,root,root) %{_datadir}/dwarves/runtime/python/ostra.py*
|
|
|
|
%files -n %{libname}%{libver}
|
|
%{_libdir}/%{libname}.so.*
|
|
%{_libdir}/%{libname}_emit.so.*
|
|
%{_libdir}/%{libname}_reorganize.so.*
|
|
|
|
%files -n %{libname}%{libver}-devel
|
|
%doc MANIFEST README
|
|
%{_includedir}/dwarves/btf_encoder.h
|
|
%{_includedir}/dwarves/config.h
|
|
%{_includedir}/dwarves/ctf_encoder.h
|
|
%{_includedir}/dwarves/ctf.h
|
|
%{_includedir}/dwarves/dutil.h
|
|
%{_includedir}/dwarves/dwarves.h
|
|
%{_includedir}/dwarves/dwarves_emit.h
|
|
%{_includedir}/dwarves/dwarves_reorganize.h
|
|
%{_includedir}/dwarves/elfcreator.h
|
|
%{_includedir}/dwarves/elf_symtab.h
|
|
%{_includedir}/dwarves/gobuffer.h
|
|
%{_includedir}/dwarves/hash.h
|
|
%{_includedir}/dwarves/libbtf.h
|
|
%{_includedir}/dwarves/libctf.h
|
|
%{_includedir}/dwarves/list.h
|
|
%{_includedir}/dwarves/rbtree.h
|
|
%{_includedir}/dwarves/strings.h
|
|
%{_libdir}/%{libname}.so
|
|
%{_libdir}/%{libname}_emit.so
|
|
%{_libdir}/%{libname}_reorganize.so
|
|
|
|
%changelog
|
|
* Wed Nov 06 2019 Jiri Olsa <jolsa@redhat.com> - 1.15-5
|
|
- Add libdwarves version dependency to dwarves package
|
|
|
|
* Mon Nov 04 2019 Jiri Olsa <jolsa@redhat.com> - 1.15-4
|
|
- CI rebuild
|
|
|
|
* Wed Sep 25 2019 Jiri Olsa <jolsa@redhat.com> - 1.15-1
|
|
- Initial build
|