]>
granicus.if.org Git - sysstat/log
Sebastien GODARD [Sat, 18 Apr 2020 06:34:58 +0000 (08:34 +0200)]
sar: PSI: Update manual pages
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 18 Apr 2020 06:29:58 +0000 (08:29 +0200)]
Update non regression tests
Take into account the change concerning PSI metrics.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 18 Apr 2020 06:28:25 +0000 (08:28 +0200)]
sar: Update help message
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 18 Apr 2020 06:27:27 +0000 (08:27 +0200)]
Update DTD and XSD documents
Take into account new PSI metrics names
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 18 Apr 2020 06:23:33 +0000 (08:23 +0200)]
sadf: PSI: Change metrics names and make them percent values
Change PSI metrics names (e.g. s_acpu10 -> %scpu-10) to make clear that
they are percent values.
Also change metrics using the total number of microseconds spent stalled
on ressources to also be a percent value calculated over the past time
interval (e.g. s_tcpu/s -> %scpu).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 14 Apr 2020 11:48:12 +0000 (13:48 +0200)]
PSI: Update non regression tests results
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 14 Apr 2020 11:46:07 +0000 (13:46 +0200)]
sar: PSI: Print ratios as percentage values
Make sure pressure-stall average values are considered as percentage
values, so that they will be displayed with a '%' sign if option --human
is used.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 14 Apr 2020 11:44:43 +0000 (13:44 +0200)]
sadf: Update DTD and XSD documents
Take into account PSI statistics.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 14 Apr 2020 11:43:08 +0000 (13:43 +0200)]
sar: Fix PSI memory file name
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 14 Apr 2020 08:15:15 +0000 (10:15 +0200)]
sadf: PCP: Add PSI support
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 13 Apr 2020 09:37:40 +0000 (11:37 +0200)]
sadf: SVG: Add PSI support
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Apr 2020 14:09:12 +0000 (16:09 +0200)]
sadf: JSON: Add PSI support
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Apr 2020 12:16:29 +0000 (14:16 +0200)]
sadf: XML: Add PSI support
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Apr 2020 12:16:00 +0000 (14:16 +0200)]
sadf: Cosmetic changes
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Apr 2020 09:22:04 +0000 (11:22 +0200)]
sadf: RAW: Add PSI support
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Apr 2020 09:03:38 +0000 (11:03 +0200)]
sadf: CSV/ppc: Add PSI support
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Apr 2020 09:00:20 +0000 (11:00 +0200)]
sadf: Update option -q to support PSI statistics
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Apr 2020 08:31:20 +0000 (10:31 +0200)]
sar: PSI: Display pressure-stall statistics
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 12 Apr 2020 08:29:46 +0000 (10:29 +0200)]
sar: Add PSI keyword to option -q
Specifying "sar -q PSI" will be equivalent to "sar -q CPU,MEM,IO".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 11 Apr 2020 13:34:14 +0000 (15:34 +0200)]
sar: PSI: Read PSI statistics
Read statistics from /proc/pressure/* files.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 11 Apr 2020 13:18:31 +0000 (15:18 +0200)]
Fix #233: sar: PSI: Basic definitions
This is the first patch to add support for pressure-stall information
(PSI) to sar.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 10 Apr 2020 07:42:02 +0000 (09:42 +0200)]
Starting sysstat-12.3.3
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 10 Apr 2020 07:37:28 +0000 (09:37 +0200)]
sysstat-12.3.2
sysstat version 12.3.2 final packaging.
lsm and spec files updated.
Changelog added.
pidstat and cifsiostat commands have been largely rewritten in this
version. In particular they now use a linked list with dynamic
allocation for all the items being monitored. Memory footprint should be
reduced. Last, several bugs have been fixed in pidstat.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 10 Apr 2020 07:24:04 +0000 (09:24 +0200)]
Update NLS translations
Sync with The Translation Project
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 6 Apr 2020 15:32:34 +0000 (17:32 +0200)]
Update configure script
Take into account commit
1b4185b .
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 6 Apr 2020 15:30:29 +0000 (17:30 +0200)]
Merge branch 'ffontaine-master'
Fabrice Fontaine [Sun, 5 Apr 2020 13:39:50 +0000 (15:39 +0200)]
Link with -lintl if needed
Some libc implementations like uclibc or musl provides
gettext stubs via libintl library. Without it, build will fail on:
/home/fabrice/buildroot/output/host/bin/arm-linux-gcc -o cifsiostat -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wstrict-prototypes -pipe -O2 cifsiostat.o librdstats_light.a libsyscom.a -s
/home/fabrice/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-musleabihf/8.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: tapestat.o: in function `usage':
tapestat.c:(.text+0x44c): undefined reference to `libintl_gettext'
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Sebastien GODARD [Sun, 5 Apr 2020 07:50:55 +0000 (09:50 +0200)]
pidstat: Remove unused global variable
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 5 Apr 2020 07:49:56 +0000 (09:49 +0200)]
cifsiostat: Major code refactoring
Now use a linked list with dynamic allocation to save CIFS filesystems.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 4 Apr 2020 08:45:48 +0000 (10:45 +0200)]
Fix #228: pidstat's -l replaces "\0" with " ", displaying unnecesary data
Fix issue #228.
Also add use cases to simulation test environment.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 4 Apr 2020 07:54:07 +0000 (09:54 +0200)]
pidstat: Add a new non regression test
This is to test pidstat's option -e.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 4 Apr 2020 07:53:23 +0000 (09:53 +0200)]
pidstat: Add a replacement function for fork()
The replacement function will be used in a non regression test.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 4 Apr 2020 07:24:54 +0000 (09:24 +0200)]
pidstat: Update non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 4 Apr 2020 07:19:04 +0000 (09:19 +0200)]
pidstat: Major code refactoring
Now use a linked list and dynamic allocatin to save tasks being
monitored.
Also fix several bugs that were lurking in previous pidstat version,
like threads that were displayed as attached to the wrong thread leader
if their real leader was not displayed because it was not an active
task.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 4 Apr 2020 07:17:48 +0000 (09:17 +0200)]
iostat: Make sure pointer on linked list has been initialized
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 22 Mar 2020 08:55:58 +0000 (09:55 +0100)]
pidstat: Add new non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 21 Mar 2020 09:22:35 +0000 (10:22 +0100)]
pidstat: Remove extra space at end of command name
When pidstat was used with option "-l" to display the command name and
all its arguments, a space was added at the end after all the arguments.
Remove it as it is unneeded and it may prevent the user from displaying
lines based on a pattern located at the end of line
(e.g. pidstat -l -C "pattern$" ...)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
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>