]> granicus.if.org Git - sysstat/log
sysstat
21 months agoUpdate non regression tests master
Sebastien GODARD [Sat, 11 Mar 2023 17:24:06 +0000 (18:24 +0100)]
Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
21 months agoSplit large functions into smaller ones
Sebastien GODARD [Sat, 11 Mar 2023 15:21:55 +0000 (16:21 +0100)]
Split large functions into smaller ones

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
21 months agosimtest: Fix do_test script
Sebastien GODARD [Sat, 11 Mar 2023 15:19:08 +0000 (16:19 +0100)]
simtest: Fix do_test script

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
21 months agosvg_stats.c: Ignore negative values for fields position
Sebastien GODARD [Sat, 11 Mar 2023 14:08:46 +0000 (15:08 +0100)]
svg_stats.c: Ignore negative values for fields position

Negative values in g_fields[] array are now ignored in save_extrema()
function.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
21 months agosystest.c: Declare fs data with const
Sebastien GODARD [Tue, 28 Feb 2023 08:15:27 +0000 (09:15 +0100)]
systest.c: Declare fs data with const

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
21 months agoSpecify field width when using sscanf() function
Sebastien GODARD [Tue, 28 Feb 2023 07:57:40 +0000 (08:57 +0100)]
Specify field width when using sscanf() function

This is to avoid possible crashes with huge input data.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
21 months agosa_common.c: Don't use (void *) pointer in calculation
Sebastien GODARD [Tue, 28 Feb 2023 07:56:36 +0000 (08:56 +0100)]
sa_common.c: Don't use (void *) pointer in calculation

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
21 months agoReduce variables scope when relevant
Sebastien GODARD [Thu, 23 Feb 2023 10:23:53 +0000 (11:23 +0100)]
Reduce variables scope when relevant

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
21 months agoDon't assign values that are never used
Sebastien GODARD [Thu, 23 Feb 2023 08:56:08 +0000 (09:56 +0100)]
Don't assign values that are never used

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
21 months agoFree pointer if realloc() fails
Sebastien GODARD [Thu, 23 Feb 2023 08:39:10 +0000 (09:39 +0100)]
Free pointer if realloc() fails

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoDeclare parameters with 'const' when possible
Sebastien GODARD [Wed, 22 Feb 2023 17:30:28 +0000 (18:30 +0100)]
Declare parameters with 'const' when possible

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoRemove conditions which are always true
Sebastien GODARD [Wed, 22 Feb 2023 17:18:41 +0000 (18:18 +0100)]
Remove conditions which are always true

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoiostat: Clarify calculation precedence for '+' and '?'
Sebastien GODARD [Wed, 22 Feb 2023 17:04:04 +0000 (18:04 +0100)]
iostat: Clarify calculation precedence for '+' and '?'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoUpdate non regression tests
Sebastien GODARD [Wed, 22 Feb 2023 14:37:22 +0000 (15:37 +0100)]
Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoMerge branch 'lzaoral-fix-dec-opt'
Sebastien GODARD [Wed, 22 Feb 2023 14:26:24 +0000 (15:26 +0100)]
Merge branch 'lzaoral-fix-dec-opt'

22 months agoMerge branch 'fix-dec-opt' of https://github.com/lzaoral/sysstat into lzaoral-fix...
Sebastien GODARD [Wed, 22 Feb 2023 14:23:09 +0000 (15:23 +0100)]
Merge branch 'fix-dec-opt' of https://github.com/lzaoral/sysstat into lzaoral-fix-dec-opt

22 months agoSIMTEST: Tests which are skipped touch file tests/SKIPPED
Sebastien GODARD [Wed, 22 Feb 2023 14:18:10 +0000 (15:18 +0100)]
SIMTEST: Tests which are skipped touch file tests/SKIPPED

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoSmall update to Makefile.in file
Sebastien GODARD [Wed, 22 Feb 2023 14:13:34 +0000 (15:13 +0100)]
Small update to Makefile.in file

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoUpdate do_test script for sysstat simulation test environment
Sebastien GODARD [Wed, 22 Feb 2023 14:10:37 +0000 (15:10 +0100)]
Update do_test script for sysstat simulation test environment

