]> granicus.if.org Git - sysstat/log
sysstat
7 years agoFix #125: pidstat omits kernel threads when using -l option
Sebastien GODARD [Mon, 5 Sep 2016 15:37:53 +0000 (17:37 +0200)]
Fix #125: pidstat omits kernel threads when using -l option

When option -l is used with pidstat, kernel threads don't appear
in output. This is because the kernel thread's command line (as
read from /proc/#/cmdline) is empty and pidstat wrongly considered that
the thread had terminated. This patch fixes this.

Reported-by: Andrew Theurer
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix fields list displayed by sadf -d for filesystem activity
Sebastien GODARD [Mon, 29 Aug 2016 14:13:37 +0000 (16:13 +0200)]
Fix fields list displayed by sadf -d for filesystem activity

sadf -d (which displays the contents of a datafile in CSV) always
displayed the following line

FILESYSTEM;MBfsfree;MBfsused;%fsused;%ufsused;Ifree;Iused;%Iused

for filesystems statistics, even when the mountpoint name was requested
by the user (with "-F MOUNT").
With this patch, sadf will now print

MOUNTPOINT;MBfsfree;MBfsused;%fsused;%ufsused;Ifree;Iused;%Iused

when the mountpoint name has been selected.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosadf: Remove sysdata-version from JSON output
Sebastien GODARD [Mon, 29 Aug 2016 06:27:36 +0000 (08:27 +0200)]
sadf: Remove sysdata-version from JSON output

