c0192c
#
c0192c
# crash core analysis suite
c0192c
#
f8eaaa
%global reponame crash-trace
f8eaaa
c0192c
Summary: Trace extension module for the crash utility
c0192c
Name: crash-trace-command
f8eaaa
Version: 3.0
f8eaaa
Release: 1%{?dist}
c0192c
License: GPLv2
c0192c
Group: Development/Debuggers
f8eaaa
Source: https://github.com/fujitsu/crash-trace/archive/v%{version}/%{name}-%{version}.tar.gz
f8eaaa
URL: https://github.com/fujitsu/crash-trace
c0192c
# Vendor: Fujitsu Limited
c0192c
# Packager: Qiao Nuohan <qiaonuohan@cn.fujitsu.com>
c0192c
ExclusiveOS: Linux
a6d37e
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
f8eaaa
f8eaaa
Patch0: 0001-Makefile-set-DT_SONAME-to-trace.so.patch
f8eaaa
Patch1: 0002-Makefile-fix-build-failure-on-aarch64-and-ppc64le.patch
c0192c
c0192c
%description
c0192c
Command for reading ftrace data from a dumpfile.
c0192c
c0192c
%prep
f8eaaa
%setup -q -n %{reponame}-%{version}
f8eaaa
%patch0 -p1 -b 0001-Makefile-set-DT_SONAME-to-trace.so.patch
f8eaaa
%patch1 -p1 -b 0002-Makefile-fix-build-failure-on-aarch64-and-ppc64le.patch
c0192c
c0192c
%build
c0192c
make
c0192c
c0192c
%install
c0192c
mkdir -p %{buildroot}%{_libdir}/crash/extensions/
f8eaaa
cp %{_builddir}/%{reponame}-%{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
f8eaaa
* Fri Nov 18 2022 Lianbo Jiang <lijiang@redhat.com> - 3.0-1
f8eaaa
- Rebase to upstream v3.0
f8eaaa
- Update to the latest upstream commit
f8eaaa
  Resolves: rhbz#2119709
f8eaaa
085f43
* Mon Feb 08 2021 Lianbo Jiang <lijiang@redhat.com> - 2.0-18
085f43
- Rename trace_buffer to array_buffer
085f43
- Rename ring_buffer to trace_buffer
085f43
  Resolves: rhbz#1925907
085f43
a6d37e
* Mon Jul 27 2020 Bhupesh Sharma <bhsharma@redhat.com> - 2.0-17
a6d37e
- Chnage Source/URL to point to the latest github location
a6d37e
  Resolves: rhbz#1851746
a6d37e
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