summaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
* cyclictest: Don't bother reporting 'variance'David Sommerseth2013-04-151-2/+0
| | | | | | | | | | | | | | | | | | | | | The data used to do the mathematical reporting is based on histogram data, where the calculated variance will be rather pointless to gather. Imagine you have 3 samples in the historgram in the 2000µs slot, even if you have quite a lot of data with the average measurements around 50µs, the calculated "variance" for that time slot will be (1950^2)*3. Even though the final variance calculation will divide on number of samples gathered, it will take an enormous amount of samples within a the lower time slots to make this value interesting. So rather, don't report or save the calculated variance. However, the standard deviation is based on the variance, that value is far more sane due to the needed square root function on the final variance value. So it gives a far more sane and interesting value. The applied math in the cyclictest module should be fine itself, it's just the variance value that isn't much interesting on this kind of data source. Signed-off-by: David Sommerseth <davids@redhat.com>
* Added timestamps tracking when each module starts and stopsDavid Sommerseth2013-03-141-0/+1
| | | | | | | | Currently ignoring load modules in general, as the <loads/> tags isn't easily extended. Not convinced it makes any sense to track these time stamps on load modules anyway. Signed-off-by: David Sommerseth <davids@redhat.com>
* rteval-parser: Only consider cyclic statistics which have samples registeredDavid Sommerseth2013-01-311-1/+1
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Copyright updatesDavid Sommerseth2013-01-1815-562/+80
| | | | | | | | | - 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>
* Replace concatened paths with a call to os.path.joinRaphaël Beamonte2013-01-041-1/+1
| | | | | Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com> Signed-off-by: David Sommerseth <davids@redhat.com>
* Changed the parsing defaults for summary reportsDavid Sommerseth2012-12-202-2/+2
| | | | | | | | | | - Don't parse the cyclic_rawdata table any more. The last rteval release to use that table was v1.4. - Parse the hwlatedetect data by default. This is a new feature of rteval v2.0, so lets add this parsing by default. Signed-off-by: David Sommerseth <davids@redhat.com>
* Rework the XSLT template for rteval-parserd to tackle rteval v2.0 reportsDavid Sommerseth2012-12-201-259/+499
| | | | | | | | This reorganises most of the XSLT template, separating out pre v2.0 and post v2.0 reports, preserving support for all report versions. Also tried to preserve as much as possible of common code. Signed-off-by: David Sommerseth <davids@redhat.com>
* Fix minor issues in rteval-parser database schemasDavid Sommerseth2012-12-206-1/+7
| | | | | | | - The rtevxmlrpc database user needs SELECT privileges on rtevalruns, otherwise the DatabaseStatus() XML-RPC call fails. - The hwlatdetect_summary table was defined with a wrong column name
* rteval-parserd: Avoid live-lock if errors happens while registering the systemDavid Sommerseth2012-11-191-0/+3
| | | | | | | | If an error occured when calling db_register_system() and db_get_new_rterid(), the mutex lock set before these calls were never reset. This would block all other parser threads as well. Signed-off-by: David Sommerseth <davids@redhat.com>
* rteval-parserd: Fix issue when IPv4 address has not been setDavid Sommerseth2012-11-191-1/+1
| | | | | | The SQL append errornous '%s' to the hostname. Signed-off-by: David Sommerseth <davids@redhat.com>
* rteval-parser: Forgot to update the rteval-parser.spec file tooDavid Sommerseth2012-11-151-2/+6
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* rteval-parser: Added some needed tweaks to make EXSLT support pass 'make ↵David Sommerseth2012-11-151-0/+2
| | | | | | distcheck' Signed-off-by: David Sommerseth <davids@redhat.com>
* Updated rteval-parser versionsDavid Sommerseth2012-11-151-2/+2
| | | | | | | | When doing the updates in commit e8fca98477f6625207aebc66271b24d6f8f80f5a and commit dd48e1616d52a5030cb8c94e71d459efc1c18581, I forgot about updating the version numbers in configure.ac Signed-off-by: David Sommerseth <davids@redhat.com>
* rteval-parserd: Extend the xmlparser.xsl to also process hwlatdetect resultsDavid Sommerseth2012-11-083-1/+333
| | | | | | | This adds two new tables to the database schema, and adds the needed bits to extract hwlatdetect results from the rteval summary.xml reports. Signed-off-by: David Sommerseth <davids@redhat.com>
* server/parser: Make the parsing of measurement data more flexibleDavid Sommerseth2012-11-087-25/+46
| | | | | | | | | | | | | | | | | | | The parsing of measurement data was hard coded to be very cyclictest centric. With this patch, the code paths used by cyclictest parsing is made more generic and which measurement data to parse is now declared in the configuration file. The default measurement data tables are set to be cyclic_statistics, cyclic_histogram and cyclic_rawdata. These tables can be overridden by setting the measurement_tables config variable in the xmlrpc_parser section. With this change, it is now possible to extend the rteval summary.xml measurement parsing without modifying the C code at all. Only the database schema and the xmlparser.xsl files needs to be updated, and then add this new table to configuration file. Signed-off-by: David Sommerseth <davids@redhat.com>
* server/parser: Add support EXSLT functions in XSLT templatesDavid Sommerseth2012-11-082-0/+7
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* server/parser: Make sure the XSLT parameter array is always cleared before useDavid Sommerseth2012-11-081-1/+4
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* server/parser: Added a simple string tokeniserDavid Sommerseth2012-11-082-0/+108
| | | | | | | This will be used to easier process an array of tables, where this array comes from a comma separated list in the configuration file. Signed-off-by: David Sommerseth <davids@redhat.com>
* rteval-parsed/rteval-xmlrpc v1.5David Sommerseth2011-10-073-8/+19
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Moved PostgreSQL related array function into pgsql.cDavid Sommerseth2011-10-073-55/+77
| | | | | | | | This is to put all PostgreSQL related functions in one place. Using the init_xmlparser() the function needed to format arrays are provided to the xmlparser code paths. Signed-off-by: David Sommerseth <davids@redhat.com>
* Introduce init_xmlparser() processDavid Sommerseth2011-10-072-0/+50
| | | | | | | This is the first step towards moving PostgreSQL specific parts out of xmlparser.c to make the xmlparser database backend agnostic. Signed-off-by: David Sommerseth <davids@redhat.com>
* Added support for PostgreSQL arrays + store cpu_topology CPU spread as an arrayDavid Sommerseth2011-10-076-8/+328
| | | | | | | | Implemented a new value type for the internal <sqldata/> XML format, which will store data in an PostgreSQL array. This is used now to store the CPU core spread of the socket in a sepearate field in rtevalruns_details. Signed-off-by: David Sommerseth <davids@redhat.com>
* Fixed wrong copying of apache config files to the tarball for the XML-RPC ↵David Sommerseth2011-02-071-1/+1
| | | | | | | | service The tarball simply lacked the proper templates for the apache config file generation Signed-off-by: David Sommerseth <davids@redhat.com>
* Updated build files to package rteval-xmlrpc-1.4David Sommerseth2011-02-041-3/+7
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Update version information to rteval-xmlrpc-1.4David Sommerseth2011-02-042-2/+3
| | | | | | This also fixes a forgotten update to the new database schema (1.3) Signed-off-by: David Sommerseth <davids@redhat.com>
* Added needed autoconf changes to enable the new mod_wsgi featureDavid Sommerseth2011-02-043-7/+24
| | | | | | | | By default, mod_wsgi will be used. If --enable-mod-python is given to the ./configure script, the older (and deprecated) mod_python variant of the rteval XML-RPC server will be installed. Signed-off-by: David Sommerseth <davids@redhat.com>
* If the dirpath is an absolute path, go to the root dir before continuing.David Sommerseth2011-02-041-0/+2
| | | | | This bug was triggered when using the mod_wsgi platform, where you are not placed in the root directory by default.
* Added mod_wsgi handlerDavid Sommerseth2011-02-042-0/+154
| | | | | | | | | | | | | | This is an alternative Python handler for the XML-RPC server, making use of the WSGI platform instead. If the rteval_xmlrpc.wsgi script is started manually, using python it will act as a standalone server, listening to localhost:65432 as default. This script can also be loaded by, f.ex., the mod_wsgi module to Apache. A template for Apache config is also added. Signed-off-by: David Sommerseth <davids@redhat.com>
* Don't return None values in the database_status() methodDavid Sommerseth2011-02-031-2/+4
| | | | | | | That just makes the XML-RPC serialiser grumpy. Return "something" instead of None. Signed-off-by: David Sommerseth <davids@redhat.com>
* Don't try to always expand SQL SELECT query when throwing an exceptionDavid Sommerseth2011-02-031-1/+1
| | | | | | | If the requested SQL don't have any WHERE values, don't try to expand the SQL query to include them. That just hides the real SQL error. Signed-off-by: David Sommerseth <davids@redhat.com>
* Moved annotation data into a separate table field in rtevalruns_detailsDavid Sommerseth2011-01-103-2/+215
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Implemented simple XML-RPC call to check the database statusDavid Sommerseth2010-08-272-0/+28
| | | | | | This can be used to check if the XML-RPC service have access to the database Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Added first-cut of a unit-test for XML-RPC server/clientDavid Sommerseth2010-05-143-18/+126
|
* Added --annotate | -a feature to rtevalDavid Sommerseth2010-04-121-1/+1
|
* Added Hello() method to XML-RPC serverDavid Sommerseth2010-04-093-5/+15
| | | | | | | | | Enhanced rteval with trying to access the Hello() method. If the server responds (even if Hello() is not available), rteval will continue to run. If the server is not accessible, rteval will abort. In a future version, rteval should expect a proper response to the XML-RPC Hello() call.
* Remove not needed XML-RPC functionDavid Sommerseth2010-04-091-19/+0
|
* Added support for num_cpu_sockets and improved num_cpu_cores extractionDavid Sommerseth2010-04-011-3/+16
| | | | | | This change will support both the new <cpu_topology/> tag and the old <cpu_cores/> tag. Added extraction of data for the rtevalruns_details.num_cpu_sockets field as well.
* Added basic info for more CPU topology infoDavid Sommerseth2010-03-313-14/+23
| | | | | | | Have not yet implemented extraction new cpu_topology tags, but the summary of this information will go into the num_cpu_cores and num_cpu_sockets fields in the database. Right now it only takes the /rteval/hardware/cpu_cores and puts it into num_cpu_cores
* Added storing NUMA nodes in to rtevalruns_detailsDavid Sommerseth2010-03-263-3/+7
|
* Improved general parse loggingDavid Sommerseth2010-03-263-18/+33
| | | | | Logs now show which thread and more clearly which submid record which is being parsed. Also added a log message when the parsing is completed.
* Changed snprintf() to append_str() when adding 'AND ipaddr' SQL stringDavid Sommerseth2010-03-261-2/+4
|
* Make sure we search for IP address == NULL when the input is NULLDavid Sommerseth2010-03-251-0/+2
|
* Honour the 'isnull' attribute in <value/> tagsDavid Sommerseth2010-03-251-2/+7
|
* Don't consider IP address if the value is NULL when looking up registered ↵David Sommerseth2010-03-251-2/+7
| | | | systems
* Fixed wrong GRANT statement on the rteval_info tableDavid Sommerseth2010-03-251-1/+1
|
* version-bump of rteval-xmlrpc/rteval-parser to v1.2David Sommerseth2010-03-252-4/+4
|
* Updated the README files to reflect recent changesDavid Sommerseth2010-03-252-27/+72
|
* Added support for storing Linux distro in the databaseDavid Sommerseth2010-03-254-1/+211
|
* Cleaned up xmlparser.xsl - avoid not needed <xsl:apply-templates/> callsDavid Sommerseth2010-03-231-170/+146
|
* Cleaned up the rteval parser/XML-RPC spec fileDavid Sommerseth2010-03-222-64/+108
| | | | | | | | | - rteval-xmlrpc.spec renamed to rteval-parser.spec This was needed to make the noarch package - Split XML-RPC noarch related files and the binary part with rteval-parserd - Reorganised the .spec file - rteval-xmlrpc RPM is now a noarch sub-package - Consider the renamed rteval_parserd -> rteval-parserd - Install /etc/init.d/rteval-parserd and /etc/sysconfig/rteval-parserd