696c6f
#
696c6f
# crash core analysis suite
696c6f
#
696c6f
Summary: Trace extension module for the crash utility
696c6f
Name: crash-trace-command
696c6f
Version: 2.0
696c6f
Release: 15%{?dist}
696c6f
License: GPLv2
696c6f
Group: Development/Debuggers
696c6f
Source: %{name}-%{version}.tar.gz
696c6f
URL: http://people.redhat.com/anderson/extensions/%{name}-%{version}.tar.gz
696c6f
# Vendor: Fujitsu Limited
696c6f
# Packager: Qiao Nuohan <qiaonuohan@cn.fujitsu.com>
696c6f
ExclusiveOS: Linux
696c6f
ExclusiveArch: x86_64 %{ix86} ppc64 ia64 s390 s390x aarch64 %{arm} ppc64le %{mips}
696c6f
Buildroot: %{_tmppath}/%{name}-root
696c6f
BuildRequires: zlib-devel lzo-devel snappy-devel
696c6f
BuildRequires: crash-devel >= 7.2.0-2
696c6f
Requires: trace-cmd
696c6f
Requires: crash >= 7.2.0-2
696c6f
Patch0: trace_compiler_warnings.patch
696c6f
Patch1: replace_obsolete_init_and_fini.patch
696c6f
Patch2: sigsegv_on_calloc_failure.patch
696c6f
Patch3: initialize_trace_dat.patch
696c6f
Patch4: ARM64.patch
696c6f
Patch5: linux_3.10_support.patch
696c6f
Patch6: ppc64le.patch
696c6f
Patch7: linux_4.2_support.patch
696c6f
Patch8: TRACE_EVENT_FL_TRACEPOINT_flag.patch
696c6f
Patch9: big_endian_nr_pages.patch
696c6f
Patch10: ppc64_ring_buffer_read.patch
696c6f
Patch11: rhel8_build.patch
696c6f
696c6f
Patch1001: ARM32.patch
696c6f
Patch1002: MIPS.patch
696c6f
696c6f
%description
696c6f
Command for reading ftrace data from a dumpfile.
696c6f
696c6f
%prep
696c6f
%setup -q -n %{name}-%{version}
696c6f
%patch0 -p1 -b trace_compiler_warnings.patch
696c6f
%patch1 -p1 -b replace_obsolete_init_and_fini.patch
696c6f
%patch2 -p1 -b sigsegv_on_calloc_failure.patch
696c6f
%patch3 -p1 -b initialize_trace_dat.patch
696c6f
%patch4 -p1 -b ARM64.patch
696c6f
%patch5 -p1 -b linux_3.10_support.patch
696c6f
%patch6 -p1 -b ppc64le.patch
696c6f
%patch7 -p1 -b linux_4.2_support.patch
696c6f
%patch8 -p1 -b TRACE_EVENT_FL_TRACEPOINT_flag.patch
696c6f
%patch9 -p1 -b big_endian_nr_pages.patch
696c6f
%patch10 -p1 -b ppc64_ring_buffer_read.patch
696c6f
%patch11 -p1 -b rhel8_build.patch
696c6f
696c6f
%patch1001 -p1 -b ARM32.patch
696c6f
%patch1002 -p1 -b MIPS.patch
696c6f
696c6f
%build
696c6f
make
696c6f
696c6f
%install
696c6f
mkdir -p %{buildroot}%{_libdir}/crash/extensions/
696c6f
cp %{_builddir}/%{name}-%{version}/trace.so %{buildroot}%{_libdir}/crash/extensions/
696c6f
696c6f
%clean
696c6f
rm -rf %{buildroot}
696c6f
696c6f
%files
696c6f
%defattr(-,root,root)
696c6f
%{_libdir}/crash/extensions/trace.so
696c6f
%doc COPYING
696c6f
696c6f
%changelog
696c6f
* Mon Feb 10 2020 Nan xiongchao <nanxiongchao@loongson.cn> - 2.0-15
696c6f
- add mips64 support
696c6f
696c6f
* Mon May 20 2019 Pablo Greco <pgreco@centosproject.org> - 2.0-15
696c6f
- Fix for armhfp
696c6f
696c6f
* Wed Sep 19 2018 Dave Anderson <anderson@redhat.com> - 2.0-15
696c6f
- annocheck: link with -Wl,-z,now
696c6f
  Resolves: rhbz#1630558
696c6f
696c6f
* Mon Aug 13 2018 Dave Anderson <anderson@redhat.com> - 2.0-14
696c6f
- Bump release for mass rebuild
696c6f
  Resolves: rhbz#1615511
