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