From 7d5651d82e992cd3d0fca5899b2e02044923841b Mon Sep 17 00:00:00 2001 From: cherry530 <707078654@qq.com> Date: Tue, 14 Jan 2025 15:32:48 +0800 Subject: [PATCH] fix tuna apply example.conf failed due to kernel version >=5.13 Signed-off-by: cherry530 <707078654@qq.com> (cherry picked from commit aada4d7b68092ea3d8ad713fae756806dec37c0a) --- tuna.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tuna.spec b/tuna.spec index 9a90964..f9bd06b 100644 --- a/tuna.spec +++ b/tuna.spec @@ -1,6 +1,6 @@ Name: tuna Version: 0.19 -Release: 1 +Release: 2 Summary: Application tuning GUI & command line utility License: GPLv2 URL: https://rt.wiki.kernel.org/index.php/Tuna @@ -57,6 +57,15 @@ install -p -m755 tuna-cmd.py %{buildroot}/%{_bindir}/tuna install -p -m755 oscilloscope-cmd.py %{buildroot}/%{_bindir}/oscilloscope install -p -m644 help/kthreads/* %{buildroot}/%{_datadir}/tuna/help/kthreads/ install -p -m644 docs/tuna.8 %{buildroot}/%{_mandir}/man8/ +#kernel version >= 5.13 Move SCHED_DEBUG sysctl to debugfs +#https://github.com/torvalds/linux/commit/8a99b6833c884fa0e7919030d93fecedc69fc625 +sed -i '/kernel.sched_latency_ns/d' etc/tuna/example.conf +sed -i '/kernel.sched_min_granularity_ns/d' etc/tuna/example.conf +sed -i '/kernel.sched_nr_migrate/d' etc/tuna/example.conf +sed -i '/kernel.sched_tunable_scaling/d' etc/tuna/example.conf +sed -i '/kernel.sched_wakeup_granularity_ns/d' etc/tuna/example.conf +sed -i '/kernel.sched_migration_cost_ns/d' etc/tuna/example.conf + install -p -m644 etc/tuna/example.conf %{buildroot}/%{_sysconfdir}/tuna/ install -p -m644 etc/tuna.conf %{buildroot}/%{_sysconfdir}/ install -p -m644 org.tuna.policy %{buildroot}/%{_datadir}/polkit-1/actions/ @@ -88,6 +97,9 @@ done %doc ChangeLog %changelog +* Tue Jan 14 2025 xu_ping <707078654@qq.com> - 0.19-2 +- fix tuna apply example.conf failed due to kernel version >=5.13 + * Mon Oct 16 2023 chenyaqiang - 0.19-1 - Upgrade to 0.19