summaryrefslogtreecommitdiffstats
path: root/rteval-cmd
Commit message (Collapse)AuthorAgeFilesLines
* Fix formatting syntax, %d -> %sDavid Sommerseth2013-11-081-1/+1
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Added new measurement module, sysstatDavid Sommerseth2013-06-171-1/+2
| | | | | | | | | | | | This module runs in parallel with cyclictest and will every minute use sysstat/sadc to collect all available system statistics. These statistics is both added as a single file to the tarball and embedded into the summary.xml. Also changed the polling time which checks if measurement and load modules are alive from every second to every minute. Signed-off-by: David Sommerseth <davids@redhat.com>
* Migrated from libxslt to lxmlDavid Sommerseth2013-03-131-14/+13
| | | | | | | To avoid depending on libxslt-python, use the more standard Python lxml module for XSLT processing. Signed-off-by: David Sommerseth <davids@redhat.com>
* Copyright updatesDavid Sommerseth2013-01-181-5/+7
| | | | | | | | | - Updated the GPLv2 license text to match the latest GPLv2 from FSF - Updated all FSF addresses in all copyright notices in source files - Updated copyright years for all contributors to include 2013 - Removed all #!/usr/bin/python lines in files which does not need it Signed-off-by: David Sommerseth <davids@redhat.com>
* Adds the --quiet command line argument to disable Log.ERR and Log.WARN messagesRaphaël Beamonte2013-01-101-0/+5
| | | | | Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com> Signed-off-by: David Sommerseth <davids@redhat.com>
* Moves the update of the log verbosity to use it properly during modules ↵Raphaël Beamonte2013-01-101-8/+13
| | | | | | | | | | | | | | instantiation Previously, we used a default Log.INFO verbose level before parsing command line arguments, as modules load is necessary to know all the available arguments. In this patch, we added an small command line analysis for the verbose and debug arguments to set properly the log verbosity before loading modules. Doing so, we are able to have the wanted verbosity level before starting the load of modules, and not to have unwanted messages during execution. Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com> Signed-off-by: David Sommerseth <davids@redhat.com>
* Move the configuration defaults from rteval-cmd and into the rtevalConfig moduleDavid Sommerseth2013-01-041-21/+1
| | | | | | | This is to make it easier to apply default values when importing the rteval module from other places than rteval-cmd. Signed-off-by: David Sommerseth <davids@redhat.com>
* Cleaned up the --help screenDavid Sommerseth2012-12-201-6/+6
| | | | | | | Added metavar for the global options, to make them more readable instead of f.ex. RTEVAL___DURATION. Signed-off-by: David Sommerseth <davids@redhat.com>
* Don't override measurement and loads config sections from config fileDavid Sommerseth2012-12-191-7/+9
| | | | | | | If it was attempted to disable a module from the config file, that was impossible as the default was to enable them. Signed-off-by: David Sommerseth <davids@redhat.com>
* Instead of passing the config class a few places, save it in __init__()David Sommerseth2012-12-191-1/+1
| | | | | | | This cleans up the API a little bit, and lets the configuration access become a bit easier in the load and measurement classes. Signed-off-by: David Sommerseth <davids@redhat.com>
* Use default values from config file when setting up modules' option parserDavid Sommerseth2012-12-191-1/+1
| | | | | | | Try to grab the values from the config file instead of the defaults from the module, if it is present. Signed-off-by: David Sommerseth <davids@redhat.com>
* Put all default values for modules into the modules itselfDavid Sommerseth2012-12-191-13/+0
| | | | | | | | Removed all the module defaults from rteval-cmd and updated the modules' default values to the same values. Now module defaults are only managed inside the module. Signed-off-by: David Sommerseth <davids@redhat.com>
* Update config with values from the command lineDavid Sommerseth2012-12-191-32/+34
| | | | | | | | Now all the command line argument modifications will update the configuration object. Command line arguments will override any default or configuration variables. Signed-off-by: David Sommerseth <davids@redhat.com>
* Added infrastructure to add command line arguments from modulesDavid Sommerseth2012-12-181-3/+6
| | | | | | | | | | | | | | All rteval modules must now provide a ModuleParameters() function which returns a dictionary containing the option setup it expects. Each module will get a separate option group, and all its options will be prefixed with the module name. These option variables will be stored as well, prefixed with the module name. So if the a module 'dummy' configures an option 'value1', it will be stored as 'dummy_value1' in the option container. To set this option, you will need to use --dummy-value1 from the command line. Signed-off-by: David Sommerseth <davids@redhat.com>
* Split up rteval.py into a pure measurement module and the command line toolDavid Sommerseth2012-12-171-0/+311
This cleans up rteval further by making the RtEval class a pure measurement feature which receives all the needed setup and controls loads and measurment modules, in addition to the final reporting. The command line and config parsing is kept inside the command line tool, where it will set up everything before passing it all to the RtEval calss. Signed-off-by: David Sommerseth <davids@redhat.com>