c20f60
Summary: Utilities for performing block layer IO tracing in the Linux kernel
c20f60
Name: blktrace
c20f60
Version: 1.2.0
7ff2e3
Release: 10%{?dist}
c20f60
License: GPLv2+
c20f60
Group: Development/System
c20f60
Source:  http://brick.kernel.dk/snaps/blktrace-%{version}.tar.bz2
c20f60
Url: http://brick.kernel.dk/snaps
c20f60
c20f60
BuildRequires: python3-devel
c20f60
BuildRequires: gcc, libaio-devel, librsvg2-devel
c20f60
c20f60
Patch0: blktrace-fix-btt-overflow.patch
c20f60
Patch1: blktrace-python3.patch
c20f60
c20f60
%description
c20f60
blktrace is a block layer IO tracing mechanism which provides detailed
c20f60
information about request queue operations to user space.  This package
c20f60
includes both blktrace, a utility which gathers event traces from the kernel;
c20f60
and blkparse, a utility which formats trace data collected by blktrace.
c20f60
c20f60
You should install the blktrace package if you need to gather detailed
c20f60
information about IO patterns.
c20f60
c20f60
c20f60
%prep
c20f60
%setup -q
c20f60
%patch0 -p1
c20f60
%patch1 -p1
c20f60
c20f60
sed -i '1s=^#!/usr/bin/python3=#!%{__python3}=' \
c20f60
    btt/{btt_plot.py,bno_plot.py}