Tests are now run from the script itself instead of the Makefile.
Several options have been added ("cont", "ignore"...)

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoTools that take --dec=X option should only accept digits
Lukáš Zaoral [Tue, 21 Feb 2023 11:43:42 +0000 (12:43 +0100)]
Tools that take --dec=X option should only accept digits

Right now the argument of --dec is passed to atoi(3) which returns 0
on conversion error.  Therefore, --dec=A was not rejected and was
equivalent to --dec=0 by mistake.

Signed-off-by: Lukáš Zaoral <lzaoral@redhat.com>
22 months agosadf_misc.c: Fix indentation in code
Sebastien GODARD [Wed, 15 Feb 2023 17:00:03 +0000 (18:00 +0100)]
sadf_misc.c: Fix indentation in code

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoDon't check if unsigned expressions are less than zero
Sebastien GODARD [Wed, 15 Feb 2023 16:45:36 +0000 (17:45 +0100)]
Don't check if unsigned expressions are less than zero

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoFix types used in format strings
Sebastien GODARD [Wed, 15 Feb 2023 16:39:38 +0000 (17:39 +0100)]
Fix types used in format strings

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoFix typo in sar's manual page
Sebastien GODARD [Wed, 8 Feb 2023 10:51:20 +0000 (11:51 +0100)]
Fix typo in sar's manual page

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoAdd new non regression tests
Sebastien GODARD [Sun, 5 Feb 2023 14:54:40 +0000 (15:54 +0100)]
Add new non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agosar/sadf: Stop when invalid data are read in record's header
Sebastien GODARD [Sun, 5 Feb 2023 14:53:32 +0000 (15:53 +0100)]
sar/sadf: Stop when invalid data are read in record's header

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoUpdate non regression tests
Sebastien GODARD [Sun, 5 Feb 2023 14:21:34 +0000 (15:21 +0100)]
Update non regression tests

Defaut time value has changed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoSIMTEST: Update default unix_time value
Sebastien GODARD [Sun, 5 Feb 2023 14:19:19 +0000 (15:19 +0100)]
SIMTEST: Update default unix_time value

Default value for the number of seconds since the Epoch is no longer 0
(01/01/1970) but 1591016000 which corresponds to 06/01/2020.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agosar/sadf: Add a check on file's records headers data
Sebastien GODARD [Sun, 5 Feb 2023 14:16:36 +0000 (15:16 +0100)]
sar/sadf: Add a check on file's records headers data

Make sure that the number of seconds since the Epoch saved in the
records's headers are at least 10-digit numbers.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoAdd new non regression tests
Sebastien GODARD [Tue, 31 Jan 2023 17:15:00 +0000 (18:15 +0100)]
Add new non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoRestore mode for iconfig script
Sebastien GODARD [Sun, 29 Jan 2023 09:21:44 +0000 (10:21 +0100)]
Restore mode for iconfig script

iconfig script is an executable file.
Also update Makefile so that proper mode is restored when updating
copyright message.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoStarting sysstat 12.7.3
Sebastien GODARD [Sun, 29 Jan 2023 09:09:35 +0000 (10:09 +0100)]
Starting sysstat 12.7.3

configure script updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agosysstat-12.7.2 v12.7.2
Sebastien GODARD [Sun, 29 Jan 2023 08:59:47 +0000 (09:59 +0100)]
sysstat-12.7.2

sysstat version 12.7.2 final packaging.
Changelog added.
spec and lsm files updated.

This version adds a new activity to sar and sadf: Batteries power
statistics, which can be displayed using option "-m BAT".
Output has also been improved so that healthy metrics values (for all
sysstat commands) will no longer be displayed in "red" (or any other
specific color).
Last, starting and ending times can now be entered as a nuumber of
seconds since the Epoch with sar and sadf's options -s/-e.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoUpdate NLS translations
Sebastien GODARD [Sun, 29 Jan 2023 08:40:15 +0000 (09:40 +0100)]
Update NLS translations

