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