]>
granicus.if.org Git - sysstat/log
Anatoly Pugachev [Sun, 15 Mar 2020 23:56:12 +0000 (02:56 +0300)]
Fix sa2 script, so it wont complain about "unrecognized archive format"
on empty list for compress program.
Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
Sebastien GODARD [Wed, 11 Mar 2020 17:41:06 +0000 (18:41 +0100)]
pidstat: Add new non regression tests
New non regression tests for the pidstat command. Tests should be run in
sysstat simulation environment (use do_test script).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 11 Mar 2020 17:38:38 +0000 (18:38 +0100)]
pidstat: Cosmetic updates
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 8 Feb 2020 17:08:31 +0000 (18:08 +0100)]
pidstat: Add non regression tests
First tests set for pidstat.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 1 Feb 2020 13:47:31 +0000 (14:47 +0100)]
pidstat: Add a replacement function for getpwuid()
This replacement function will be used in tests environment.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 29 Jan 2020 10:21:11 +0000 (11:21 +0100)]
pidstat: Set up test environment
Update pidstat for use in non regression tests.
Create all the necessary files in tests directory.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 29 Dec 2019 08:39:53 +0000 (09:39 +0100)]
iostat: Add new ng tests for flush I/Os
Test part of iostat code which reads flush I/O operations using
/sys/block/xxx/stat file (instead of /proc/diskstats file).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 27 Dec 2019 13:13:30 +0000 (14:13 +0100)]
Starting sysstat-12.3.2
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 27 Dec 2019 12:58:17 +0000 (13:58 +0100)]
sysstat-12.3.1
sysstat version 12.3.1 final packaging.
lsm and spec files updated.
Changelog added.
This version includes new interesting features such as:
* the possibility to display system topology (logical core, socket and
NUMA node numbers) with mpstat,
* statistics for flush I/O operations with iostat,
* and the support for SMB2 version of statistics file for the cifsiostat
command.
It also fixes some bugs concerning iostat and sadf. Enjoy!
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 27 Dec 2019 12:35:54 +0000 (13:35 +0100)]
Update NLS translations
Sync with the Translation Project.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 23 Dec 2019 10:55:26 +0000 (11:55 +0100)]
iostat: Add ng tests for flush I/Os statistics
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 23 Dec 2019 10:52:59 +0000 (11:52 +0100)]
iostat: Make code a bit more solid
Add some extra verifications even though flush operations are normally
counted as writes before being merged.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 23 Dec 2019 09:56:54 +0000 (10:56 +0100)]
iostat: Update non regression tests results
Take into account flush operations statistics.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 22 Dec 2019 11:06:51 +0000 (12:06 +0100)]
iostat.h: Update comment
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 22 Dec 2019 11:05:36 +0000 (12:05 +0100)]
iostat: Indicate that flush ops are counted as writes before being
merged
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 21 Dec 2019 17:21:09 +0000 (18:21 +0100)]
Merge branch 'koct9i-flush'
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Konstantin Khlebnikov [Sun, 15 Dec 2019 09:29:28 +0000 (12:29 +0300)]
iostat: Add flush I/O statistics
Statistics for flush operations have been added into Linux 5.5
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b6866318657717c8914673a6394894d12bc9ff5e
Sebastien GODARD [Sun, 15 Dec 2019 17:38:49 +0000 (18:38 +0100)]
Fix #243: Heap overflow in logic2_display_loop()
Make sure that all tests from check_file_actlst() function are done on a
data file, even if this file has activities with unknown formats.
"sadf -H" and, e.g., "sadf -Hx" should as a consequence behave the same.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 9 Dec 2019 16:54:07 +0000 (17:54 +0100)]
Fix #242: Double free in check_file_actlst()
Avoid freeing buffer() twice.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 9 Dec 2019 16:22:58 +0000 (17:22 +0100)]
cifsiostat: Fix compilation warning
Fix wrong type used to read number of open files.
cifsiostat.c:398:18: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long long unsigned int *’ [-Wformat=]
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 6 Dec 2019 15:44:19 +0000 (16:44 +0100)]
cifsiostat: Add SMB2 non regression test
Test cifsiostat output using /proc/fs/cifs/Stats file with SMB2 format.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 6 Dec 2019 14:40:22 +0000 (15:40 +0100)]
cifsiostat: Add support for SMB2 version
The /proc/fs/cifs/Stat file format is different between SMB1 and SMB2
versions. Now support both of them.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 6 Dec 2019 10:49:46 +0000 (11:49 +0100)]
cifsiostat: Add non regression tests
Add non regression tests for cifsiostat command.
These tests are intended to be run in sysstat's simulation test
environment (use do_test script).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 6 Dec 2019 08:45:53 +0000 (09:45 +0100)]
tapestat: Add non regression tests
Add non regression tests for tapestat command.
These tests are intended to be run in sysstat's simulation test
environment (use do_test script).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 25 Nov 2019 08:09:18 +0000 (09:09 +0100)]
mpstat: Add new non regression tests
Add new non regression tests for topology and JSON output.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 25 Nov 2019 07:37:44 +0000 (08:37 +0100)]
mpstat: Display negative values if topology cannot be read
Display socket and core numbers as -1 if the topology couldn't be read.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
GODARD Sebastien [Mon, 25 Nov 2019 07:20:40 +0000 (08:20 +0100)]
Merge pull request #239 from maxice8/fix-musl-includes
add missing includes for musl
Leo [Sun, 24 Nov 2019 18:11:19 +0000 (19:11 +0100)]
add missing includes for musl
Sebastien GODARD [Sun, 24 Nov 2019 10:45:58 +0000 (11:45 +0100)]
simtest: Add new non regression tests for iostat
Test iostat values for JSON output format.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 24 Nov 2019 07:55:40 +0000 (08:55 +0100)]
iostat: Fix wrong unit used in JSON output
The values for the amount of data read/written or discarded were always
expressed in blocks/s in the JSON output generated by iostat. It should
take into account the unit (blocks, kB, MB) selected by the user.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 18 Nov 2019 16:30:37 +0000 (17:30 +0100)]
mpstat: Update manual page
Explain new option -T.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 18 Nov 2019 15:30:38 +0000 (16:30 +0100)]
mpstat: Add new switch to display system topology
Add new switch "-T", which tells mpstat to display system topology
(core, socket and node for each cpu).
See #225.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 16 Nov 2019 13:37:59 +0000 (14:37 +0100)]
simtest: Add non regression tests for mpstat command
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 16 Nov 2019 12:46:52 +0000 (13:46 +0100)]
mpstat: Update manual page
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 15 Nov 2019 16:42:51 +0000 (17:42 +0100)]
sa_common.c: Fix typo in comment
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 15 Nov 2019 16:39:29 +0000 (17:39 +0100)]
mpstat: Allow to select individual CPU/nodes with option -A
Previously, using option -A with mpstat would display statistics for all
CPU and nodes (i.e. using -A would also imply -P ALL -N ALL).
Now this is true only if the user didn't specify explicitly a list of
CPU or nodes using options -P or -N.
Example: "mpstat -A -P1,4" will display all possible statistics but only
those concerning CPU 1 and 4 for CPU-related metrics.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
GODARD Sebastien [Fri, 15 Nov 2019 07:15:02 +0000 (08:15 +0100)]
Merge pull request #238 from albert-github/feature/bug_line_md
Missing empty line
albert-github [Tue, 12 Nov 2019 15:42:48 +0000 (16:42 +0100)]
Missing empty line
A very minor improvement. The github markdown interprets the `---` directly after the backticks correctly, but other markdown interpreters see it as an indication for a new section.
Problem can be overcome by an empty line and is also consistent with the other usages in the FAQ.md
Sebastien GODARD [Mon, 11 Nov 2019 09:00:23 +0000 (10:00 +0100)]
Starting sysstat-12.3.1
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 11 Nov 2019 08:47:03 +0000 (09:47 +0100)]
sysstat-12.2.0
sysstat version 12.2.0 final packaging.
lsm and spec files updated.
Changelog added.
Nothing to get really excited about this version which merely includes a
few bugfixes and adds small improvements to sar and sadf.
But this version marks the beginning of a new stable series, which is
why you should upgrade anyway :-)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 11 Nov 2019 08:23:30 +0000 (09:23 +0100)]
Update NLS translations
Sync with the Translation Project.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 10 Nov 2019 15:18:31 +0000 (16:18 +0100)]
Updated FAQ
Explain the most probable cause for error message displayed by sar and
sadf: "Enf of system activity file unexpected".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 3 Nov 2019 10:31:56 +0000 (11:31 +0100)]
simtest: Add more non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 2 Nov 2019 17:50:07 +0000 (18:50 +0100)]
simtest: Fix typo in TLIST file
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 2 Nov 2019 17:43:57 +0000 (18:43 +0100)]
simtest: Add new non regression tests
Add new tests for sar and sadf.
In particular, make sure that sar and sadf can read a binary datafile
with unknown activity type or format.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Nov 2019 08:39:47 +0000 (09:39 +0100)]
simtest: sar/sadf/iostat: Test environment variables
Take into account some environment variables to make sure they are
properly interpreted by sar, sadf and iostat.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Nov 2019 08:36:10 +0000 (09:36 +0100)]
simtest: Update code so that environment variables can be tested
Now read the contents of environment variables if option --getenv has
been entered on the command line (apply for sar, sadc, sadf and iostat
for now).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Nov 2019 08:30:55 +0000 (09:30 +0100)]
simtest: Display a success message if all tests were OK
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 1 Nov 2019 07:31:11 +0000 (08:31 +0100)]
sadf: Update manual page
Time used with option -e has no longer to be given in local time.
See commit
ecbf5ac .
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Oct 2019 16:22:51 +0000 (18:22 +0200)]
simtest: Update tests
Also add a test to check sadf PCP output (test 00590): Make sure we can
create such a PCP archive if needed libraries are present.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Oct 2019 13:42:27 +0000 (15:42 +0200)]
simtest: Add tests to check 12.0.x XML output validity
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Oct 2019 13:40:24 +0000 (15:40 +0200)]
Update DTD and XSD documents so that XML output from 12.0.x versions
validates
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Oct 2019 10:03:45 +0000 (12:03 +0200)]
simtest: Add new tests to check sadf XML header validity
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Oct 2019 09:56:33 +0000 (11:56 +0200)]
sadf: XML: Update XSD document so that XML header validates
Trying to validate XML output from "sadf -Hx" fails because some
elements are expected to be found, e.g.:
$ sadf -Hx | xmllint --schema xml/sysstat.xsd -
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sysstat PUBLIC "DTD v3.8 sysstat //EN" "http://pagesperso-orange.fr/sebastien.godard/sysstat-3.8.dtd">
<sysstat xmlns="http://pagesperso-orange.fr/sebastien.godard/sysstat" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pagesperso-orange.fr/sebastien.godard sysstat.xsd">
<sysdata-version>3.8</sysdata-version>
<host nodename="linux-4.home">
<sysname>Linux</sysname>
<release>5.0.16-100.fc28.x86_64</release>
<machine>x86_64</machine>
<number-of-cpus>8</number-of-cpus>
<file-date>2019-10-12</file-date>
<file-utc-time>16:03:24</file-utc-time>
<timezone>CET</timezone>
</host>
</sysstat>
-:9: element host: Schemas validity error : Element '{http://pagesperso-orange.fr/sebastien.godard/sysstat}host': Missing child element(s). Expected is ( {http://pagesperso-orange.fr/sebastien.godard/sysstat}statistics ).
- fails to validate
Update XSD document to indicate that "statistics" and "restarts"
elements may not exist.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 12 Oct 2019 16:10:13 +0000 (18:10 +0200)]
sadf: PCP: Save timezone value in archive file
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 12 Oct 2019 15:45:33 +0000 (17:45 +0200)]
simtest: Update tests output to take into account timezone value
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 12 Oct 2019 15:43:13 +0000 (17:43 +0200)]
sadf: Display timezone value
Update sadf to display timezone value in the XML, JSON and Header
formats.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 12 Oct 2019 15:41:33 +0000 (17:41 +0200)]
Update DTD and XSD documents to take into account new timezone field
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 1 Oct 2019 14:57:49 +0000 (16:57 +0200)]
sar/sadf: Add timezone value in binary data file
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 1 Oct 2019 14:55:59 +0000 (16:55 +0200)]
simtest: Check for FIXME tags at the end of the tests list
Move test used to look for FIXME tags at the end of the list.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 1 Oct 2019 14:49:58 +0000 (16:49 +0200)]
sar/sadf: Make sure we can read file headers structures from older
versions
Reading the file_header or file_activity structures from a daily data
file from an older version where fewer fields were present might be a
problem as we allocate buffers based on the size of the structure from
the file. This buffer would ithen be to small for the remap_struct()
function to remap the fields to current (larger) structures.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 1 Oct 2019 08:57:01 +0000 (10:57 +0200)]
configure: Add more checks
Check for more include files.
In particular, make sure that <linux/sched.h> and <pcp/impl.h> files
exist before including them.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 15:41:27 +0000 (17:41 +0200)]
simtest: Make sure TZ variable is taken into account
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 13:48:39 +0000 (15:48 +0200)]
simtest: Make more tests independent from timezone value
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 13:30:41 +0000 (15:30 +0200)]
simtest: Try to get more info from test 00571
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 12:57:23 +0000 (14:57 +0200)]
sar/sadf: Change 'flags' type from unsigned int to uint64_t
Need more bits for future extensions.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 12:22:45 +0000 (14:22 +0200)]
simtest: Update test expected result for sadf raw output
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 12:21:34 +0000 (14:21 +0200)]
sadf: Enhance raw format ouput
Now also display records header contents in debug mode.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 09:07:53 +0000 (11:07 +0200)]
simtest: Fix false positive test result
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 08:26:13 +0000 (10:26 +0200)]
Starting sysstat-12.2.0
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 08:15:45 +0000 (10:15 +0200)]
sysstat-12.1.7
sysstat version 12.1.7 final packaging.
lsm and spec files updated.
Changelog added.
The main new feature brought by this version is the support for stable
identifiers for sar disks statistics. This stable identifier (which
won't change across reboots) is the WWN (World-Wide Name) of the device.
The sar and sadf commands included in this version are also ready to read
new formats of binary data files which could arrive in a (hopefully)
distant future.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 30 Sep 2019 07:57:51 +0000 (09:57 +0200)]
Update NLS translations
Sync with the Translation Project.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 29 Sep 2019 08:01:46 +0000 (10:01 +0200)]
simtest: Add non regression test for sa2 shell script
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 29 Sep 2019 07:58:10 +0000 (09:58 +0200)]
configure: Add sar_dir configuration variable
This variable defines the directory where the sar binary command is
located.
This variable will be used in sa2 shell script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 28 Sep 2019 13:48:32 +0000 (15:48 +0200)]
simtest: Add more non regression tests
Test sa1 shell script.
Also look for FIXME tags in code.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 27 Sep 2019 15:44:19 +0000 (17:44 +0200)]
configure: Add new conf_file variable
This variable contains the name of sysstat main configuration file
(this file is named sysstat by default and is normally located in the
/etc/sysconfig directory)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 22 Sep 2019 16:43:15 +0000 (18:43 +0200)]
iostat: Fix null pointer dereferences
Fix CID#349500 & CID#349501.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 22 Sep 2019 16:25:24 +0000 (18:25 +0200)]
iostat: Make sure structures are init'ed before using
Fix CID#349503.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 22 Sep 2019 16:12:20 +0000 (18:12 +0200)]
iostat: Check string's size when copying
Make sure string's contents won't overflow.
Fix CID#349502.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 22 Sep 2019 16:08:23 +0000 (18:08 +0200)]
sar: Fix insecure data handling
Check values read from file before using.
Fix CID#349504.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 22 Sep 2019 13:02:39 +0000 (15:02 +0200)]
simtest: Keep code used to create a binary datafile
I had in mind to throw away this file. Keep it anyway as it might be
reused one day.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 21 Sep 2019 09:53:26 +0000 (11:53 +0200)]
simtest: Add non regression test on datafiles extra structures
data-extra-12.1.7 is a binary datafile with a next generation format (it
contains various extra structures that could be added in a future
sysstat version).
This test makes sure that current sysstat version will be able to read
such a format.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 21 Sep 2019 09:51:40 +0000 (11:51 +0200)]
simtest: Update sadf -H output in tests results
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 21 Sep 2019 09:50:37 +0000 (11:50 +0200)]
sadf: Update again sadf -H output
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 15 Sep 2019 07:45:00 +0000 (09:45 +0200)]
sar/sadc: Add support for several types of extra records
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 14 Sep 2019 08:07:40 +0000 (10:07 +0200)]
simtest: Update sadf -H output in tests results
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 14 Sep 2019 08:06:36 +0000 (10:06 +0200)]
sadf: Update sadf -H output
Also display now if extra structures are present in file or not.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 14 Sep 2019 08:00:58 +0000 (10:00 +0200)]
sar/sadf: Add extra flexibility in case of a change of file format
Add some extra code to sar and sadf so that they can read new
structures saved in daily binary data files. No changes in binary data
files are planned at the present time, but should a change happen in a
(hopefully) distant future, current sar and sadf commands will be able
to read this new format.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 14 Sep 2019 07:36:40 +0000 (09:36 +0200)]
sa_conv.c: Make sure all structures are init'ed before use
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 14 Sep 2019 06:01:07 +0000 (08:01 +0200)]
simtest: Make tests independant from current locale
Depending on the locale used, decimal values might use a comma instead
of a decimal point. Make sure that a decimal point is always used.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 9 Sep 2019 05:58:28 +0000 (07:58 +0200)]
sadc: Make sure all structures are init'ed before use
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 2 Sep 2019 13:34:27 +0000 (15:34 +0200)]
Fix #232: Memory corruption bug due to Integer Overflow in remap_struct()
Try to avoid integer overflow when reading a corrupted binary datafile
with sadf.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 2 Sep 2019 12:57:27 +0000 (14:57 +0200)]
sar: Update manual page
Explain new option "-j SID".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 2 Sep 2019 12:56:50 +0000 (14:56 +0200)]
sar: Update usage message
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 2 Sep 2019 12:40:29 +0000 (14:40 +0200)]
sar: Fix comment
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 2 Sep 2019 12:22:52 +0000 (14:22 +0200)]
simtest: Add non regression tests for stable identifier support
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 2 Sep 2019 09:50:33 +0000 (11:50 +0200)]
sar: Stable Id support: Update non regression test
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 2 Sep 2019 09:40:35 +0000 (11:40 +0200)]
sar/sadc: Add stable identifier support for disks statistics
This patch adds new fields to stats_disk structure to save a stable
identifier for each block device (see issue #195).
A stable identifier is a name that should not change across reboots for
the same physical device.
At the present time this stable identifier is the WWN (World Wide Name)
id that is read from /dev/disk/by-id if it exists for the device.
If it doesn't exist then we fall back on using the pretty name (sda,
sda1, etc.).
The stable identifier is always collected by sadc when disks statistics
are collected (sadc option "-S DISK | XDISK").
It can be printed by sar (or sadf) with the option "-j SID" (SID stands
for Stable IDentifier).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 21 Aug 2019 06:40:58 +0000 (08:40 +0200)]
Fix #231: Make iostat tests independent from the timezone value
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 17 Aug 2019 08:22:49 +0000 (10:22 +0200)]
simtest: Fix test for sar forward compatibility
version.h and sysconfig.h files are ignored by default (cf. .gitignore
file). So rename them so that they can be taken into account.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>