Sync with The Translation Project.
Belarusian translation added.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoUpdate year in copyright message
Sebastien GODARD [Sun, 29 Jan 2023 08:35:19 +0000 (09:35 +0100)]
Update year in copyright message

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
22 months agoRemove LGTM links from README file
Sebastien GODARD [Fri, 27 Jan 2023 07:31:20 +0000 (08:31 +0100)]
Remove LGTM links from README file

LGTM.com is now deprecated. Remove corresponding links.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoAdd new non regression tests
Sebastien GODARD [Sun, 22 Jan 2023 10:48:07 +0000 (11:48 +0100)]
Add new non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosar/sadf: Rework code related to options -s/-e
Sebastien GODARD [Sun, 22 Jan 2023 10:41:03 +0000 (11:41 +0100)]
sar/sadf: Rework code related to options -s/-e

Timestamps entered as a number of seconds since the Epoch are now used
as they are and no longer converted to a broken time representation, so
that even month and year are taken into account when current record time
is compared to those timestamps.

The record which is exactly at the ending time is now displayed.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosar/sadf: Update manual pages
Sebastien GODARD [Sun, 22 Jan 2023 10:39:17 +0000 (11:39 +0100)]
sar/sadf: Update manual pages

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoUpdate non regression tests
Sebastien GODARD [Wed, 18 Jan 2023 10:23:46 +0000 (11:23 +0100)]
Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosar/sadf: Strengthen tests made on args given to options -s/-e (#350)
Sebastien GODARD [Wed, 18 Jan 2023 10:15:07 +0000 (11:15 +0100)]
sar/sadf: Strengthen tests made on args given to options -s/-e (#350)

Make additional tests on the argument following options -s and -s used
with sar and sadf to make sure it is actually a timestamp before using
it as such.
Previously, in the examples below, xfile (5 chars) and my_xfile (8
chars) were considered as timestamps in parse_timestamp() function,
although they actually are data files names.

sadf -s xfile
or
sadf -s my_xfile

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: Replace time_start/time_end with start_time/end_time
Sebastien GODARD [Sun, 15 Jan 2023 15:57:22 +0000 (16:57 +0100)]
sadf: Replace time_start/time_end with start_time/end_time

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoReplace time_start/time_end with start_time/end_time
Sebastien GODARD [Fri, 13 Jan 2023 16:52:58 +0000 (17:52 +0100)]
Replace time_start/time_end with start_time/end_time

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoUpdate non regression tests
Sebastien GODARD [Sat, 7 Jan 2023 15:42:58 +0000 (16:42 +0100)]
Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoUpdate sar and sadf usage message
Sebastien GODARD [Sat, 7 Jan 2023 14:34:17 +0000 (15:34 +0100)]
Update sar and sadf usage message

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoUpdate sar and sadf manual pages
Sebastien GODARD [Sat, 7 Jan 2023 14:33:59 +0000 (15:33 +0100)]
Update sar and sadf manual pages

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoMerge branch 'NatePW-sadf_epoch_time'
Sebastien GODARD [Sat, 7 Jan 2023 13:54:20 +0000 (14:54 +0100)]
Merge branch 'NatePW-sadf_epoch_time'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoRemove unneeded break after return in switch case
NatePW [Wed, 4 Jan 2023 00:40:23 +0000 (16:40 -0800)]
Remove unneeded break after return in switch case

23 months agoReplace potentially dangerous localtime function
Nathanael P Wilson [Tue, 3 Jan 2023 23:10:36 +0000 (15:10 -0800)]
Replace potentially dangerous localtime function

23 months agoCompare UTC time properly format agnostic
Nathanael P Wilson [Fri, 2 Sep 2022 16:38:59 +0000 (09:38 -0700)]
Compare UTC time properly format agnostic

23 months agoAdd epoch type to start and end times
Nathanael P Wilson [Thu, 1 Sep 2022 23:21:45 +0000 (16:21 -0700)]
Add epoch type to start and end times

23 months agosar: Make sure timestamps are always displayed in local time
Sebastien GODARD [Sat, 7 Jan 2023 12:38:05 +0000 (13:38 +0100)]
sar: Make sure timestamps are always displayed in local time

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosar: Fix help message
Sebastien GODARD [Fri, 30 Dec 2022 08:31:13 +0000 (09:31 +0100)]
sar: Fix help message

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoUpdate non regression tests
Sebastien GODARD [Fri, 30 Dec 2022 08:20:17 +0000 (09:20 +0100)]
Update non regression tests

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: XML: A_PWR_BAT: Fix XSD document
Sebastien GODARD [Fri, 30 Dec 2022 07:43:26 +0000 (08:43 +0100)]
sadf: XML: A_PWR_BAT: Fix XSD document

Variation of battery capacity may be negative. So update XSD document to
accept negative values.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: PCP: Fix pmiID number for three USB metrics
Sebastien GODARD [Thu, 29 Dec 2022 15:49:25 +0000 (16:49 +0100)]
sadf: PCP: Fix pmiID number for three USB metrics

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoUpdate manual pages
Sebastien GODARD [Thu, 29 Dec 2022 10:59:38 +0000 (11:59 +0100)]
Update manual pages

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: A_PWR_BAT: Generate batteries statistics in PCP format
Sebastien GODARD [Thu, 29 Dec 2022 10:27:39 +0000 (11:27 +0100)]
sadf: A_PWR_BAT: Generate batteries statistics in PCP format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: A_PWR_BAT: Add f_count_new() function
Sebastien GODARD [Thu, 29 Dec 2022 10:11:09 +0000 (11:11 +0100)]
sadf: A_PWR_BAT: Add f_count_new() function

This function is aimed at creating a list of battery names that will
later be used to create PCP instances.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoA_PWR_BAT: Use colors to display negative values
Sebastien GODARD [Thu, 29 Dec 2022 07:37:18 +0000 (08:37 +0100)]
A_PWR_BAT: Use colors to display negative values

Two thresholds are defined: -10.0 and -5.0.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoA_PWR_BAT: Change field name from "%cap/min" to "cap/min"
Sebastien GODARD [Thu, 29 Dec 2022 07:34:34 +0000 (08:34 +0100)]
A_PWR_BAT: Change field name from "%cap/min" to "cap/min"

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosar: A_PWR_BAT: Change arrow type for status "Not charging"
Sebastien GODARD [Thu, 29 Dec 2022 07:26:43 +0000 (08:26 +0100)]
sar: A_PWR_BAT: Change arrow type for status "Not charging"

Use East Arrow symbol (right arrow) instead of South Arrow for status
"Not charging".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: JSON: A_PWR_BAT: Add missing check
Sebastien GODARD [Wed, 28 Dec 2022 17:25:08 +0000 (18:25 +0100)]
sadf: JSON: A_PWR_BAT: Add missing check

Make sure that status code is not greater than upper limit before using.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: A_PWR_BAT: Display batteries stats in RAW format
Sebastien GODARD [Wed, 28 Dec 2022 17:20:35 +0000 (18:20 +0100)]
sadf: A_PWR_BAT: Display batteries stats in RAW format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoMove some definitions from common.h to rd_stats.h
Sebastien GODARD [Wed, 28 Dec 2022 15:19:53 +0000 (16:19 +0100)]
Move some definitions from common.h to rd_stats.h

proc and sys files which are used only by sadc are moved to rd_stats.h
file.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: A_PWR_BAT: Display batteries stats in SVG format
Sebastien GODARD [Wed, 28 Dec 2022 15:11:25 +0000 (16:11 +0100)]
sadf: A_PWR_BAT: Display batteries stats in SVG format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: A_PWR_BAT: Display batteries stats in JSON format
Sebastien GODARD [Wed, 28 Dec 2022 14:19:49 +0000 (15:19 +0100)]
sadf: A_PWR_BAT: Display batteries stats in JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: A_PWR_BAT: Display batteries stats in XML format
Sebastien GODARD [Wed, 28 Dec 2022 14:18:51 +0000 (15:18 +0100)]
sadf: A_PWR_BAT: Display batteries stats in XML format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoA_PWR_BAT: Update DTD and XSD documents
Sebastien GODARD [Wed, 28 Dec 2022 14:00:31 +0000 (15:00 +0100)]
A_PWR_BAT: Update DTD and XSD documents

Update XML documents to deal with batteries statistics.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agosadf: A_PWR_BAT: Display batteries stats in db/ppc formats
Sebastien GODARD [Wed, 28 Dec 2022 13:23:30 +0000 (14:23 +0100)]
sadf: A_PWR_BAT: Display batteries stats in db/ppc formats

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoA_PWR_BAT: Change column name from "sts" to "status"
Sebastien GODARD [Wed, 28 Dec 2022 13:21:39 +0000 (14:21 +0100)]
A_PWR_BAT: Change column name from "sts" to "status"

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agocommon.c: Display sign with cprintf_f() function
Sebastien GODARD [Wed, 28 Dec 2022 11:05:26 +0000 (12:05 +0100)]
common.c: Display sign with cprintf_f() function

Update cprintf_f() function so that the sign (+ or -) can be displayed
if requested.
This is intended for values used for batteries capacity variation.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoMakefile: Fix dependencies
Sebastien GODARD [Wed, 28 Dec 2022 10:52:09 +0000 (11:52 +0100)]
Makefile: Fix dependencies

Files pcp_def_metrics.c and pcp_stats.c depend on sa.h which depends
itself on common.h, rd_stats.h and rd_sensors.h.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
23 months agoA_PWR_BAT: Display battery statistics with sar
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>
23 months agoA_PWR_BAT: Add f_count and f_read functions
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>
23 months agoA_PWR_BAT: Add new option and basic definitions for sar and sadc
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>
2 years agoCosmetic changes (enumerate values in header files when applicable)
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>
2 years agoUpdate non regression tests
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>
2 years agosadf: RAW: Fix extra space when no TZ printed
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>
2 years agoMerge branch 'NatePW-correct_dbpcc_timestamp'
Sebastien GODARD [Sat, 10 Dec 2022 13:06:00 +0000 (14:06 +0100)]
Merge branch 'NatePW-correct_dbpcc_timestamp'

2 years agoMerge branch 'correct_dbpcc_timestamp' of https://github.com/NatePW/sysstat into...
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

2 years agosadc: Add another overflow check
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>
2 years agoUpdate non regression tests
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>
2 years agoUpdate manual pages
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>
2 years agoTry to avoid displaying healthy metrics values in "red" (#177)
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>
2 years agoFix extra space when no TZ printed
Nathanael P Wilson [Mon, 28 Nov 2022 20:30:06 +0000 (12:30 -0800)]
Fix extra space when no TZ printed

2 years agoMerge pull request #346 from Kwstubbs/Kwstubbs/add-codeql-workflow
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

2 years agoAdd CodeQL workflow
Kevin Stubbings [Tue, 22 Nov 2022 00:12:29 +0000 (16:12 -0800)]
Add CodeQL workflow

2 years agoStarting sysstat 12.7.2
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>
2 years agosysstat-12.7.1 v12.7.1
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>
2 years agoUpdate NLS translations
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>
2 years agoMake sure values to be compared are unsigned integers
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>
2 years agoUpdate non regression tests again
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>
2 years agoUpdate non regression tests
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>
2 years agoAdd more overflow checks
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>
2 years agoMerge pull request from GHSA-q8r6-g56f-9w7x
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)

2 years agoMerge pull request #342 from shaleen-bathla/master
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

2 years agompstat: 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>
2 years agoFix size_t overflow in sa_common.c (GHSL-2022-074)
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>
2 years agoUpdate non regression tests
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>