]>
Commit | Line | Data |
---|---|---|
c1015854 JB |
1 | Summary: Utilities for block layer I/O tracing |
2 | Summary(pl.UTF-8): Narzędzia do śledzenia we/wy warstwy blokowej | |
235c4e55 | 3 | Name: blktrace |
1e92afbd | 4 | Version: 1.3.0 |
235c4e55 AM |
5 | Release: 1 |
6 | License: GPL v2+ | |
7 | Group: Applications/System | |
1e92afbd JP |
8 | Source0: https://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: aa9bc7d76870d8dae56aa816527e8e15 | |
c1015854 | 10 | BuildRequires: libaio-devel |
0e479def | 11 | BuildRequires: sed >= 4.0 |
235c4e55 AM |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
13 | ||
14 | %description | |
c1015854 JB |
15 | blktrace is a block layer I/O tracing mechanism which provides |
16 | detailed information about request queue operations up to user space. | |
17 | This is valuable for diagnosing and fixing performance or application | |
18 | problems relating to block layer I/O. | |
235c4e55 | 19 | |
c1015854 JB |
20 | %description -l pl.UTF-8 |
21 | blktrace to mechanizm do śledzenia we/wy warstwy blokowej, | |
22 | zapewniający szczegółowe informacje o operacjach kolejki żądań dla | |
23 | przestrzeni użytkownika. Jest to bardzo przydatne przy diagnostyce i | |
24 | naprawianiu problemów z wydajnością lub aplikacjami związanych z we/wy | |
25 | warstwy blokowej. | |
235c4e55 AM |
26 | |
27 | %prep | |
c1015854 | 28 | %setup -q |
235c4e55 | 29 | |
1e92afbd | 30 | %{__sed} -i -e '1s, /usr/bin/env python,%{__python3},' btt/b??_plot.py |
0e479def | 31 | |
235c4e55 | 32 | %build |
397bcf7e | 33 | %{__make} -j1 \ |
235c4e55 | 34 | CC="%{__cc}" \ |
66ac8888 | 35 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
235c4e55 AM |
36 | LDFLAGS="%{rpmldflags}" |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
c1015854 JB |
40 | %{__make} install \ |
41 | DESTDIR=$RPM_BUILD_ROOT \ | |
42 | prefix=%{_prefix} \ | |
43 | mandir=%{_mandir} | |
44 | ||
0e479def | 45 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{bno_plot.py,bno_plot} |
235c4e55 AM |
46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc README | |
c1015854 JB |
53 | %attr(755,root,root) %{_bindir}/blkiomon |
54 | %attr(755,root,root) %{_bindir}/blkparse | |
55 | %attr(755,root,root) %{_bindir}/blkrawverify | |
56 | %attr(755,root,root) %{_bindir}/blktrace | |
57 | %attr(755,root,root) %{_bindir}/bno_plot | |
58 | %attr(755,root,root) %{_bindir}/btrace | |
59 | %attr(755,root,root) %{_bindir}/btrecord | |
60 | %attr(755,root,root) %{_bindir}/btreplay | |
61 | %attr(755,root,root) %{_bindir}/btt | |
0e479def | 62 | %attr(755,root,root) %{_bindir}/iowatcher |
c1015854 JB |
63 | %attr(755,root,root) %{_bindir}/verify_blkparse |
64 | %{_mandir}/man1/blkparse.1* | |
65 | %{_mandir}/man1/blkrawverify.1* | |
66 | %{_mandir}/man1/bno_plot.1* | |
67 | %{_mandir}/man1/btt.1* | |
66ac8888 | 68 | %{_mandir}/man1/iowatcher.1* |
c1015854 JB |
69 | %{_mandir}/man1/verify_blkparse.1* |
70 | %{_mandir}/man8/blkiomon.8* | |
71 | %{_mandir}/man8/blktrace.8* | |
72 | %{_mandir}/man8/btrace.8* | |
73 | %{_mandir}/man8/btrecord.8* | |
74 | %{_mandir}/man8/btreplay.8* |