696c6f
696c6f
* Wed Dec  6 2017 Dave Anderson <anderson@redhat.com> - 2.0.13
696c6f
- Build requires crash-devel-7.2.0-2 and usage requires crash-7.2.0-2
696c6f
  because of load_module structure change.
696c6f
  Resolves: rhbz#1520825
696c6f
696c6f
* Sun Apr 16 2017 Dave Anderson <anderson@redhat.com> - 2.0.12
696c6f
- Differentiate ppc64 .ring_buffer_read text symbol from ring_buffer_read data symbol
696c6f
- Fix for ring_buffer_per_cpu.nr_pages size change on big-endian systems 
696c6f
- Fix for Linux 4.7 change to the TRACE_EVENT_FL_TRACEPOINT flag
696c6f
  Resolves: rhbz#1441914
696c6f
  Resolves: rhbz#1440726
696c6f
696c6f
* Thu Feb 25 2016 Dave Anderson <anderson@redhat.com> - 2.0-10
696c6f
- Fix for ftrace symbol name changes in Linux 4.2 
696c6f
  Resolves: rhbz#1265553
696c6f
696c6f
* Tue Sep 02 2014 Dave Anderson <anderson@redhat.com> - 2.0-9
696c6f
- Add ppc64le support.
696c6f
  Resolves: rhbz#1123995
696c6f
696c6f
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.0-8
696c6f
- Mass rebuild 2014-01-24
696c6f
696c6f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0-7
696c6f
- Mass rebuild 2013-12-27
696c6f
696c6f
* Thu Dec  5 2013 Dave Anderson <anderson@redhat.com> - 2.0-6
696c6f
- Add Linux 3.10 support.
696c6f
  Resolves: rhbz#863833
696c6f
696c6f
* Tue Nov 12 2013 Dave Anderson <anderson@redhat.com> - 2.0-5
696c6f
- Add ARM64 support.
696c6f
  Resolves: rhbz#1028580
696c6f
696c6f
* Tue Aug 20 2013 Dave Anderson <anderson@redhat.com> - 2.0-4
696c6f
- crash utility has added LZO and snappy compression in addition to zlib
696c6f
696c6f
* Wed May 29 2013 Dave Anderson <anderson@redhat.com> - 2.0-3
696c6f
- Replace obsolete _init() and _fini() functions.
696c6f
- Fix possible segmentation violation on calloc() failure.
696c6f
- Initialize trace_dat to avoid compiler warning.
696c6f
696c6f
* Mon Nov 26 2012 Dave Anderson <anderson@redhat.com> - 2.0-2
696c6f
- trace-cmd package required
696c6f
- rpmlint cleanups to this file 
696c6f
- fix compiler warnings for trace.c
696c6f
696c6f
* Wed Nov  21 2012 Qiao Nuohan <qiaonuohan@cn.fujitsu.com> - 2.0-1
696c6f
- update code
696c6f
  Resolves: rhbz#863833
696c6f
696c6f
* Wed Feb  8 2012 Dave Anderson <anderson@redhat.com> - 1.0-4
696c6f
- Build with RPM_OPT_FLAGS.
696c6f
  Resolves: rhbz#729018
696c6f
696c6f
* Wed Jun  9 2010 Dave Anderson <anderson@redhat.com> - 1.0-3
696c6f
- Remove trace_dump.patch, which requires a kernel later than
696c6f
  the RHEL6 base of 2.6.32.
696c6f
  Resolves: rbhz#601536
696c6f
696c6f
* Mon May 24 2010 Dave Anderson <anderson@redhat.com> - 1.0-2
696c6f
- Fix for segmentation violation with "trace show -c cpu" command,
696c6f
  and add "trace dump -t" command.
696c6f
  Resolves: rbhz#592887
696c6f
696c6f
* Wed Dec 09 2009 Dave Anderson <anderson@redhat.com> - 1.0-1.2
696c6f
- fix Makefile to account for s390 build
696c6f
- change exclusive arch entry from i386 to {ix86}
696c6f
- Resolves: rbhz#545564
696c6f
696c6f
* Tue Dec 08 2009 Dennis Gregorovic <dgregor@redhat.com> - 1.0-1.1
696c6f
- Rebuilt for RHEL 6
696c6f
696c6f
* Fri Sep 25 2009  Dave Anderson <anderson@redhat.com>
696c6f
- Initial crash-trace-command package
696c6f