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