2021-12-09 04:05:19 +08:00
|
|
|
Name: A-Tune-BPF-Collection
|
|
|
|
|
Version: 1.0.0
|
2024-02-26 10:35:41 +08:00
|
|
|
Release: 7
|
2022-08-05 01:03:17 +00:00
|
|
|
License: MulanPSL-2.0
|
2021-12-09 04:05:19 +08:00
|
|
|
Summary: BPF program collection to adjust fine-grained kernel mode to get better performance
|
|
|
|
|
URL: https://gitee.com/openeuler/A-Tune-BPF-Collection
|
|
|
|
|
Source0: https://gitee.com/openeuler/A-Tune-BPF-Collection/repository/archive/v%{version}.tar.gz
|
|
|
|
|
|
2022-08-03 03:22:59 +08:00
|
|
|
Patch1: remove-spec-file-and-change-start_readahead_tune-s-d.patch
|
|
|
|
|
Patch2: Drop-using-legacy-BPF-map-declaration.patch
|
|
|
|
|
Patch3: use-generated-vmlinux.h-instead-of-bpftool-gen-vmlin.patch
|
|
|
|
|
Patch4: Add-stack-protector-compile-option.patch
|
2024-02-26 10:35:41 +08:00
|
|
|
Patch5: adapted-libbpf-library-interface-to-fix-build-failure.patch
|
2021-12-08 15:32:43 +08:00
|
|
|
|
|
|
|
|
BuildRequires: clang, llvm, libbpf-devel
|
2021-12-09 04:05:19 +08:00
|
|
|
Requires: libbpf
|
|
|
|
|
Provides: readahead_tune
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A-Tune BPF Collection contains a set of BPF program which can interact with kernel in real time.
|
|
|
|
|
It has the following capabilities:
|
|
|
|
|
readahead_tune: trace file reading characteristics, then ajust file read mode to get maximum I/O efficency
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-v%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make %{?_smp_mflags}
|
2023-05-05 17:44:17 +08:00
|
|
|
%define __os_install_post %{nil}
|
2021-12-09 04:05:19 +08:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -D -p -m 0755 readahead_tune %{buildroot}/%{_sbindir}/readahead_tune
|
|
|
|
|
install -D -p -m 0644 readahead_tune.bpf.o %{buildroot}/%{_sbindir}/readahead_tune.bpf.o
|
|
|
|
|
install -D -p -m 0755 start_readahead_tune %{buildroot}/%{_sbindir}/start_readahead_tune
|
|
|
|
|
install -D -p -m 0755 stop_readahead_tune %{buildroot}/%{_sbindir}/stop_readahead_tune
|
|
|
|
|
install -D -p -m 0644 readahead_tune.conf %{buildroot}%{_sysconfdir}/sysconfig/readahead_tune.conf
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_sbindir}/readahead_tune
|
|
|
|
|
%{_sbindir}/readahead_tune.bpf.o
|
|
|
|
|
%{_sbindir}/start_readahead_tune
|
|
|
|
|
%{_sbindir}/stop_readahead_tune
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/readahead_tune.conf
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-02-26 10:35:41 +08:00
|
|
|
* Tue Feb 27 2024 zhoupengcheng<zhoupengcheng11@huawei.com> - 1.0.0-7
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: adapted libbpf library interface to fix build failure
|
|
|
|
|
|
2023-05-05 17:44:17 +08:00
|
|
|
* Fri May 5 2023 li-miaomiao_zhr<mmlidc@isoftstone.com> - 1.0.0-6
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: fix wrong file name referenced in spec file causing build failure,remove spec file from the source package
|
|
|
|
|
|
2022-08-05 01:03:17 +00:00
|
|
|
* Fri Aug 05 2022 fushanqing <fushanqing@kylinos.cn> - 1.0.0-5
|
|
|
|
|
- Unified license name specification
|
|
|
|
|
|
2022-08-03 03:22:59 +08:00
|
|
|
* Wed Aug 3 2022 lvying<lvying6@huawei.com> - 1.0.0-4
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Adapt new kernel and BPF compatibility
|
|
|
|
|
|
2022-03-08 19:10:03 -08:00
|
|
|
* Wed Mar 9 2022 lvying<lvying6@huawei.com> - 1.0.0-3
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Add stack protector compile option
|
|
|
|
|
|
2021-12-08 15:32:43 +08:00
|
|
|
* Wed Dec 8 2021 lvying<lvying6@huawei.com> - 1.0.0-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: use generated vmlinux.h instead of bpftool gen vmlinux.h in compile env
|
|
|
|
|
|
2021-12-09 04:05:19 +08:00
|
|
|
* Tue Nov 9 2021 lvying<lvying6@huawei.com> - 1.0.0-1
|
|
|
|
|
- Type:feature
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Init A-Tune-BPF-Collection repo and add readahead_tune service
|