1
0
Fork 0
Commit graph

13 commits

Author SHA1 Message Date
Jaroslav Škarvada
a174592cfd verify: added ignore-missing mode
The verify command can now be run in ignore-missing mode. In this mode
missing/non-supported settings (i.e. those which current value is None)
are ignored and not treated as errors.

The tuned-adm got new verify options -i and --ignore-missing which
enables the ignore-missing mode, usage:
  tuned-adm verify -i
or:
  tuned-adm verify --ignore-missing

The DBus interface got new method 'verify_profile_ignore_missing' which
does the verification in ignore-missing mode.

Resolves: rhbz#1243807

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2016-04-22 18:05:16 +02:00
Jaroslav Škarvada
60f9e1e217 plugins: made class methods from get_config_options* methods
They were intended to be class methods and that's why there
were defined with the 'cls' parameter, but they actually
weren't class methods.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-05-26 14:24:07 +02:00
Jaroslav Škarvada
6940d280b6 tuned: added verify command
The verify command verifies whether the current system settings matches
activated profile. It also writes all settings from the active profile
with the current / expected values to the log. It is good for checking
what is exactly set and what changed during the run.

Currently custom commands and plugin_scheduler are not supported.

Resolves: rhbz#1150047
Fixes: #34

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-05-18 18:55:01 +02:00
Jaroslav Škarvada
56ecbd362e tuned: Improved error messages
Made tuned error messages less verbose, but more descriptive if running without
debug option. Also made class from the tuned.utils.commands helper functions.
Its logging can be enabled / disabled.

Resolves: rhbz#1068699

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-09-24 16:15:06 +02:00
Alessandro GUIDO
e26692219d Fix typo in allowed values for radeon_powersave
The correct spelling is 'mid', not 'med'. Writing 'med' to the
power_profile sysfs file results in an invalid argument error:
  2013-03-31 12:08:41,474 ERROR    tuned.utils.commands: Writing to file
  /sys/class/drm/card0/device/power_profile error: [Errno 22] Invalid
  argument
2013-04-02 10:19:16 +02:00
Jan Vcelak
7b9da639b7 video plugin: migrate to new plugin interface 2013-01-28 14:38:21 +01:00
Jan Vcelak
341e843df1 plugins: remove dynamic_tuning from options, was not conceptual 2012-05-25 11:58:48 +02:00
Jan Vcelak
926c567783 fix video plugin initialization 2012-05-21 23:22:42 +02:00
Jaroslav Škarvada
c9dc3c78d4 Tuned: various build fixes 2012-05-16 17:15:14 +02:00
Jan Vcelak
d2f680d65f video plugin: support for multiple devices, use new commands interface 2012-05-11 16:30:13 +02:00
Jan Kaluza
17bf48d7c6 Use None instead of empty string 2012-05-03 10:01:05 +02:00
Jan Kaluza
f3a04dde1d Introduced dynamic_tuning and static_tunning parts of plugin and stopped useless dynamic_tuning for static-only plugins 2012-04-26 09:50:20 +02:00
Jan Kaluza
0c2b174bbf finished wireless functions and video functions 2012-04-26 08:14:11 +02:00