]>
granicus.if.org Git - sysstat/log
Sebastien GODARD [Wed, 28 Dec 2022 09:34:31 +0000 (10:34 +0100)]
A_PWR_BAT: Display battery statistics with sar
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 28 Dec 2022 09:31:27 +0000 (10:31 +0100)]
A_PWR_BAT: Add f_count and f_read functions
Add functions used to count number of batteries installed and to read
batteries statistics.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 28 Dec 2022 09:25:15 +0000 (10:25 +0100)]
A_PWR_BAT: Add new option and basic definitions for sar and sadc
Add new activity A_PWR_BAT.
It will enable the user to monitor battery capacity, variation and
status.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 23 Dec 2022 14:25:36 +0000 (15:25 +0100)]
Cosmetic changes (enumerate values in header files when applicable)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 16 Dec 2022 13:50:42 +0000 (14:50 +0100)]
Update non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 10 Dec 2022 13:17:02 +0000 (14:17 +0100)]
sadf: RAW: Fix extra space when no TZ printed
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 10 Dec 2022 13:06:00 +0000 (14:06 +0100)]
Merge branch 'NatePW-correct_dbpcc_timestamp'
Sebastien GODARD [Sat, 10 Dec 2022 13:04:02 +0000 (14:04 +0100)]
Merge branch 'correct_dbpcc_timestamp' of https://github.com/NatePW/sysstat into NatePW-correct_dbpcc_timestamp
Sebastien GODARD [Sat, 10 Dec 2022 12:37:05 +0000 (13:37 +0100)]
sadc: Add another overflow check
Make sure resulting value won't overflow UINT_MAX before allocating
memory.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 10 Dec 2022 10:58:36 +0000 (11:58 +0100)]
Update non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 10 Dec 2022 10:57:52 +0000 (11:57 +0100)]
Update manual pages
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 10 Dec 2022 10:29:00 +0000 (11:29 +0100)]
Try to avoid displaying healthy metrics values in "red" (#177)
Percentage values are now displayed in specific colors when they are
greater or lower than a predefined limit depending on the metric's
meaning.
This means that, e.g. CPU %idle value will no longer be printed in red
if the CPU is actually idle.
Specific colors are now used when:
* values are greater than 90% (or lower than 10%),
* values are in the range 75% to 90% (or 25% to 10%).
This is probably still not perfect but should eliminate many questions.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Nathanael P Wilson [Mon, 28 Nov 2022 20:30:06 +0000 (12:30 -0800)]
Fix extra space when no TZ printed
GODARD Sebastien [Fri, 25 Nov 2022 16:04:33 +0000 (17:04 +0100)]
Merge pull request #346 from Kwstubbs/Kwstubbs/add-codeql-workflow
Add CodeQL workflow
Kevin Stubbings [Tue, 22 Nov 2022 00:12:29 +0000 (16:12 -0800)]
Add CodeQL workflow
Sebastien GODARD [Sun, 6 Nov 2022 15:55:15 +0000 (16:55 +0100)]
Starting sysstat 12.7.2
configure script updated.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Nov 2022 15:41:58 +0000 (16:41 +0100)]
sysstat-12.7.1
sysstat version 12.7.1 final packaging.
Changelog added.
spec and lsm files updated.
This version adds some small new features, like option -H to mpstat to
handle vCPU physical hotplug, or true time mode support to sadf's SVG
output.
It also fixes several bugs, one of which has been the object of a
security advisory (CVE-2022-39377).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Nov 2022 15:13:48 +0000 (16:13 +0100)]
Update NLS translations
Sync with the Translation Project.
Add new Georgian translation.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Nov 2022 14:48:16 +0000 (15:48 +0100)]
Make sure values to be compared are unsigned integers
It seems safer to make sure that input values are unsigned int before
casting them to unsigned long long and making the comparison.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 24 Oct 2022 08:09:17 +0000 (10:09 +0200)]
Update non regression tests again
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 23 Oct 2022 14:23:08 +0000 (16:23 +0200)]
Update non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 23 Oct 2022 14:22:28 +0000 (16:22 +0200)]
Add more overflow checks
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
GODARD Sebastien [Fri, 21 Oct 2022 15:28:30 +0000 (17:28 +0200)]
Merge pull request from GHSA-q8r6-g56f-9w7x
Fix size_t overflow in sa_common.c (GHSL-2022-074)
GODARD Sebastien [Mon, 17 Oct 2022 17:37:46 +0000 (19:37 +0200)]
Merge pull request #342 from shaleen-bathla/master
mpstat: return void from rw_mpstat_loop
Shaleen Bathla [Mon, 17 Oct 2022 11:22:36 +0000 (16:52 +0530)]
mpstat: return void from rw_mpstat_loop
Previous commits removed the usage of return value
from rw_mpstat_loop()
Hence change return value from int to void.
Signed-off-by: Shaleen Bathla <shaleen.bathla@oracle.com>
Sebastien [Sat, 15 Oct 2022 12:24:22 +0000 (14:24 +0200)]
Fix size_t overflow in sa_common.c (GHSL-2022-074)
allocate_structures function located in sa_common.c insufficiently
checks bounds before arithmetic multiplication allowing for an
overflow in the size allocated for the buffer representing system
activities.
This patch checks that the post-multiplied value is not greater than
UINT_MAX.
Signed-off-by: Sebastien <seb@fedora-2.home>
Sebastien GODARD [Sat, 15 Oct 2022 10:06:12 +0000 (12:06 +0200)]
Update non regression tests
...and add a new non regression test for mpstat -H.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 15 Oct 2022 09:58:31 +0000 (11:58 +0200)]
mpstat: Fix missing sample after physically hotplugging vCPU
When a vCPU is physically hotplugged, mpstat with its option -H skips
one line of statistics:
$ ./mpstat -H -P ALL 5 5
Linux 5.4.17-2136.310.7.1.el8uek.x86_64 (localhost.localdomain) 10/10/2022 x86_64 (3 CPU)
10:11:22 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
10:11:27 AM all 0.07 0.00 0.07 0.00 0.07 0.00 0.00 0.00 0.00 99.80
10:11:27 AM 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
10:11:27 AM 1 0.20 0.00 0.20 0.00 0.20 0.00 0.00 0.00 0.00 99.40
10:11:27 AM 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
10:11:27 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
10:11:32 AM all 0.00 0.00 0.07 0.00 0.07 0.00 0.00 0.00 0.00 99.87
10:11:32 AM 0 0.00 0.00 0.00 0.00 0.20 0.00 0.00 0.00 0.00 99.80
10:11:32 AM 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
10:11:32 AM 2 0.00 0.00 0.20 0.00 0.00 0.00 0.00 0.00 0.00 99.80
[ 1154.848226] CPU3 has been hot-added
[ 1154.862315] smpboot: Booting Node 0 Processor 3 APIC 0x3
[ 1154.863956] kvm-clock: cpu 3, msr
adc010c1 , secondary cpu clock
[ 1154.884436] KVM setup async PF for cpu 3
[ 1154.886055] kvm-stealtime: cpu 3, msr
13b9b2040
[ 1154.887657] Will online and init hotplugged CPU: 3
10:11:32 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
<<<<<<< No sample for 10:11:37 >>>>>>>
10:11:42 AM all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
10:11:42 AM 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
10:11:42 AM 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
10:11:42 AM 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
10:11:42 AM 3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
This patch makes sure that we get a line of stats for every interval of
time, even when a vCPU is physically hotplugged.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 9 Oct 2022 15:06:26 +0000 (17:06 +0200)]
Merge branch 'shaleen-bathla-master'
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Shaleen Bathla [Tue, 4 Oct 2022 07:09:02 +0000 (12:39 +0530)]
mpstat : add -H option to handle vCPU physical hotplug
For virtualized environments, physical CPU hotplug can occur.
OR to be more precise vCPU physical hotplug can occur.
Currently, mpstat does not detect physical hotplug when running with an interval.
Example : mpstat -P ALL 5
When -H option is given, display stats of physically hotplugged vCPU also.
Example : mpstat -H -P ALL 5
This is done only when -H option is provided to remain legacy compatible.
Also updated the man page describing the new option.
Signed-off-by: Shaleen Bathla <shaleen.bathla@oracle.com>
Shaleen Bathla [Wed, 5 Oct 2022 06:50:13 +0000 (12:20 +0530)]
mpstat : Add reset parameter to salloc_mp_struct()
To reset stats structs memory, add parameter to salloc_mp_struct().
This will be used in the next commit for introducing -H option for
handling vCPU physical hotplugs.
Use realloc calls which will help in resizing the structs also.
if reset is TRUE, memory will be cleared else not cleared
Signed-off-by: Shaleen Bathla <shaleen.bathla@oracle.com>
Sebastien GODARD [Sat, 24 Sep 2022 15:21:46 +0000 (17:21 +0200)]
configure: Update configure file to deal with newer autoconf version
Rename configure.in file to configure.ac.
Run autoupdate to upgrade configure file.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 24 Sep 2022 15:13:16 +0000 (17:13 +0200)]
configure.in: Look for sys/wait.h include file
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 24 Sep 2022 15:08:12 +0000 (17:08 +0200)]
pidstat: pidstat should return the exit code of the child process (#339)
When a process is monitored with option -e, pidstat should return the
exit code of this process and a default value of 0.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 18 Sep 2022 15:37:41 +0000 (17:37 +0200)]
PCP: Fix timestamps written to PCP archive file
We should not consider true time / local time or UTC modes.
The timezone in which data will be displayed should be selected using
options -z / -Z with pmdumplog command.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 18 Sep 2022 08:35:42 +0000 (10:35 +0200)]
Merge get_locatime() and get_gmtime() functions
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 18 Sep 2022 08:34:28 +0000 (10:34 +0200)]
Update non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 17 Sep 2022 14:35:19 +0000 (16:35 +0200)]
Update DTD and XSD documents
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 17 Sep 2022 10:18:06 +0000 (12:18 +0200)]
sadf: Display timezone for all output formats
The timezone is now displayed even in local time (-T) and in true time
mode (-t).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 17 Sep 2022 09:23:08 +0000 (11:23 +0200)]
sar: Fix typo in manual page
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 13 Sep 2022 14:42:27 +0000 (16:42 +0200)]
SVG: Fix timestamps displayed in true time mode
Hours, minutes and seconds are saved as 8-bit values in structure
record_header. This is not enough to avoid a possible overflow when
calculating X-axis graduations.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 13 Sep 2022 14:00:55 +0000 (16:00 +0200)]
sadf_misc.c: Remove *tzname[] declaration
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 13 Sep 2022 13:37:18 +0000 (15:37 +0200)]
Add new non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 13 Sep 2022 13:07:07 +0000 (15:07 +0200)]
sadf: Print time zone instead of UTC in true time mode
This patch expands the scope of patch
217ee12 for all formats generated
by sadf.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 11 Sep 2022 14:57:48 +0000 (16:57 +0200)]
Merge branch 'ObiWahn-master'
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Jan Christoph Uhde [Sat, 10 Sep 2022 19:33:46 +0000 (21:33 +0200)]
doc-fix: remove `-I int_list` from man-page and help.
Interrupts are can be specified via the `--int=int_list` option.
Sebastien GODARD [Sun, 4 Sep 2022 08:50:06 +0000 (10:50 +0200)]
SVG: Print time zone instead of UTC in true time mode (#331)
sadf -g -t should not display "UTC" but the real time zone of the user
who created the datafile.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 4 Sep 2022 07:56:46 +0000 (09:56 +0200)]
README: Display old syntax if option --now not available (#334)
Display the commands that can be used when option --now is not supported
by systemd.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Frank Dana [Thu, 1 Sep 2022 08:08:58 +0000 (04:08 -0400)]
README: consolidate systemctl commands
Sebastien GODARD [Sun, 28 Aug 2022 09:37:37 +0000 (11:37 +0200)]
Turn off gcc's tree-slp-vectorize option
sadf crashes in non regression test nr. 00610 with a segmentation fault:
$ sadf -c tests/data-10.3.1 >/dev/null
file_magic: OK
HZ: Using current value: 100
file_header: OK
file_activity: A_CPU A_PCSW A_IRQ A_SWAP A_PAGE A_IO A_MEMORY A_HUGE A_KTABLES A_QUEUE A_DISK A_NET_DEV A_NET_EDEV A_NET_NFS A_NET_NFSD A_NET_SOCK A_NET_IP A_NET_EIP A_NET_ICMP A_NET_EICMP A_NET_TCP A_NET_ETCP A_NET_UDP A_NET_SOCK6 A_NET_IP6 A_NET_EIP6 A_NET_ICMP6 A_NET_EICMP6 A_NET_UDP6 A_PWR_CPU A_PWR_FAN A_PWR_TEMP A_PWR_USB A_FS OK
Statistics:
HRHCHnuunu...uuuunununu...uu......uu...n.n.n.n.Segmentation fault (core dumped)
It turns out that the problem is due to gcc optimizations made with
option -O2. Unsetting tree-slp-vectorize flag fixes that problem.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 28 Aug 2022 09:35:16 +0000 (11:35 +0200)]
Add "debug" target to iconfig script
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Thu, 18 Aug 2022 13:51:10 +0000 (15:51 +0200)]
Update sysstat(5) manual page
Explain new REPEAT_HEADER variable.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Thu, 18 Aug 2022 13:48:42 +0000 (15:48 +0200)]
Add REPEAT_HEADER variable to sysstat configuration file (#332)
This variable will make it easier to tell sa2 script to insert header
lines in the reports.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Thu, 18 Aug 2022 13:46:36 +0000 (15:46 +0200)]
Add "local" and "xlocal" targets to iconfig script
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 17 Aug 2022 12:59:40 +0000 (14:59 +0200)]
Add new non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 17 Aug 2022 12:58:25 +0000 (14:58 +0200)]
Update sar manual page
Explain new environment variable (S_REPEAT_HEADER).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 17 Aug 2022 09:29:20 +0000 (11:29 +0200)]
sar: Add new environment variable S_REPEAT_HEADER (#332)
Add new environment variable S_REPEAT_HEADER.
This variable will contain the number of lines after which a header has
to be displayed by sar when stdout is not a terminal.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 17 Aug 2022 08:16:47 +0000 (10:16 +0200)]
Add new non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 17 Aug 2022 07:55:20 +0000 (09:55 +0200)]
Add support for option -t with sadf's SVG output (#331)
When sadf was used to display SVG graphs, it was not possible to display
the timestamps (on the X axis) in the same locale as that of the file
creator. This was because option -t was not supported by sadf in SVG
output format. This patch fixes that.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 10 Jul 2022 13:32:25 +0000 (15:32 +0200)]
sa_conv.c: Use sizeof() instead of a constant
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 10 Jul 2022 13:22:38 +0000 (15:22 +0200)]
sadf: Make structures' size from older versions immutable
The size of structures used by older sysstat versions should not depend
on the size of current sysstat version.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 8 Jul 2022 13:14:47 +0000 (15:14 +0200)]
Merge branch 'bmwiedemann-master'
Bernhard M. Wiedemann [Wed, 6 Jul 2022 12:24:03 +0000 (14:24 +0200)]
Declare sadc dependency on libsyscom.a
Without this patch, make -j1 would try to link sadc
and fail to find libsyscom.a
Fixes #329
Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Sebastien GODARD [Wed, 22 Jun 2022 13:37:11 +0000 (15:37 +0200)]
Merge branch 'Rtoax-patch-1'
Rong Tao [Mon, 20 Jun 2022 01:34:05 +0000 (09:34 +0800)]
Remove whitespace characters at the end of a line
Sebastien GODARD [Thu, 16 Jun 2022 16:11:12 +0000 (18:11 +0200)]
Merge branch 'stevekay-tidy3'
Steve Kay [Thu, 16 Jun 2022 13:52:07 +0000 (14:52 +0100)]
code style, blank line after while
Steve Kay [Thu, 16 Jun 2022 13:40:02 +0000 (14:40 +0100)]
code style, space after while
Steve Kay [Thu, 16 Jun 2022 13:27:07 +0000 (14:27 +0100)]
code style fix, space after if
Steve Kay [Thu, 16 Jun 2022 13:25:36 +0000 (14:25 +0100)]
fix typo, mid-night -> midnight
Steve Kay [Thu, 16 Jun 2022 13:24:33 +0000 (14:24 +0100)]
fix rrd links in FAQ, as existing links gave a 404
Sebastien GODARD [Wed, 1 Jun 2022 08:24:43 +0000 (10:24 +0200)]
Merge branch 'stevekay-feature_A'
Sebastien GODARD [Wed, 1 Jun 2022 08:24:04 +0000 (10:24 +0200)]
Merge branch 'feature_A' of https://github.com/stevekay/sysstat into stevekay-feature_A
Steve Kay [Sun, 29 May 2022 08:18:54 +0000 (09:18 +0100)]
pacify gcc checks
Limit irq_name to size within its bounds
Sebastien GODARD [Sun, 29 May 2022 07:00:00 +0000 (09:00 +0200)]
Starting sysstat 12.7.1
configure script updated.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 29 May 2022 06:46:19 +0000 (08:46 +0200)]
sysstat-12.6.0
sysstat version 12.6.0 final packaging.
Changelog added.
spec and lsm files updated.
This version adds a new metric (softnet backlog) to the software-based
network processing activity.
It also fixes several bugs concerning the recent interrupts statistics
rewritten code, and to metrics names used by sadf in the PCP output
format.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 29 May 2022 06:38:36 +0000 (08:38 +0200)]
Update NLS translations
Sync with the Translation Project.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 18 Apr 2022 13:14:39 +0000 (15:14 +0200)]
Merge branch 'cbagwell-32bit-time-be'
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Chris Bagwell [Tue, 12 Apr 2022 19:51:48 +0000 (14:51 -0500)]
Convert 64-bit time value to time_t as needed
On platforms with 32-bit time_t, code up converts it to a 64-bit data
type. The pointer to this 64-bit value is incorrectly passed to
a few functions that accept a pointer to a 32-bit time_t.
On little endian platforms the original 32-bit time_t value will be visible
this way but on big endian platforms only zeros will be seen and time
will be show as wrong values.
Update code to convert to time_t to be compatible with 32-bit be
platforms.
Sebastien GODARD [Fri, 8 Apr 2022 07:20:01 +0000 (09:20 +0200)]
sadc: Add new non regression tests
Test ill-formed datafiles.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 3 Apr 2022 08:21:04 +0000 (10:21 +0200)]
Merge branch 'lzaoral-ldflags'
Sebastien GODARD [Sun, 3 Apr 2022 08:18:20 +0000 (10:18 +0200)]
Update non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 3 Apr 2022 08:06:09 +0000 (10:06 +0200)]
Merge branch 'ldflags' of https://github.com/lzaoral/sysstat into lzaoral-ldflags
Sebastien GODARD [Sun, 3 Apr 2022 07:42:27 +0000 (09:42 +0200)]
PCP: Fix multiple metrics name problems
Replace metric name "kernel.percpu.cpu.wait.total" (which was defined
but not used) with "kernel.percpu.cpu.iowait".
"kernel.percpu.cpu.int" was used but not defined. Replace it with
"kernel.percpu.cpu.irq.total" and define it.
Fix metric name "mem.util.buffers" -> Replace it with "mem.util.bufmem".
Fix metric name "mem.util.stack" -> Replace it with
"mem.util.kernelStack".
Fix metric name "mem.util.vmused" -> Replace it with
"mem.util.vmallocUsed".
Define metric name "disk.dev.total_bytes".
Fix metric name "network.ip.ipoutrequests" -> Replace it with
"network.ip.outrequests".
Fix metric name "network.ip.ipreasmreqds" -> Replace it with
"network.ip.reasmreqds".
Fix metric name "network.ip.ipreasmoks" -> Replace it with
"network.ip.reasmoks".
Fix metric name "network.tcp.tcpestabresets" -> Replace it with
"network.tcp.estabresets".
FIx metric name "network.tcp.tcpretranssegs" -> Replace it with
"network.tcp.retranssegs".
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Lukáš Zaoral [Thu, 31 Mar 2022 12:36:59 +0000 (14:36 +0200)]
configure: print LDFLAGS in final summary
Lukáš Zaoral [Thu, 31 Mar 2022 12:33:08 +0000 (14:33 +0200)]
configure: do not overwrite LDFLAGS in test for 32-bit libsensors
Lukáš Zaoral [Thu, 31 Mar 2022 12:06:03 +0000 (14:06 +0200)]
Makefile: honour LDFLAGS passed to ./configure
The configure script help says that the LDFLAGS environment variable can be
used to pass additional flags to linker during build.
However, Makefile.in did not mention this variable at all so the additional
flags were silently skipped.
Sebastien GODARD [Sun, 27 Mar 2022 13:48:02 +0000 (15:48 +0200)]
pr_stats.c: Cosmetic changes
One printf("\n") is enough...
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 27 Mar 2022 13:39:50 +0000 (15:39 +0200)]
Update non regression tests
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 27 Mar 2022 13:38:10 +0000 (15:38 +0200)]
sar: A_NET_SOFT: Fix how average backlog length is calculated
Backlog length is an instantaneous value, not a value calculated over
the time interval. Its average value should be calculated in a specific
way.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 27 Mar 2022 13:35:51 +0000 (15:35 +0200)]
sar: A_NET_SOFT: Make sure backlog length variable is set to zero
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 27 Mar 2022 13:34:14 +0000 (15:34 +0200)]
sar: A_NET_SOFT: Fix JSON/XML output
Remove extra comma.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 26 Mar 2022 14:45:59 +0000 (15:45 +0100)]
Update sar manual page
Explain new softnet metric: backlog length.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 26 Mar 2022 14:43:57 +0000 (15:43 +0100)]
sadf: A_NET_SOFT: Add new metric softnet network backlog (#315)
New metric added in kernel 5.10
https://github.com/torvalds/linux/commit/
7d58e6555870d01d85b181ba2a16b217a1ea8bdd
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 26 Mar 2022 14:42:09 +0000 (15:42 +0100)]
sar: A_NET_SOFT: Add new metric: softnet backlog length
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 26 Mar 2022 14:36:31 +0000 (15:36 +0100)]
PCP: A_NET_SOFT: Fix name for flow_limit metric
Metric name was flow_limit_count in pcp_def_metrics.c but used as
flow_limit in pcp_stats.c
This name mismatch resulted in no value being displayed.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 26 Mar 2022 14:33:08 +0000 (15:33 +0100)]
Softnet backlog: Update DTD and XSD documents
Update DTD and XSD documents to take into account new softnet backlog
length metric (A_NET_SOFT).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 25 Mar 2022 14:12:25 +0000 (15:12 +0100)]
Update FAQ (#313)
Make it clear that we actually use kibibytes, mebibytes, etc.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 25 Mar 2022 13:31:00 +0000 (14:31 +0100)]
Update non regression tests
Add new columns to some of the /proc/net/softnet_stat files.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 25 Mar 2022 13:28:38 +0000 (14:28 +0100)]
A_NET_SOFT: Use CPU id from /proc/net/softnet_stat
CPU id has been added as a new column in /proc/net/softnet_stat in
kernel 5.10. Use it to map data to their corresponding CPU.
See #315.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>