Remove sysdata-version field from JSON output. This field is relevant
only for XML output (it's the version of the DTD/XSD documents).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoReuse hdr_line string for activities title line
Sebastien GODARD [Sun, 28 Aug 2016 14:04:32 +0000 (16:04 +0200)]
Reuse hdr_line string for activities title line

Struct activity has a field named hdr_line which was used to display the
list of fields displayed by sadf -d.
Reuse it to display the periodic activity header line in sar's output.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosar: Align some columns contents on the left
Sebastien GODARD [Fri, 26 Aug 2016 08:21:31 +0000 (10:21 +0200)]
sar: Align some columns contents on the left

Display sensors device name (fan, temp, voltage) and USB data (product
and manufacturer names) aligned on the left to make output a bit less
wide.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoFix #124: Conversion from older formats is broken
Sebastien GODARD [Fri, 26 Aug 2016 07:30:05 +0000 (09:30 +0200)]
Fix #124: Conversion from older formats is broken

Commit 3c6fffd introduced a stricter check on file_magic->header_size
field. Yet this field exists only for files created with sysstat
versions 10.3.1 and later and so, should not be checked for older
versions. Trying to check it with older versions breaks the possibility
to convert (using sadf -c) a datafile created by such an old version.

Reported-by: @almosthuman
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Update manual page
Sebastien GODARD [Sun, 21 Aug 2016 06:00:50 +0000 (08:00 +0200)]
iostat: Update manual page

Explain new "-o JSON" option.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Fix conversion factor for JSON output
Sebastien GODARD [Sun, 21 Aug 2016 05:46:17 +0000 (07:46 +0200)]
iostat: Fix conversion factor for JSON output

Conversion factor was always set to 1 for JSON output, regardless of the
unit chosen to display values (kB or MB). This patch fixes this.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat.c: Display extended disk stats in plain or JSON format
Sebastien GODARD [Fri, 19 Aug 2016 20:00:30 +0000 (22:00 +0200)]
iostat.c: Display extended disk stats in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat.c: Display basic disk stats in plain or JSON format
Sebastien GODARD [Fri, 19 Aug 2016 15:21:21 +0000 (17:21 +0200)]
iostat.c: Display basic disk stats in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat.c: Display CPU statistics in plain or JSON format
Sebastien GODARD [Fri, 19 Aug 2016 14:32:14 +0000 (16:32 +0200)]
iostat.c: Display CPU statistics in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat.c: Display timestamp in plain or JSON format
Sebastien GODARD [Fri, 19 Aug 2016 13:54:12 +0000 (15:54 +0200)]
iostat.c: Display timestamp in plain or JSON format

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoAdd JSON output for reports header
Sebastien GODARD [Fri, 19 Aug 2016 13:38:41 +0000 (15:38 +0200)]
Add JSON output for reports header

Update print_gal_header() function so that its output can be displayed
in JSON format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoMove xprintf()/xprintf0() functions from sadf.c to common.c
Sebastien GODARD [Fri, 19 Aug 2016 13:32:33 +0000 (15:32 +0200)]
Move xprintf()/xprintf0() functions from sadf.c to common.c

These functions will be used by other sysstat commands (eg. iostat). So
put them in common.c.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoiostat: Add "-o JSON" option
Sebastien GODARD [Fri, 19 Aug 2016 07:18:19 +0000 (09:18 +0200)]
iostat: Add "-o JSON" option

This option will enable the user to display iostat statistics in JSON
format.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoStarting sysstat 11.5.1
Sebastien GODARD [Mon, 15 Aug 2016 12:57:48 +0000 (14:57 +0200)]
Starting sysstat 11.5.1

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agosysstat-11.4.0 v11.4.0
Sebastien GODARD [Mon, 15 Aug 2016 12:47:35 +0000 (14:47 +0200)]
sysstat-11.4.0

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

NOTE: Another stable version (11.2.6) also exists and is available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

This other stable version doesn't include SVG support for sar/sadf.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
7 years agoNLS: Sync with translation project
Sebastien GODARD [Mon, 15 Aug 2016 10:24:28 +0000 (12:24 +0200)]
NLS: Sync with translation project

Vietnamese translation updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoReplace strcpy() with strncpy() to avoid buffer overflows
Sebastien GODARD [Thu, 11 Aug 2016 07:13:57 +0000 (09:13 +0200)]
Replace strcpy() with strncpy() to avoid buffer overflows

Using strcpy() is not safe since destination buffer may overflow, for
example if the string being copied doesn't contain a terminator.
This patch replaces strcpy() with strncpy() to make sure no buffer
overflows happen.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoiostat: Fix comment
Sebastien GODARD [Sun, 17 Jul 2016 16:31:17 +0000 (18:31 +0200)]
iostat: Fix comment

Fix issue #122.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update graphs title
Sebastien GODARD [Sun, 10 Jul 2016 10:11:30 +0000 (12:11 +0200)]
SVG: Update graphs title

Update graph title for network errors statistics (title was the same as
for network statistics).
Also update graph title for IPv4 network sockets (we have graphs for
IPv4 and IPv6 network sockets).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Remove empty lines
Sebastien GODARD [Sun, 10 Jul 2016 10:08:56 +0000 (12:08 +0200)]
SVG: Remove empty lines

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Reorder metrics to be consistent with the output of sar
Sebastien GODARD [Sun, 10 Jul 2016 09:59:35 +0000 (11:59 +0200)]
SVG: Reorder metrics to be consistent with the output of sar

Try, whenever possible, to have the same metrics order for graphs as for
sar's output.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Code refactoring
Sebastien GODARD [Fri, 8 Jul 2016 15:47:13 +0000 (17:47 +0200)]
SVG: Code refactoring

Add a new array (g_fields[]) used to determine the order in which the
metrics will be drawn. Used by save_extrema() function to save the min
and max values at the right position in spmin[]/spmax[] arrays.

Add a new array (g_type[]) giving the type of graphs that will be drawn
in each view (SVG_LINE_GRAPH, SVG_BAR_GRAPH). It makes it possible now
to call draw_activity_graphs() function only once even if there are
several types of graphs to draw.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Apply workaround for I/O and transfer rates statistics
Sebastien GODARD [Sat, 2 Jul 2016 12:53:13 +0000 (14:53 +0200)]
SVG: Apply workaround for I/O and transfer rates statistics

See commit 5d3efa1.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Assume max values for graphs cannot be negative
Sebastien GODARD [Sat, 2 Jul 2016 12:41:25 +0000 (14:41 +0200)]
SVG: Assume max values for graphs cannot be negative

Assume maximum values cannot be negative.
Is a negative value is found, then replace it with zero.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoWorkaround for I/O and transfer rates statistics
Sebastien GODARD [Fri, 1 Jul 2016 13:30:34 +0000 (15:30 +0200)]
Workaround for I/O and transfer rates statistics

Values displayed for I/O and transfer rates statistics (sar -b) may be
wrong if a filesystem / a device is unmounted, eg:

16:45:08          tps      rtps      wtps   bread/s   bwrtn/s
16:50:00        46.57     40.12      6.45    648.67    573.12
16:55:08    59853160524690272.00 59853160524690272.00      6.29
59853160524689824.00    135.44

This is because the total number of I/O operations is calculated as the sum
of operations for each filesystem/device mounted by the system. But if a
filesystem is unmounted, the total number of I/O operations may be lower
than its previous value, resulting in a negative number displayed by
sar. Display 0.0 in this case.
A note warning the user should probably go into the manual page too.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add separate functions to display background grid
Sebastien GODARD [Fri, 1 Jul 2016 12:56:57 +0000 (14:56 +0200)]
SVG: Add separate functions to display background grid

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add separate function for graphs autoscaling
Sebastien GODARD [Fri, 1 Jul 2016 12:04:10 +0000 (14:04 +0200)]
SVG: Add separate function for graphs autoscaling

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix how bar graphs are displayed for fs statistics
Sebastien GODARD [Fri, 1 Jul 2016 10:55:22 +0000 (12:55 +0200)]
SVG: Fix how bar graphs are displayed for fs statistics

Comment in code stating that "bar graphs should not extend over previous
interval because %values are not calculated over a time interval but are
instantaneous values" is wrong. Doing this implies loosing the first
value and is not consistent with how bar graphs are displayed for other
activities.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoFix unsigned compared against 0
Sebastien GODARD [Fri, 1 Jul 2016 10:38:38 +0000 (12:38 +0200)]
Fix unsigned compared against 0

file_magic->header_size is an unsigned int value and so cannot be
strictly less than 0 [CID#127473].

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoStarting sysstat 11.4.0
Sebastien GODARD [Fri, 24 Jun 2016 12:37:04 +0000 (14:37 +0200)]
Starting sysstat 11.4.0

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agosysstat-11.3.5 v11.3.5
Sebastien GODARD [Fri, 24 Jun 2016 12:06:42 +0000 (14:06 +0200)]
sysstat-11.3.5

sysstat version 11.3.5 final packaging.
lsm and spec files updated.
Changelog added.
Cosmetic fixes.

NOTE: A stable version (11.2.5) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.3.5
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoNLS: Sync with translation project
Sebastien GODARD [Fri, 24 Jun 2016 11:38:39 +0000 (13:38 +0200)]
NLS: Sync with translation project

Various translations updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Check for zero time interval
Sebastien GODARD [Mon, 20 Jun 2016 16:08:59 +0000 (18:08 +0200)]
SVG: Check for zero time interval

Don't draw a bar if its width (time interval) is zero.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Check for unmounted filesystems
Sebastien GODARD [Mon, 20 Jun 2016 16:04:18 +0000 (18:04 +0200)]
SVG: Check for unmounted filesystems

Make graphs (displayed for filesystems statistics) discontinuous if the
filesystem has been unmounted then mounted again.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoUse itv instead of g_itv for interval variable name
Sebastien GODARD [Sun, 19 Jun 2016 08:55:05 +0000 (10:55 +0200)]
Use itv instead of g_itv for interval variable name

This is mainly cosmetic...

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for FC HBA statistics
Sebastien GODARD [Sun, 19 Jun 2016 08:33:30 +0000 (10:33 +0200)]
SVG: Add SVG output for FC HBA statistics

These graphs correspond to the output of "sar -n FC".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix "skipempty" option
Sebastien GODARD [Sat, 18 Jun 2016 15:59:24 +0000 (17:59 +0200)]
SVG: Fix "skipempty" option

When an activity is depicted by several views and option "skipempty" is
used, views with non zero values following a view which has been skipped
were also not displayed. Fix this here.
Also free memory for views which have been skipped.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for filesystems statistics
Sebastien GODARD [Fri, 17 Jun 2016 16:46:52 +0000 (18:46 +0200)]
SVG: Add SVG output for filesystems statistics

These graphs correspond to the output of "sar -F".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for disk statistics
Sebastien GODARD [Fri, 17 Jun 2016 13:13:27 +0000 (15:13 +0200)]
SVG: Add SVG output for disk statistics

These graphs correspond to the output of "sar -d".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for NFS server statistics
Sebastien GODARD [Fri, 17 Jun 2016 08:45:36 +0000 (10:45 +0200)]
SVG: Add SVG output for NFS server statistics

These graphs correspond to the output of "sar -n NFSD".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for NFS client statistics
Sebastien GODARD [Fri, 17 Jun 2016 08:29:33 +0000 (10:29 +0200)]
SVG: Add SVG output for NFS client statistics

These graphs correspond to the output of "sar -n NFS".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for network interface errors statistics
Sebastien GODARD [Fri, 17 Jun 2016 08:13:49 +0000 (10:13 +0200)]
SVG: Add SVG output for network interface errors statistics

These graphs correspond to the output of "sar -n EDEV".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for voltage inputs statistics
Sebastien GODARD [Sun, 12 Jun 2016 10:10:01 +0000 (12:10 +0200)]
SVG: Add SVG output for voltage inputs statistics

These graphs correspond to the output of "sar -m IN".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Make sure graduations are properly aligned with grid
Sebastien GODARD [Sun, 12 Jun 2016 08:07:24 +0000 (10:07 +0200)]
SVG: Make sure graduations are properly aligned with grid

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for ICMP network errors statistics
Sebastien GODARD [Sat, 11 Jun 2016 12:11:00 +0000 (14:11 +0200)]
SVG: Add SVG output for ICMP network errors statistics

These graphs correspond to the output of "sar -n EICMP6".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix title for IPv6 network statistics graphs
Sebastien GODARD [Mon, 6 Jun 2016 06:32:07 +0000 (08:32 +0200)]
SVG: Fix title for IPv6 network statistics graphs

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for IPv6 network errors statistics
Sebastien GODARD [Mon, 6 Jun 2016 06:29:40 +0000 (08:29 +0200)]
SVG: Add SVG output for IPv6 network errors statistics

These graphs correspond to the output of "sar -n EIP6".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for TCPv4 network errors statistics
Sebastien GODARD [Fri, 3 Jun 2016 12:31:31 +0000 (14:31 +0200)]
SVG: Add SVG output for TCPv4 network errors statistics

These graphs correspond to the output of "sar -n ETCP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SCG output for ICMPv4 network errors statistics
Sebastien GODARD [Fri, 3 Jun 2016 12:19:24 +0000 (14:19 +0200)]
SVG: Add SCG output for ICMPv4 network errors statistics

These graphs correspond to the output of "sar -n EICMP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for IPv4 network errors statistics
Sebastien GODARD [Fri, 3 Jun 2016 11:50:12 +0000 (13:50 +0200)]
SVG: Add SVG output for IPv4 network errors statistics

These graphs correspond to the output of "sar -n EIP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for UDPv6 network statistics
Sebastien GODARD [Fri, 3 Jun 2016 11:35:03 +0000 (13:35 +0200)]
SVG: Add SVG output for UDPv6 network statistics

These graphs correspond to the output of "sar -n UDP6".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for ICMPv6 network statistics
Sebastien GODARD [Fri, 3 Jun 2016 09:02:36 +0000 (11:02 +0200)]
SVG: Add SVG output for ICMPv6 network statistics

These graphs correspond to the output of "sar -n ICMP6".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for IPv6 network statistics
Sebastien GODARD [Fri, 3 Jun 2016 08:31:57 +0000 (10:31 +0200)]
SVG: Add SVG output for IPv6 network statistics

These graphs correspond to the output of "sar -n IP6".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for ICMPv4 network statistics
Sebastien GODARD [Fri, 3 Jun 2016 08:11:39 +0000 (10:11 +0200)]
SVG: Add SVG output for ICMPv4 network statistics

These graphs correspond to the output of "sar -n ICMP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoMerge branch 'clang' of https://github.com/pschiffe/sysstat
Sebastien GODARD [Fri, 3 Jun 2016 07:10:57 +0000 (09:10 +0200)]
Merge branch 'clang' of https://github.com/pschiffe/sysstat

8 years agoUpdate sar manual page
Sebastien GODARD [Fri, 3 Jun 2016 06:46:52 +0000 (08:46 +0200)]
Update sar manual page

Unify the description of the tps value for -b and -d flags.
Fixes #120.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agotapestat: prevent reallocing to 0 bytes
Peter Schiffer [Wed, 1 Jun 2016 11:41:39 +0000 (13:41 +0200)]
tapestat: prevent reallocing to 0 bytes

Ensure that realloc is not using 0 as new size in
tape_check_tapes_and_realloc() function.

8 years agotapestat: avoid double free
Peter Schiffer [Wed, 1 Jun 2016 11:38:36 +0000 (13:38 +0200)]
tapestat: avoid double free

Avoid possibility of double free in tape_check_tapes_and_realloc() function.

8 years agotapestat: more fixes for realloc
Peter Schiffer [Wed, 1 Jun 2016 11:34:51 +0000 (13:34 +0200)]
tapestat: more fixes for realloc

Of course I forgot to assign new pointers from realloc to original variables.
This patch fixes that.

8 years agoMerge branch 'clang' of https://github.com/pschiffe/sysstat
Sebastien GODARD [Sat, 28 May 2016 08:46:33 +0000 (10:46 +0200)]
Merge branch 'clang' of https://github.com/pschiffe/sysstat

8 years agoMerge branch 'coverity' of https://github.com/pschiffe/sysstat
Sebastien GODARD [Sat, 28 May 2016 08:21:23 +0000 (10:21 +0200)]
Merge branch 'coverity' of https://github.com/pschiffe/sysstat

8 years agoCheck for undefined UID variable in sysstat script
Sebastien GODARD [Sat, 28 May 2016 08:10:04 +0000 (10:10 +0200)]
Check for undefined UID variable in sysstat script

In some rare cases, UID variable (which should expand to current user's
ID with bash) happens to be undefined:

$ sudo /etc/init.d/sysstat start
/etc/init.d/sysstat: 31: [: -eq: unexpected operator

This patch checks for that.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoUpdate sadf manual page
Sebastien GODARD [Sat, 28 May 2016 08:08:42 +0000 (10:08 +0200)]
Update sadf manual page

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agotapestat: do a proper realloc
Peter Schiffer [Wed, 25 May 2016 12:15:19 +0000 (14:15 +0200)]
tapestat: do a proper realloc

Store the output of a realloc in a temp var, so the original variable can be
freed upon failure.

8 years agotapestat: simplify tape_check_tapes_and_realloc()
Peter Schiffer [Wed, 25 May 2016 11:36:51 +0000 (13:36 +0200)]
tapestat: simplify tape_check_tapes_and_realloc()

Simplify check deciding when to realloc tape_stats. Realloc only if there is
more new tape drives than before.

8 years agotapestat: exit if there is not enough memory
Peter Schiffer [Wed, 25 May 2016 11:26:48 +0000 (13:26 +0200)]
tapestat: exit if there is not enough memory

8 years agoStricter check for file_magic->header_size
Peter Schiffer [Wed, 25 May 2016 11:03:25 +0000 (13:03 +0200)]
Stricter check for file_magic->header_size

The file_magic->header_size should never be outside of the boundary set by
MIN_FILE_HEADER_SIZE and MAX_FILE_HEADER_SIZE.

Should resolve coverity CID 29717 and CID 29719.

8 years agoUpdate sadf manual page
Sebastien GODARD [Sun, 22 May 2016 09:10:53 +0000 (11:10 +0200)]
Update sadf manual page

Explain option "oneday".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add "oneday" option
Sebastien GODARD [Sun, 22 May 2016 08:53:07 +0000 (10:53 +0200)]
SVG: Add "oneday" option

This option (to be used with sadf's switch -O) tells sadf to display
graph data over a period of 24 hours.
Hours are still printed in UTC by default, use switch -T to print them
in local time and get a time window going from 00H to 00H, eg.:

sadf -g -T -O oneday -- -A > out.svg

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Pass only needed parameter instead of whole record_header
Sebastien GODARD [Fri, 20 May 2016 09:01:30 +0000 (11:01 +0200)]
SVG: Pass only needed parameter instead of whole record_header

ust_time is the only needed parameter, used to determine the origin on
the X axis. So don't pass the pointer on the whole record_header
structure in svg_parm structure.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoFix typo in sadf manual page
Sebastien GODARD [Sun, 15 May 2016 08:35:17 +0000 (10:35 +0200)]
Fix typo in sadf manual page

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoStarting sysstat 11.3.5
Sebastien GODARD [Sat, 14 May 2016 08:43:53 +0000 (10:43 +0200)]
Starting sysstat 11.3.5

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agosysstat-11.3.4 v11.3.4
Sebastien GODARD [Sat, 14 May 2016 08:39:21 +0000 (10:39 +0200)]
sysstat-11.3.4

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

NOTE: A stable version (11.2.4) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.3.4
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoNLS: Sync with translation project
Sebastien GODARD [Sat, 14 May 2016 08:30:14 +0000 (10:30 +0200)]
NLS: Sync with translation project

Croatian translation updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoAdd a reference to sysstat(5) in sadf and sar manual pages
Sebastien GODARD [Fri, 13 May 2016 13:37:14 +0000 (15:37 +0200)]
Add a reference to sysstat(5) in sadf and sar manual pages

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSome more cosmetic changes
Sebastien GODARD [Fri, 13 May 2016 13:26:16 +0000 (15:26 +0200)]
Some more cosmetic changes

Update code to get one indentation less.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoCosmetic changes
Sebastien GODARD [Fri, 13 May 2016 13:25:10 +0000 (15:25 +0200)]
Cosmetic changes

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Differentiate graphs titles for temperature sensors
Sebastien GODARD [Fri, 13 May 2016 12:56:36 +0000 (14:56 +0200)]
SVG: Differentiate graphs titles for temperature sensors

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update sadf manual page
Sebastien GODARD [Fri, 13 May 2016 12:46:33 +0000 (14:46 +0200)]
SVG: Update sadf manual page

Update sadf manual page to explain option -O.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Update sadf usage message
Sebastien GODARD [Fri, 13 May 2016 12:45:02 +0000 (14:45 +0200)]
SVG: Update sadf usage message

Include option -O in sadf usage message.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Fix graph's min and max values test
Sebastien GODARD [Sat, 7 May 2016 13:37:24 +0000 (15:37 +0200)]
SVG: Fix graph's min and max values test

sadf should check for a min and a max value for the first graph of each
view.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Really skip empty views when option "skipempty" is used
Sebastien GODARD [Sat, 7 May 2016 13:17:53 +0000 (15:17 +0200)]
SVG: Really skip empty views when option "skipempty" is used

Even when option "skipempty" was used with sadf, some views were still
displayed because some of their graphs had very low (but not equal to
zero) values.
As the resulting views appeared empty anyway, make sadf skip them
anyway.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add "autoscale" option
Sebastien GODARD [Fri, 6 May 2016 13:52:29 +0000 (15:52 +0200)]
SVG: Add "autoscale" option

This new option (to be used with sadf's switch -O) tells sadf to draw
all the graphs of a given view as large as possible based on current
view's scale. To do this, a factor (10, 100, 1000...) is used to
enlarge the graph drawing.
This option may be intesting when several graphs are drawn on the same
view, some with only very small values, and others with high ones,
the latter making the former difficult to see.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add "skipempty" option
Sebastien GODARD [Sun, 1 May 2016 08:54:51 +0000 (10:54 +0200)]
SVG: Add "skipempty" option

Add a new switch (-O) to sadf to enable the user to pass additional
options to control SVG output.
This first option is "skipempty" which tells sadf to not display views
where all graphs have only zero values.

Example: sadf -g -O skipempty -- -A > out.svg

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for UDPv4 network statistics
Sebastien GODARD [Sat, 30 Apr 2016 14:43:13 +0000 (16:43 +0200)]
SVG: Add SVG output for UDPv4 network statistics

These graphs correspond to the output of "sar -n UDP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for TCPv4 network statistics
Sebastien GODARD [Sat, 30 Apr 2016 14:27:04 +0000 (16:27 +0200)]
SVG: Add SVG output for TCPv4 network statistics

These graphs correspond to the output of "sar -n TCP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for IPv4 network statistics
Sebastien GODARD [Sat, 30 Apr 2016 14:16:14 +0000 (16:16 +0200)]
SVG: Add SVG output for IPv4 network statistics

These graphs correspond to the output of "sar -n IP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for IPv6 netwok socket statistics
Sebastien GODARD [Sat, 30 Apr 2016 13:48:20 +0000 (15:48 +0200)]
SVG: Add SVG output for IPv6 netwok socket statistics

This graph corresponds to the output of "sar -n SOCK6".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for network socket statistics
Sebastien GODARD [Sat, 30 Apr 2016 13:36:21 +0000 (15:36 +0200)]
SVG: Add SVG output for network socket statistics

These graphs correspond to the outpu of "sar -n SOCK".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoCosmetic fixes
Sebastien GODARD [Sat, 30 Apr 2016 13:15:42 +0000 (15:15 +0200)]
Cosmetic fixes

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for hugepages utilization statistics
Sebastien GODARD [Sat, 16 Apr 2016 13:44:06 +0000 (15:44 +0200)]
SVG: Add SVG output for hugepages utilization statistics

These graphs correspond to the output of "sar -H".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for kernel tables statistics
Sebastien GODARD [Sat, 16 Apr 2016 13:02:28 +0000 (15:02 +0200)]
SVG: Add SVG output for kernel tables statistics

These graphs correspond to the output of "sar -v".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for I/O and transfer rate statistics
Sebastien GODARD [Sat, 16 Apr 2016 06:43:52 +0000 (08:43 +0200)]
SVG: Add SVG output for I/O and transfer rate statistics

These graphs correspond to the output of "sar -b".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for temperature sensors statistics
Sebastien GODARD [Fri, 15 Apr 2016 12:50:48 +0000 (14:50 +0200)]
SVG: Add SVG output for temperature sensors statistics

These graphs correspond to the output of "sar -m TEMP".

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoSVG: Add SVG output for fan speed statistics
Sebastien GODARD [Fri, 15 Apr 2016 12:03:26 +0000 (14:03 +0200)]
SVG: Add SVG output for fan speed statistics

This graph corresponds to the output of "sar -m FAN".
The graph type is "rectangular" (just like that for CPU frequency
statistics).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoStarting sysstat 11.3.4
Sebastien GODARD [Sat, 9 Apr 2016 12:47:42 +0000 (14:47 +0200)]
Starting sysstat 11.3.4

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agosysstat-11.3.3 v11.3.3
Sebastien GODARD [Sat, 9 Apr 2016 12:42:39 +0000 (14:42 +0200)]
sysstat-11.3.3

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

NOTE: A stable version (11.2.3) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.3.3
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
8 years agoNLS: Sync with Translation Project
Sebastien GODARD [Sat, 9 Apr 2016 12:25:32 +0000 (14:25 +0200)]
NLS: Sync with Translation Project

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>