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