c20f60
c20f60
%build
c20f60
make CFLAGS="%{optflags} %{build_ldflags}" all
c20f60
c20f60
%install
c20f60
rm -rf %{buildroot}
c20f60
make dest=%{buildroot} prefix=%{buildroot}/%{_prefix} mandir=%{buildroot}/%{_mandir} install
c20f60
c20f60
%files
c20f60
%doc README COPYING
c20f60
%{_bindir}/blkparse
c20f60
%{_bindir}/blkrawverify
c20f60
%{_bindir}/bno_plot.py
c20f60
%{_bindir}/btt
c20f60
%{_bindir}/verify_blkparse
c20f60
%{_bindir}/blkiomon
c20f60
%{_bindir}/blktrace
c20f60
%{_bindir}/btrace
c20f60
%{_bindir}/btrecord
c20f60
%{_bindir}/btreplay
c20f60
%{_mandir}/man1/blkparse.*
c20f60
%{_mandir}/man1/blkrawverify.*
c20f60
%{_mandir}/man1/bno_plot.*
c20f60
%{_mandir}/man1/btt.*
c20f60
%{_mandir}/man1/verify_blkparse.*
c20f60
%{_mandir}/man8/blkiomon.*
c20f60
%{_mandir}/man8/blktrace.*
c20f60
%{_mandir}/man8/btrace.*
c20f60
%{_mandir}/man8/btrecord.*
c20f60
%{_mandir}/man8/btreplay.*
c20f60
c20f60
%package -n iowatcher
c20f60
Summary: Utility for visualizing block layer IO patterns and performance
7ff2e3
Requires: blktrace sysstat theora-tools librsvg2-tools
c20f60
c20f60
%description -n iowatcher
c20f60
iowatcher generates graphs from blktrace runs to help visualize IO patterns and
c20f60
performance as SVG images or movies. It can plot multiple blktrace runs
c20f60
together, making it easy to compare the differences between different benchmark
c20f60
runs.
c20f60
c20f60
You should install the iowatcher package if you need to visualize detailed
c20f60
information about IO patterns.
c20f60
c20f60
%files -n iowatcher
c20f60
%doc README iowatcher/COPYING
c20f60
%{_bindir}/iowatcher
c20f60
%{_mandir}/man1/iowatcher.*
c20f60
c20f60
%changelog
7ff2e3
* Tue May 14 2019 Eric Sandeen <sandeen@redhat.com> - 1.2.0-10
7ff2e3
- Add librsvg2-tools dependency to iowatcher (#1700065)
7ff2e3
c20f60
* Wed Jun 20 2018 Tomas Orsava <torsava@redhat.com> - 1.2.0-9
c20f60
- Switch hardcoded python3 shebangs into the %%{__python3} macro
c20f60
- Add missing BuildRequires on python3-devel so that %%{__python3} macro is
c20f60
  defined
c20f60
c20f60
* Thu May 24 2018 Eric Sandeen <sandeen@redhat.com> - 1.2.0-8
c20f60
- Fix CVE-2018-10689 buffer overflow (#1575121)
c20f60
c20f60
* Wed May 16 2018 Eric Sandeen <sandeen@redhat.com> - 1.2.0-7
c20f60
- Make scripts python3-ready
c20f60
c20f60
* Mon May 07 2018 Eric Sandeen <sandeen@redhat.com> - 1.2.0-6
c20f60
- Fix for CVE-2018-10689 (#1575120)
c20f60
c20f60
* Mon Feb 26 2018 Eric Sandeen <sandeen@redhat.com> - 1.2.0-5
c20f60
- BuildRequires: gcc
c20f60
c20f60
* Sun Feb 25 2018 Florian Weimer <fweimer@redhat.com> - 1.2.0-4
c20f60
- Use LDFLAGS from redhat-rpm-config
c20f60
c20f60
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c20f60
c20f60
* Fri Dec 15 2017 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.0-2
c20f60
- Update Python 2 dependency declarations to new packaging standards
c20f60
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c20f60
c20f60
* Mon Nov 06 2017 Eric Sandeen <sandeen@redhat.com> - 1.2.0-1
c20f60
- New upstream version
c20f60
c20f60
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c20f60
c20f60
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c20f60
c20f60
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c20f60
c20f60
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c20f60
c20f60
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c20f60
c20f60
* Fri Sep 26 2014 Andrew Price <anprice@redhat.com> - 1.1.0-1
c20f60
- New upstream version
c20f60
- Add iowatcher subpackage
c20f60
- Remove obsolete 'clean' and 'defattr' sections
c20f60
c20f60
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-7
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c20f60
c20f60
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-6
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c20f60
c20f60
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-5
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c20f60
c20f60
* Thu Mar 21 2013 Eric Sandeen <sandeen@redhat.com> - 1.0.5-4
c20f60
- Remove tex->pdf doc build, fix build & lighten up buildreqs
c20f60
c20f60
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-3
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c20f60
c20f60
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-2
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c20f60
c20f60
* Fri Mar 23 2012 Eric Sandeen <sandeen@redhat.com> - 1.0.5-1
c20f60
- New upstream version
c20f60
c20f60
* Tue Jan 31 2012 Eric Sandeen <sandeen@redhat.com> - 1.0.4-1
c20f60
- New upstream version
c20f60
c20f60
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c20f60
c20f60
* Fri Aug 12 2011 Eric Sandeen <sandeen@redhat.com> - 1.0.3-1
c20f60
- New upstream version
c20f60
c20f60
* Wed Mar 16 2011 Eric Sandeen <sandeen@redhat.com> - 1.0.2-1
c20f60
- New upstream version
c20f60
c20f60
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c20f60
c20f60
* Sat Feb 13 2010 Eric Sandeen <sandeen@redhat.com> - 1.0.1-4
c20f60
- Fix linking with libpthread (#564775)
c20f60
c20f60
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c20f60
c20f60
* Mon May 11 2009 Eric Sandeen <sandeen@redhat.com> - 1.0.1-2
c20f60
- Upstream respun the release tarball to re-include top-level dir
c20f60
- drop exclude of bno_plot.py[co], not getting built now?
c20f60
c20f60
* Mon May 11 2009 Eric Sandeen <sandeen@redhat.com> - 1.0.1-1
c20f60
- New upstream version
c20f60
c20f60
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
c20f60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c20f60
c20f60
* Tue Feb 17 2009 Eric Sandeen <sandeen@redhat.com> - 1.0.0-2
c20f60
- Build PDF documentation after all
c20f60
c20f60
* Sun Nov 02 2008 Eric Sandeen <sandeen@redhat.com> - 1.0.0-1
c20f60
- New upstream version (now with actual versioning!)
c20f60
c20f60
* Fri Feb 08 2008 Eric Sandeen <sandeen@redhat.com> - 0.0-0.9.20080103162505git
c20f60
- gcc-4.3 rebuild
c20f60
c20f60
* Sat Jan 26 2008 Eric Sandeen <sandeen@redhat.com> - 0.0-0.8.20080103162505git
c20f60
- New upstream version
c20f60
c20f60
* Wed Oct 24 2007 Eric Sandeen <sandeen@redhat.com> - 0.0-0.6.20071010202719git
c20f60
- Add libaio-devel to BuildRequires
c20f60
c20f60
* Wed Oct 24 2007 Eric Sandeen <sandeen@redhat.com> - 0.0-0.5.20071010202719git
c20f60
- New upstream version
c20f60
c20f60
* Wed Aug 15 2007 Eric Sandeen <sandeen@redhat.com> - 0.0-0.4.20070730162628git
c20f60
- Fix up btt/Makefile to accept rpm's CFLAGS
c20f60
c20f60
* Tue Aug 14 2007 Eric Sandeen <sandeen@redhat.com> - 0.0-0.3.20070730162628git
c20f60
- Just drop the pdf build, bloats the buildroot for such a simple tool
c20f60
c20f60
* Wed Aug 01 2007 Eric Sandeen <sandeen@redhat.com> - 0.0-0.2.20070730162628git
c20f60
- Add ghostscript to BuildRequires, use attr macro for man pages
c20f60
c20f60
* Wed Aug 01 2007 Eric Sandeen <sandeen@redhat.com> - 0.0-0.1.20070730162628git
c20f60
- New package, initial build.