diff --git a/0001-tuned-adm-Fix-a-traceback-when-run-without-action-sp.patch b/0001-tuned-adm-Fix-a-traceback-when-run-without-action-sp.patch deleted file mode 100644 index 208e24f897ce5f0df9b09b445b0219c04cbd9412..0000000000000000000000000000000000000000 --- a/0001-tuned-adm-Fix-a-traceback-when-run-without-action-sp.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 6678c472abbd5f645dbb99ab2946c0e35ded7499 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= -Date: Tue, 10 Jul 2018 00:24:00 +0200 -Subject: [PATCH] tuned-adm: Fix a traceback when run without action specified -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Running tuned-adm without an action specified using Python 3 results -in a traceback. This is because in this case parse_args does not -exit with a usage message in Python 3 and the 'action' option -is then undefined. - -Signed-off-by: Ondřej Lysoněk ---- - tuned-adm.py | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/tuned-adm.py b/tuned-adm.py -index 1b9623d..1df8cc3 100755 ---- a/tuned-adm.py -+++ b/tuned-adm.py -@@ -100,7 +100,11 @@ if __name__ == "__main__": - debug = options.pop("debug") - asynco = options.pop("async") - timeout = options.pop("timeout") -- action_name = options.pop("action") -+ try: -+ action_name = options.pop("action") -+ except KeyError: -+ parser.print_usage(file = sys.stderr) -+ sys.exit(1) - log_level = options.pop("loglevel") - result = False - --- -2.14.4 - diff --git a/0001-tuned-gui-Sort-plugins-based-on-their-name.patch b/0001-tuned-gui-Sort-plugins-based-on-their-name.patch deleted file mode 100644 index c2d146d2789df5f3083aac7677de9633c100b7bc..0000000000000000000000000000000000000000 --- a/0001-tuned-gui-Sort-plugins-based-on-their-name.patch +++ /dev/null @@ -1,35 +0,0 @@ -From d46834808c3226b3a6e48649df65befc399c21cd Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= -Date: Wed, 11 Jul 2018 00:41:45 +0200 -Subject: [PATCH] tuned-gui: Sort plugins based on their name -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Previously the sorting was done by comparing the objects themselves, -which is not what we want and it doesn't work in Python 3 - TypeError -is raised, e.g: -TypeError: '<' not supported between instances of 'BootloaderPlugin' and 'MountsPlugin' - -Signed-off-by: Ondřej Lysoněk ---- - tuned-gui.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/tuned-gui.py b/tuned-gui.py -index 8f72fd5..e486687 100755 ---- a/tuned-gui.py -+++ b/tuned-gui.py -@@ -278,7 +278,8 @@ class Base(object): - self.treestore_profiles = Gtk.ListStore(GObject.TYPE_STRING, - GObject.TYPE_STRING) - self.treestore_plugins = Gtk.ListStore(GObject.TYPE_STRING) -- for plugin in sorted(self.plugin_loader.plugins): -+ for plugin in sorted(self.plugin_loader.plugins, -+ key = lambda plugin: plugin.name): - self.treestore_plugins.append([plugin.name]) - self.combobox_plugins = \ - self.builder.get_object('comboboxPlugins') --- -2.14.4 - diff --git a/0005-realtime-virtual-host-pin-only-the-vcpu-thread-to-is.patch b/0005-realtime-virtual-host-pin-only-the-vcpu-thread-to-is.patch deleted file mode 100644 index eac3acc059fb522ea927a1c298615ef99ba85a4b..0000000000000000000000000000000000000000 --- a/0005-realtime-virtual-host-pin-only-the-vcpu-thread-to-is.patch +++ /dev/null @@ -1,73 +0,0 @@ -From 4790e570ce0e41bde4e1866ed6e3cba723b5f4d8 Mon Sep 17 00:00:00 2001 -From: Marcelo Tosatti -Date: Wed, 4 Jul 2018 17:30:37 -0300 -Subject: [PATCH 005/124] realtime-virtual-host: pin only the vcpu thread to - isolated pCPU (v2) - -As noted in the bugzilla ticket - -https://bugzilla.redhat.com/show_bug.cgi?id=1554851 - -The QEMU I/O thread can interrupt the time measurement -of the timer. To avoid this problem, only -pin the vCPU thread. - -Signed-off-by: Marcelo Tosatti -Reviewed-and-Tested-by: Luiz Capitulino - -v2: - - Use unix sockets (Luiz) - - Proper numeric output (Luiz) ---- - profiles/realtime-virtual-host/script.sh | 31 +++++++++++++++++++++---------- - 1 file changed, 21 insertions(+), 10 deletions(-) - -diff --git a/profiles/realtime-virtual-host/script.sh b/profiles/realtime-virtual-host/script.sh -index 515d254..32e962d 100755 ---- a/profiles/realtime-virtual-host/script.sh -+++ b/profiles/realtime-virtual-host/script.sh -@@ -17,20 +17,31 @@ run_tsc_deadline_latency() - - for i in `seq 1000 500 7000`; do - echo $i > $KVM_LAPIC_FILE -- chrt -f 1 taskset -c $1 $QEMU -enable-kvm -device pc-testdev \ -+ -+ unixpath=`mktemp` -+ -+ chrt -f 1 $QEMU -S -enable-kvm -device pc-testdev \ - -device isa-debug-exit,iobase=0xf4,iosize=0x4 \ - -display none -serial stdio -device pci-testdev \ - -kernel "$TSCDEADLINE_LATENCY" \ -- -cpu host | grep latency | cut -f 2 -d ":" > $dir/out -- -- if [ ! -f $dir/out ]; then -- die running $TSCDEADLINE_LATENCY failed -- fi -+ -cpu host \ -+ -mon chardev=char0,mode=readline \ -+ -chardev socket,id=char0,nowait,path=$unixpath,server | grep latency | cut -f 2 -d ":" > $dir/out & -+ -+ sleep 1s -+ pidofvcpu=`echo "info cpus" | nc -U $unixpath | grep thread_id | cut -f 3 -d "=" | tr -d "\r"` -+ taskset -p -c $1 $pidofvcpu >/dev/null -+ echo "cont" | nc -U $unixpath >/dev/null -+ wait -+ -+ if [ ! -f $dir/out ]; then -+ die running $TSCDEADLINE_LATENCY failed -+ fi - -- tmp=$(wc -l $dir/out | awk '{ print $1 }') -- if [ $tmp -eq 0 ]; then -- die running $TSCDEADLINE_LATENCY failed -- fi -+ tmp=$(wc -l $dir/out | awk '{ print $1 }') -+ if [ $tmp -eq 0 ]; then -+ die running $TSCDEADLINE_LATENCY failed -+ fi - - A=0 - while read l; do --- -1.8.3.1 - diff --git a/0029-Fix-TypeError.patch b/0029-Fix-TypeError.patch deleted file mode 100644 index f1aa2983a19fc98ea4ab4e0030c50c412b4a2e36..0000000000000000000000000000000000000000 --- a/0029-Fix-TypeError.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 5c61305860a9520e01b1b66a0bd2fa2b21d70b34 Mon Sep 17 00:00:00 2001 -From: Tomas Korbar -Date: Mon, 23 Jul 2018 14:25:38 +0200 -Subject: [PATCH 029/124] Fix TypeError - ---- - tuned/admin/admin.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py -index 3f84413..22ffcde 100644 ---- a/tuned/admin/admin.py -+++ b/tuned/admin/admin.py -@@ -73,7 +73,7 @@ class Admin(object): - action = getattr(self, "_action_" + action_name) - except AttributeError as e: - if not self._dbus: -- self._error(e + ", action '%s' is not implemented" % action_name) -+ self._error(str(e) + ", action '%s' is not implemented" % action_name) - return False - if self._dbus: - try: --- -1.8.3.1 - diff --git a/0040-Fix-pickle-provider.patch b/0040-Fix-pickle-provider.patch deleted file mode 100644 index d2bfab33d7b94243c79e9574ba490deb646bab03..0000000000000000000000000000000000000000 --- a/0040-Fix-pickle-provider.patch +++ /dev/null @@ -1,36 +0,0 @@ -From c4f83e29567204eed4eef38bd47393dde88f6134 Mon Sep 17 00:00:00 2001 -From: Tomas Korbar -Date: Tue, 21 Aug 2018 14:38:13 +0200 -Subject: [PATCH 040/124] Fix pickle provider - -- pickle.load and pickle.dump methods take as a argument -a bytes-like object not a str, python 2.7 is overlooking this but -python 3 is not ---- - tuned/storage/pickle_provider.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tuned/storage/pickle_provider.py b/tuned/storage/pickle_provider.py -index 832a9f8..771704d 100644 ---- a/tuned/storage/pickle_provider.py -+++ b/tuned/storage/pickle_provider.py -@@ -31,14 +31,14 @@ class PickleProvider(interfaces.Provider): - def save(self): - try: - log.debug("Saving %s" % str(self._data)) -- with open(self._path, "w") as f: -+ with open(self._path, "wb") as f: - pickle.dump(self._data, f) - except (OSError, IOError) as e: - log.error("Error saving storage file '%s': %s" % (self._path, e)) - - def load(self): - try: -- with open(self._path, "r") as f: -+ with open(self._path, "rb") as f: - self._data = pickle.load(f) - except (OSError, IOError) as e: - log.debug("Error loading storage file '%s': %s" % (self._path, e)) --- -1.8.3.1 - diff --git a/0070-plugin_disk-Fix-checking-the-removable-attribute-on-.patch b/0070-plugin_disk-Fix-checking-the-removable-attribute-on-.patch deleted file mode 100644 index c8423f013af1d35a97ad498258d7600ec3e2b8d2..0000000000000000000000000000000000000000 --- a/0070-plugin_disk-Fix-checking-the-removable-attribute-on-.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 2cc3d747986837d7e7957f5a4baede2dd691348a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= -Date: Thu, 24 Jan 2019 16:28:24 +0100 -Subject: [PATCH 070/124] plugin_disk: Fix checking the 'removable' attribute - on python3 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The 'removable' attribute is a bytestring, so it will never be equal to -"0" in python3. Check equality with b"0" instead. - -The patch was originally written by Tomáš Korbař. - -Signed-off-by: Ondřej Lysoněk ---- - tuned/plugins/plugin_disk.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tuned/plugins/plugin_disk.py b/tuned/plugins/plugin_disk.py -index 1de1257..65504d8 100644 ---- a/tuned/plugins/plugin_disk.py -+++ b/tuned/plugins/plugin_disk.py -@@ -39,7 +39,7 @@ class DiskPlugin(hotplug.Plugin): - @classmethod - def _device_is_supported(cls, device): - return device.device_type == "disk" and \ -- device.attributes.get("removable", None) == "0" and \ -+ device.attributes.get("removable", None) == b"0" and \ - (device.parent is None or \ - device.parent.subsystem in ["scsi", "virtio", "xen"]) - --- -1.8.3.1 - diff --git a/0074-fix-disk-plugin-plugout-problem.patch b/0074-fix-disk-plugin-plugout-problem.patch deleted file mode 100644 index 5bea7439694463cecf1f16c0d181d6c4c1a65a2f..0000000000000000000000000000000000000000 --- a/0074-fix-disk-plugin-plugout-problem.patch +++ /dev/null @@ -1,29 +0,0 @@ -From a2219675f29fae94540868bf63f36f62c61b92c7 Mon Sep 17 00:00:00 2001 -From: Tomas Korbar -Date: Wed, 12 Dec 2018 14:48:09 +0100 -Subject: [PATCH 074/124] fix disk plugin/plugout problem - -when udev sends remove event it does not send any device -attributes with it so _device_is_supported check must be omitted - -Resolves: rhbz#1595156 ---- - tuned/plugins/plugin_disk.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tuned/plugins/plugin_disk.py b/tuned/plugins/plugin_disk.py -index 1de1257..56e56f4 100644 ---- a/tuned/plugins/plugin_disk.py -+++ b/tuned/plugins/plugin_disk.py -@@ -50,7 +50,7 @@ class DiskPlugin(hotplug.Plugin): - self._hardware_inventory.unsubscribe(self) - - def _hardware_events_callback(self, event, device): -- if self._device_is_supported(device): -+ if self._device_is_supported(device) or event == "remove": - super(DiskPlugin, self)._hardware_events_callback(event, device) - - def _added_device_apply_tuning(self, instance, device_name): --- -1.8.3.1 - diff --git a/0099-Fix-checking-for-None-values.patch b/0099-Fix-checking-for-None-values.patch deleted file mode 100644 index 5df6bff3c5d14e087106a3d76d97de5449869243..0000000000000000000000000000000000000000 --- a/0099-Fix-checking-for-None-values.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 9e6913231d307590fd6a9bc024be549aaa2d8c5e Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= -Date: Tue, 5 Mar 2019 10:31:42 +0100 -Subject: [PATCH 099/124] Fix checking for None values -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -In python, 'is None' should be used instead of '== None' to check if -something is None. - -Signed-off-by: Ondřej Lysoněk ---- - experiments/kwin-stop/xlib-example.py | 2 +- - tuned/plugins/plugin_systemd.py | 2 +- - tuned/profiles/merger.py | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/experiments/kwin-stop/xlib-example.py b/experiments/kwin-stop/xlib-example.py -index b8477a5..a0d6206 100644 ---- a/experiments/kwin-stop/xlib-example.py -+++ b/experiments/kwin-stop/xlib-example.py -@@ -32,7 +32,7 @@ def loop(): - root = dpy.screen(num).root - for win in root.get_full_property(dpy.get_atom('_NET_CLIENT_LIST'), 0).value.tolist(): - window = dpy.create_resource_object('window', win) -- if window.get_full_property(dpy.get_atom('_NET_WM_STATE'), Xatom.WINDOW) == None: -+ if window.get_full_property(dpy.get_atom('_NET_WM_STATE'), Xatom.WINDOW) is None: - continue - if dpy.get_atom("_NET_WM_STATE_HIDDEN") in window.get_full_property(dpy.get_atom('_NET_WM_STATE'), 0).value.tolist(): - if not win in hidden: -diff --git a/tuned/plugins/plugin_systemd.py b/tuned/plugins/plugin_systemd.py -index f6857c5..8f6bbc8 100644 ---- a/tuned/plugins/plugin_systemd.py -+++ b/tuned/plugins/plugin_systemd.py -@@ -61,7 +61,7 @@ class SystemdPlugin(base.Plugin): - - def _read_systemd_system_conf(self): - systemd_system_conf = self._cmd.read_file(consts.SYSTEMD_SYSTEM_CONF_FILE, err_ret = None) -- if systemd_system_conf == None: -+ if systemd_system_conf is None: - log.error("error reading systemd configuration file") - return None - return systemd_system_conf -diff --git a/tuned/profiles/merger.py b/tuned/profiles/merger.py -index 7a3e05c..2364543 100644 ---- a/tuned/profiles/merger.py -+++ b/tuned/profiles/merger.py -@@ -33,7 +33,7 @@ class Merger(object): - profile_a.units[unit_name].type = unit.type - profile_a.units[unit_name].enabled = unit.enabled - profile_a.units[unit_name].devices = unit.devices -- if unit.devices_udev_regex != None: -+ if unit.devices_udev_regex is not None: - profile_a.units[unit_name].devices_udev_regex = unit.devices_udev_regex - if unit.script_pre is not None: - profile_a.units[unit_name].script_pre = unit.script_pre --- -1.8.3.1 - diff --git a/backport-powertop2tuned-work-with-PowerTOP-2.13-and-newer.patch b/backport-powertop2tuned-work-with-PowerTOP-2.13-and-newer.patch deleted file mode 100644 index 284987506d89ac8a6c14aaf1cfc2310981adb390..0000000000000000000000000000000000000000 --- a/backport-powertop2tuned-work-with-PowerTOP-2.13-and-newer.patch +++ /dev/null @@ -1,34 +0,0 @@ -From b4e975bef871c949e199952d4c3b84f73668f437 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= -Date: Thu, 4 Mar 2021 21:14:54 +0100 -Subject: [PATCH] powertop2tuned: work with PowerTOP 2.13 and newer -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Fixes: #328 -Reference:https://github.com/redhat-performance/tuned/pull/329/commits/b4e975bef871c949e199952d4c3b84f73668f437 -Signed-off-by: Jaroslav Škarvada ---- - experiments/powertop2tuned.py | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/experiments/powertop2tuned.py b/experiments/powertop2tuned.py -index 211df2d3..8ab260cf 100755 ---- a/experiments/powertop2tuned.py -+++ b/experiments/powertop2tuned.py -@@ -215,9 +215,12 @@ def generateHTML(self): - print('PowerTOP returned error code: %d' % proc.returncode, file=sys.stderr) - return -2 - -- prefix = "PowerTOP outputing using base filename " -+ prefix = "PowerTOP outputting using base filename " - if output.find(prefix) == -1: -- return -1 -+ # workaround for PowerTOP older than 2.13 -+ prefix = "PowerTOP outputing using base filename " -+ if output.find(prefix) == -1: -+ return -1 - - name = output[output.find(prefix)+len(prefix):-1] - #print "Parsed filename=", [name] diff --git a/fix-cpu-Update-checking-if-EPB-is-supported.patch b/fix-cpu-Update-checking-if-EPB-is-supported.patch deleted file mode 100644 index c42ce360fc8fda00c5329c20e0b39f1c2488efd6..0000000000000000000000000000000000000000 --- a/fix-cpu-Update-checking-if-EPB-is-supported.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 43375e6bbe389606fbd24d0a84535285a1a8040c Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= -Date: Thu, 17 Sep 2020 18:57:24 +0800 -Subject: [PATCH] cpu: Update checking if EPB is supported - -Update checking if EPB is supported so that it works with recent -versions of the x86_energy_perf_policy tool. Newer versions of -x86_energy_perf_policy, unlike older versions, exit with a zero exit -code even if the CPU doesn't support EPB. Newer versions of the tool -give no ouput on stdout if EPB is not supported, so check for that. - -In the future, we might like to determine if EPB is supported by -searching /proc/cpuinfo for specific CPU flags. However the solution -described in the previous paragraph should work just fine for now. - -Resolves: rhbz#1690929 - -Signed-off-by: Ondřej Lysoněk - -https://github.com/redhat-performance/tuned/pull/217/commits/43375e6bbe389606fbd24d0a84535285a1a8040c ---- - tuned/plugins/plugin_cpu.py | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/tuned/plugins/plugin_cpu.py b/tuned/plugins/plugin_cpu.py -index 8f0babd..4934022 100644 ---- a/tuned/plugins/plugin_cpu.py -+++ b/tuned/plugins/plugin_cpu.py -@@ -61,8 +61,11 @@ class CPULatencyPlugin(base.Plugin): - def _check_energy_perf_bias(self): - self._has_energy_perf_bias = False - retcode_unsupported = 1 -- retcode = self._cmd.execute(["x86_energy_perf_policy", "-r"], no_errors = [errno.ENOENT, retcode_unsupported])[0] -- if retcode == 0: -+ retcode, out = self._cmd.execute(["x86_energy_perf_policy", "-r"], no_errors = [errno.ENOENT, retcode_unsupported]) -+ # With recent versions of the tool, a zero exit code is -+ # returned even if EPB is not supported. The output is empty -+ # in that case, however. -+ if retcode == 0 and out != "": - self._has_energy_perf_bias = True - elif retcode < 0: - log.warning("unable to run x86_energy_perf_policy tool, ignoring CPU energy performance bias, is the tool installed?") --- -2.23.0 - diff --git a/tuned-2.10.0-makefile-full-python-path.patch b/tuned-2.10.0-makefile-full-python-path.patch deleted file mode 100644 index 39b3f4b6a458b275b7c7e6b8b38bc4a59401290e..0000000000000000000000000000000000000000 --- a/tuned-2.10.0-makefile-full-python-path.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/Makefile -+++ b/Makefile -@@ -30,12 +30,12 @@ VERSIONED_NAME = $(NAME)-$(VERSION)$(GIT_PSUFFIX) - SYSCONFDIR = /etc - DATADIR = /usr/share - DOCDIR = $(DATADIR)/doc/$(NAME) --PYTHON = python3 -+PYTHON = /usr/bin/python3 - PYLINT = pylint-3 - ifeq ($(PYTHON),python2) - PYLINT = pylint-2 - endif --SHEBANG_REWRITE_REGEX= '1s/^(\#!\/usr\/bin\/)\/\1$(PYTHON)/' -+SHEBANG_REWRITE_REGEX= '1s|^\#!/usr/bin/\|\#!$(PYTHON)|' - PYTHON_SITELIB = $(shell $(PYTHON) -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib());') - ifeq ($(PYTHON_SITELIB),) - $(error Failed to determine python library directory) - diff --git a/tuned-2.10.0-python-3.7-fix.patch b/tuned-2.10.0-python-3.7-fix.patch deleted file mode 100644 index 9c90c678c130d47daf1210ffefeb5a0fec6af57d..0000000000000000000000000000000000000000 --- a/tuned-2.10.0-python-3.7-fix.patch +++ /dev/null @@ -1,60 +0,0 @@ -From f19b7c5713acb76a200811f6531acf2791505cac Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= -Date: Wed, 4 Jul 2018 23:27:38 +0200 -Subject: [PATCH] Fixed compatibility with python-3.7 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -In python-3.7 async is a keyword, so it cannot be redefined. - -Signed-off-by: Jaroslav Škarvada ---- - tuned-adm.py | 4 ++-- - tuned/admin/admin.py | 4 ++-- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/tuned-adm.py b/tuned-adm.py -index ea85c54..1b9623d 100755 ---- a/tuned-adm.py -+++ b/tuned-adm.py -@@ -98,7 +98,7 @@ if __name__ == "__main__": - - options = vars(args) - debug = options.pop("debug") -- async = options.pop("async") -+ asynco = options.pop("async") - timeout = options.pop("timeout") - action_name = options.pop("action") - log_level = options.pop("loglevel") -@@ -107,7 +107,7 @@ if __name__ == "__main__": - dbus = config.get_bool(consts.CFG_DAEMON, consts.CFG_DEF_DAEMON) - - try: -- admin = tuned.admin.Admin(dbus, debug, async, timeout, log_level) -+ admin = tuned.admin.Admin(dbus, debug, asynco, timeout, log_level) - - result = admin.action(action_name, **options) - except: -diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py -index 728af32..3f84413 100644 ---- a/tuned/admin/admin.py -+++ b/tuned/admin/admin.py -@@ -14,12 +14,12 @@ import threading - import logging - - class Admin(object): -- def __init__(self, dbus = True, debug = False, async = False, -+ def __init__(self, dbus = True, debug = False, asynco = False, - timeout = consts.ADMIN_TIMEOUT, - log_level = logging.ERROR): - self._dbus = dbus - self._debug = debug -- self._async = async -+ self._async = asynco - self._timeout = timeout - self._cmd = commands(debug) - self._profiles_locator = profiles_locator(consts.LOAD_DIRECTORIES) --- -2.14.4 - diff --git a/tuned-2.10.0.tar.gz b/tuned-2.10.0.tar.gz deleted file mode 100644 index 41914c2e7da2de86f8b91b00a6221d4b988cefa1..0000000000000000000000000000000000000000 Binary files a/tuned-2.10.0.tar.gz and /dev/null differ diff --git a/tuned-2.19.0.tar.gz b/tuned-2.19.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c57313d82df5820e7d8fdab0ee9dd4c1758437bd Binary files /dev/null and b/tuned-2.19.0.tar.gz differ diff --git a/tuned.spec b/tuned.spec index b40a9b61d4e44563a59da6d1cfbdc655121ef06d..0105e64b1b36389413fd31b5874eb36fe8159139 100644 --- a/tuned.spec +++ b/tuned.spec @@ -1,6 +1,6 @@ Summary: A system tuning service for Linux Name: tuned -Version: 2.10.0 +Version: 2.19.0 Release: 10 License: GPLv2+ Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}.tar.gz#/%{name}-%{version}%{?prerel2}.tar.gz @@ -27,21 +27,7 @@ Requires: %{_py}-schedutils, %{_py}-decorator, %{_py}-perf Recommends:kernel-tools Recommends:tuned-profiles-nfv-host-bin -Patch0: tuned-2.10.0-python-3.7-fix.patch -Patch1: 0001-tuned-adm-Fix-a-traceback-when-run-without-action-sp.patch -Patch2: tuned-2.10.0-makefile-full-python-path.patch -Patch3: 0001-tuned-gui-Sort-plugins-based-on-their-name.patch -Patch4: fix-cpu-Update-checking-if-EPB-is-supported.patch -Patch5: backport-powertop2tuned-work-with-PowerTOP-2.13-and-newer.patch - Patch9000: bugfix-tuned-2.8.0-restart-after-kill-dbus.patch -Patch9001: 0005-realtime-virtual-host-pin-only-the-vcpu-thread-to-is.patch -Patch9002: 0029-Fix-TypeError.patch -Patch9003: 0040-Fix-pickle-provider.patch -Patch9004: 0070-plugin_disk-Fix-checking-the-removable-attribute-on-.patch -Patch9005: 0074-fix-disk-plugin-plugout-problem.patch -Patch9006: 0099-Fix-checking-for-None-values.patch - Provides: tuned-gtk Provides: tuned-utils @@ -241,7 +227,6 @@ fi %{_datadir}/%{name}/grub2 %{_datadir}/polkit-1/actions/com.redhat.%{name}.policy %{_datadir}/%{name}/ui -%{_datadir}/polkit-1/actions/com.redhat.%{name}.gui.policy %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/applications/%{name}-gui.desktop %{_sbindir}/%{name} @@ -258,7 +243,6 @@ fi %{_prefix}/lib/%{name} %config(noreplace) %{_sysconfdir}/%{name}/cpu-partitioning-variables.conf -%config(noreplace) %{_sysconfdir}/%{name}/sap-hana-vmware-variables.conf %config(noreplace) %{_sysconfdir}/%{name}/%{name}-main.conf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/active_profile %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/profile_mode @@ -300,8 +284,18 @@ fi %{_mandir}/man7/%{name}-profiles-realtime.7* %{_mandir}/man7/%{name}-profiles-nfv-guest.7* %{_mandir}/man7/%{name}-profiles-nfv-host.7* +%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/post_loaded_profile +%{_prefix}/lib/kernel/install.d/92-tuned.install +%{_mandir}/man7/tuned-profiles-openshift.7* +%{_mandir}/man7/tuned-profiles-postgresql.7* +%{_mandir}/man7/tuned-profiles-spectrumscale-ece.7* %changelog +* Fri Sep 23 2022 langfei - 2.19.0-1 +- DESC: Upgrade the tuned version to 2.19.0, reference:https://github.com/redhat-performance/tuned/releases/tag/v2.19.0 +- Delete the patches that have been incorporated into 2.19.0 in the directory, +- Modify the tuned.spec file to ensure successful compilation. + * Fri Jul 30 2021 chenyanpanHW - 2.10.0-10 - DESC: delete -Sgit from %autosetup, and delete BuildRequires git