blktrace/blktrace.spec
2024-09-24 06:13:25 +00:00

136 lines
4.6 KiB
RPMSpec

Name: blktrace
Version: 1.2.0
Release: 27
Summary: Block IO tracer in the Linux kernel
License: GPLv2+
Source: http://brick.kernel.dk/snaps/blktrace-%{version}.tar.bz2
URL: https://git.kernel.dk/cgit/blktrace
BuildRequires: gcc, xz, libaio-devel, python3, librsvg2-devel blktrace sysstat theora-tools
Provides: iowatcher = %{version}-%{release}
Obsoletes: iowatcher < %{version}-%{release}
Requires: python3
Patch1: 0001-jhash-fix-annoying-gcc-fall-through-warnings.patch
Patch2: 0002-btt-devs-silence-warning-on-sprintf-overflow.patch
Patch3: 0003-btt-Fix-overlapping-IO-stats.patch
Patch4: 0004-blktrace-don-t-stop-tracer-if-not-setup-trace-succes.patch
Patch5: 0005-blkparse-remove-duplicated-entry-for-flag-M.patch
Patch6: 0006-btt-make-device-devno-use-PATH_MAX-to-avoid-overflow.patch
Patch7: 0007-make-btt-scripts-python3-ready.patch
Patch8: 0008-blktrace-remove-python2-dedpendency.patch
Patch9: 0009-btreplay-fix-device-IO-remap-functionality.patch
Patch10: 0010-blkparse-split-off-the-timestamp-correction-code-in-.patch
Patch11: 0011-blkparse-fix-absolute-timestamp-when-reading-from-fi.patch
Patch12: 0012-btt_plot.py-Use-with-open-as-.-context-manager.patch
Patch13: 0013-blkparse-Fix-device-in-event-tracking-error-messages.patch
Patch14: 0014-blkparse-Allow-request-tracking-on-non-md-dm-devices.patch
Patch15: 0015-blkparse-Initialize-and-test-for-undefined-request-t.patch
Patch16: blktrace-fix-exit-directly-when-nthreads-running.patch
Patch17: 0017-blktrace-Makefile-add-fstack-protector-strong-flag.patch
Patch18: 0018-fix-parallel-build-failures.patch
Patch19: 0019-fix-parallel-build-of-btt-and-blkiomon.patch
Patch20: 0020-blkparse-skip-check_cpu_map-with-pipe-input.patch
Patch21: 0021-blkparse-fix-incorrectly-sized-memset-in-check_cpu_m.patch
Patch22: 0022-fix-hang-when-BLKTRACESETUP-fails-and-o-is-used.patch
%description
blktrace is a block layer IO tracing mechanism which provides detailed
information about request queue operations up to user space. This is
valuable for diagnosing and fixing performance or application problems
relating to block layer io.
%package help
Summary: Including man files for blktrace
Requires: man
%description help
This contains man files for the using of blktrace.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%make_build
%install
make dest=%{buildroot} prefix=%{buildroot}/%{_prefix} mandir=%{buildroot}/%{_mandir} install
%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/*
%{_bindir}/iowatcher
%files help
%{_mandir}/man1/*
%{_mandir}/man8/*
%changelog
* Tue Sep 24 2024 wangxiao <wangxiao184@h-partners.com> - 1.2.0-27
- DESC: backport upstream patches
blkparse skip check_cpu_map with pipe input
blkparse fix incorrectly sized memset in check_cpu_map
fix hang when BLKTRACESETUP fails and "-o -" is used
* Sat Oct 09 2021 zhanchengbin <zhanchengbin1@huawei.com> - 1.2.0-26
- Fixed the issue of modifying parallel compilation
* Wed Sep 29 2021 Wenchao Hao <haowenchao@huawei.com> - 1.2.0-25
- NOP:nothing but to make it able to sync between differnt branches
* Mon Sep 13 2021 zhanchengbin <zhanchengbin1@huawei.com> - 1.2.0-24
- DESC: Makefile add fstack-protector-srtong flag patch
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.2.0-23
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Fri Jul 23 2021 yanglongkang <yanglongkang@huawei.com> - 1.2.0-22
- delete -j1 compilation options
* Fri Jul 23 2021 zhouwenpei <zhouwenpei1@huawei.com> - 1.2.0-21
- remove useless buildrequires
* Mon Jul 12 2021 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.2.0-20
- backport upstream patches
* Wed Jul 07 2021 Wu Bo <wubo009@163.com> - 1.2.0-19
- rebuild package
* Mon Jul 05 2021 linxiaoran<linxiaoran@huawei.com> - 1.2.0-18
- blktrace fix exit direclty when nthreads running
* Tue Feb 9 2021 Zhiqiang Liu<liuzhiqiang26@huawei.com> - 1.2.0-17
- set release num to 17 for CI
* Tue Aug 18 2020 smileknife<jackshan2010@aliyun.com> - 1.2.0-14
- update release for rebuild package
* Wed Mar 18 2020 sunshihao<sunshihao@huawei.com> - 1.2.0-13
- Type:enhancemnet
- ID:NA
- SUG:restart
- DESCi:modify python2 expression to python3
* Tue Feb 25 2020 hy-euler <eulerstoragemt@huawei.com> - 1.2.0-12
- Type:enhancemnet
- ID:NA
- SUG:restart
- DESC:modify the URL to git web in spec file
* Mon Feb 17 2020 sunshihao<sunshihao@huawei.com> - 1.2.0-11
- Type:enhancemnet
- ID:NA
- SUG:restart
- DESC:blktrace remove python2 dependency
* Fri Aug 30 2019 zoujing<zoujing13@huawei.com> - 1.2.0-10
- Type:enhancemnet
- ID:NA
- SUG:restart
- DESC:openEuler Debranding
* Thu Aug 15 2019 Buildteam <buildteam@openeuler.org> - 1.2.0-9
- Package Initialization