]>
granicus.if.org Git - sysstat/log
Peter Portante [Wed, 23 Mar 2016 01:42:14 +0000 (21:42 -0400)]
Quick fix for cprintf_u64 non-uintv64_t
Sebastien GODARD [Mon, 21 Mar 2016 16:50:27 +0000 (17:50 +0100)]
SVG: Make SVG code locale independent
Graphs could not be displayed if corresponding SVG code had been
generated on machines with specific locales.
Eg: If you set your locale to, say, fr_FR then here is a sample SVG
code you could get:
...
<path id="g9p0" d=" M311,2663,54 L613,1446,20 L913,423,75 (...)
...
To avoid the confusion, this patch sets the LC_NUMERIC to "C" so that a
decimal point is used instead of a comma:
...
<path id="g9p0" d=" M311,2663.54 L613,1446.20 L913,423.75 (...)
...
Resulting SVG output can now be displayed whatever locale is used.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 19 Mar 2016 15:16:06 +0000 (16:16 +0100)]
SVG: Fix "SVG graphs report 'No data' for dynamically added CPUs"
Fix #107.
Offline CPU were not properly taken into account when creating SVG
graphs for CPU statistics.
This was because min and max values were not updated for the metrics
(%user, %nice, etc.) This should be done even for offline (and also
tickless) CPUs.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Mar 2016 13:41:07 +0000 (14:41 +0100)]
SVG: Add SVG output for CPU statistics
Each CPU (including CPU "all") has a bar graph, with each metric being
cumulative.
At the present time, %idle is not displayed because I think the graph is
much more readable without it. But an SVG option to display it will
possibly be added in the future.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Mar 2016 13:31:21 +0000 (14:31 +0100)]
SVG: Update core functions
Create separate functions for line graphs and bar graphs.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Mar 2016 13:21:56 +0000 (14:21 +0100)]
SVG: Fix truncated SVG code
SVG graph definition may be truncated when the array which contains
SVG code needs to be resized. Fix this.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Mar 2016 13:18:09 +0000 (14:18 +0100)]
SVG: Update graph colors
This is necessary to tell the difference between several graphs which
may be drawn on the same view.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Mar 2016 10:17:13 +0000 (11:17 +0100)]
Starting sysstat 11.3.3
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Mar 2016 10:11:02 +0000 (11:11 +0100)]
sysstat-11.3.2
sysstat version 11.3.2 final packaging.
lsm and spec files updated.
Changelog added.
NOTE: A stable version (11.2.2) 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.2
but not the new features.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Mar 2016 09:59:05 +0000 (10:59 +0100)]
NLS: Sync with Translation Project
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 13 Mar 2016 09:30:38 +0000 (10:30 +0100)]
SVG: Update sadf manual page
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 12 Mar 2016 10:27:30 +0000 (11:27 +0100)]
sar: Fix possible compatibility issues between sysstat versions
Fix an issue that made sar unable to read statistics for network
and disk devices from a datafile created by a more recent version of
sysstat when the size of the structures used to save those statistics
was greater than that of the current version.
This may be the case when eg. new fields are appended to network or disk
structures.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 12 Mar 2016 09:54:22 +0000 (10:54 +0100)]
SVG: Remove decimals in Y graduations for bar graphs
Bar graphs are used to display metrics expressed as percentage values.
Graduations on the Y axis are fixed values (0, 25, 50, 75 and 100) that
don't need to be decimal numbers (0.00, 25.00, ...)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 17:05:50 +0000 (18:05 +0100)]
SVG: Handle dynamically (un)registered network interfaces (2)
Commit
f5d9bce dealt with network interfaces that can be dynamically
registered or unregistered in /proc/net/dev. But it assumed that network
interfaces appear always at the same position in the /proc/net/dev file.
As this is not necessarily the case, this patch makes sure that we
update the right graph corresponding to the same network interface.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 16:54:57 +0000 (17:54 +0100)]
Fix possible confusion among network interfaces
Some wrong statistics could have been displayed when a new network
interface was dynamically registered and appeared in the middle of
the list of existing interfaces in /proc/net/dev.
This patch fixes this problem (that hardly ever happens), and
removes some redundant lines of code.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 10:11:37 +0000 (11:11 +0100)]
SVG: Update SVG output for swap statistics
This patch updates SVG code used to draw graphs for swap statistics to
keep in sync with current SVG core functions.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 09:58:31 +0000 (10:58 +0100)]
Merge branch 'stevekay-master'
Sebastien GODARD [Fri, 11 Mar 2016 09:56:04 +0000 (10:56 +0100)]
Merge branch 'master' of https://github.com/stevekay/sysstat into stevekay-master
Sebastien GODARD [Fri, 11 Mar 2016 09:44:34 +0000 (10:44 +0100)]
SVG: Cosmetic fixes
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 11 Mar 2016 09:34:22 +0000 (10:34 +0100)]
SVG: Add graph for %ifutil metrics
Add a graph for the last metrics from network activity (%ifutil).
This a new type of graph (bar graph, whereas previous graphs were line
graphs) which will be used for all metrics expressed as percentage
values.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Steve Kay [Thu, 10 Mar 2016 23:08:05 +0000 (15:08 -0800)]
SVG: Add SVG output for swap statistics - single in/out graph
Steve Kay [Thu, 10 Mar 2016 23:02:44 +0000 (15:02 -0800)]
SVG: Add SVG output for swap statistics
Sebastien GODARD [Wed, 9 Mar 2016 17:44:56 +0000 (18:44 +0100)]
SVG: Beautify code a bit in svg_stats.c
Use item_name variable to make things easier to read.
Remove unneeded scrap.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 7 Mar 2016 17:49:54 +0000 (18:49 +0100)]
Merge branch 'pschiffe-master'
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Peter Schiffer [Mon, 7 Mar 2016 12:25:24 +0000 (13:25 +0100)]
Introduce new SP_VALUE_100() macro and use it in pidstat
Under specific loads, pidstat can output values bigger than 100% in CPU
statistics caused by inaccurate read of statistics provided by kernel.
This patch adds new SP_VALUE_100() macro which limits value to 100 for these
statistics, so the output can be correctly interpreted.
Sebastien GODARD [Sun, 6 Mar 2016 15:31:13 +0000 (16:31 +0100)]
SVG: Fix invalid use of attribute vector-effect
Attribute vector-effect="non-scaling-stroke" was not compliant with SVG
1.1 standards. Use CSS attributes instead.
Fix errors from W3 validator.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Mar 2016 15:10:28 +0000 (16:10 +0100)]
SVG: Update sadf manual page
Indicate that the output of sadf -g should be an SVG file instead of an
HTML one.
Fix a warning from W3 validator.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Mar 2016 15:04:56 +0000 (16:04 +0100)]
SVG: Specify encoding in SVG header
Charset encoding must be specified in SVG header.
Fix a warning from W3 validator.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Mar 2016 14:26:49 +0000 (15:26 +0100)]
Update manual pages
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 6 Mar 2016 14:20:32 +0000 (15:20 +0100)]
mpstat/pidstat: Print time in the ISO format is S_TIME_FORMAT=ISO
Make mpstat and pidstat consistent with sar (cf. commit
00c44f0 ).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 5 Mar 2016 16:32:06 +0000 (17:32 +0100)]
SVG: Handle dynamically (un)registered network interfaces
Network interfaces may be dynamically registered or unregistered.
That is to say they can appear in the /proc/net/dev file when
the corresponding device is connected, and also disappear when
the device is removed.
This patch tries to handle this so that graphs are drawn for
the interfaces which are connected on the fly. Graphs are drawn only
when the device is actually connected, which means that they may be
discontinuous if the device is connected, then disconnected, then
reconnected again, just like when a system restart occurrs.
At the present time, this patch assumes that the devices are always at
the same position in /proc/net/dev, which is not necessarily the case.
This will be fixed later.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 5 Mar 2016 14:10:28 +0000 (15:10 +0100)]
Merge branch 'svg2' of https://github.com/stevekay/sysstat
Sebastien GODARD [Sat, 5 Mar 2016 14:07:13 +0000 (15:07 +0100)]
Merge branch 'svg1' of https://github.com/stevekay/sysstat
Steve Kay [Sat, 5 Mar 2016 05:54:53 +0000 (21:54 -0800)]
minor typo where attribute value was not surrounded by quotes
Steve Kay [Sat, 5 Mar 2016 05:47:57 +0000 (21:47 -0800)]
typo text-anchror -> text-anchor
Steve Kay [Fri, 4 Mar 2016 19:48:21 +0000 (11:48 -0800)]
fix tapestat man page typos
Sebastien GODARD [Fri, 4 Mar 2016 14:43:02 +0000 (15:43 +0100)]
SVG: Draw txkB/s and rxkB/s network metrics to scale
The metrics are expressed in kB/s whereas the corresponding counters are
saved in B/s. So recalculate min and max values in kB/s before drawing
graphs.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 4 Mar 2016 14:04:39 +0000 (15:04 +0100)]
Merge branch 'stevekay-master'
Disable NLS if one of xgettext, msgmerge or msgfmt commands is
unavailable.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Steve Kay [Sat, 27 Feb 2016 20:06:51 +0000 (15:06 -0500)]
Fixes #97 - disable NLS if any gettext components are unavailable
Sebastien GODARD [Wed, 24 Feb 2016 15:11:50 +0000 (16:11 +0100)]
Merge branch 'iso-time-fmt' of https://github.com/ynamiki/sysstat
Sebastien GODARD [Wed, 24 Feb 2016 11:47:36 +0000 (12:47 +0100)]
SVG: Add SVG output for network statistics
Add 3 new sets of graphs.
They will be displayed for each network interfaces installed.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 24 Feb 2016 11:40:45 +0000 (12:40 +0100)]
SVG: Free graphs structures only when all graphs have been drawn
Create a separate function to free structures.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 24 Feb 2016 11:14:08 +0000 (12:14 +0100)]
SVG: Add item name in graph title
Each item (network interface, etc.) will have its distinct set of
graphs. So add item name in the title of their graphs.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Wed, 24 Feb 2016 10:47:07 +0000 (11:47 +0100)]
SVG: Explicitly pass structures to be compared
The structures which will be scanned to check for min/max values need to
be explicitly passed to save_extrema() function. Indeed, for activities
with several items (eg. network statistics), we will need to scan each
item structure independently.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
ynamiki [Tue, 23 Feb 2016 05:55:56 +0000 (14:55 +0900)]
Print time in the ISO format if S_TIME_FORMAT=ISO in sar
Sebastien GODARD [Mon, 22 Feb 2016 17:49:47 +0000 (18:49 +0100)]
SVG: Check index in svg_colors[] array
Make sure that index used to get colors from svg_colors[] array
doesn't exceed array size.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 22 Feb 2016 17:26:34 +0000 (18:26 +0100)]
SVG: Init newly allocated strings
Graph definition is made of successive SVG "path" commands concatenated
together. Make sure that the strings allocated to receive these definitions
are initialized before being used.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 21 Feb 2016 16:38:19 +0000 (17:38 +0100)]
SVG: Add SVG output for paging statistics
Add 3 new sets of SVG graphs:
1) pgpgin/S, pgpgout/s
2) fault/s, majflt/s
3) pgfree/s, pgscank/s, pgscand/s, pgsteal/s
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 21 Feb 2016 16:36:14 +0000 (17:36 +0100)]
Fix comment
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 21 Feb 2016 16:33:10 +0000 (17:33 +0100)]
SVG: Create common functions
These functions will be used to draw graphs for other acitivities.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 21 Feb 2016 16:26:14 +0000 (17:26 +0100)]
SVG: Change colors order
This is purely cosmetic...
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 20 Feb 2016 15:32:43 +0000 (16:32 +0100)]
Starting sysstat 11.3.2
Update sysstat version number in configure script.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 20 Feb 2016 15:27:35 +0000 (16:27 +0100)]
sysstat-11.3.1
sysstat version 11.3.1 final packaging.
lsm and spec files updated.
Changelog added.
NOTE: A stable version (11.2.1.1) 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.1
but not the new features.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 20 Feb 2016 15:25:22 +0000 (16:25 +0100)]
Makefile: Update README file name
README file name is now README.md.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 20 Feb 2016 15:06:17 +0000 (16:06 +0100)]
NLS: Sync with Translation Project
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 20 Feb 2016 14:28:11 +0000 (15:28 +0100)]
FAQ updated
Update the FAQ and tell about the new SVG output format.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 20 Feb 2016 14:26:58 +0000 (15:26 +0100)]
Update sadf manual page
Describe sadf's option -g in manual page.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 19 Feb 2016 13:38:36 +0000 (14:38 +0100)]
SVG: Handle files with orphan samples properly
If a file has only orphan samples then display "No data" indicating that
the graph cannot be drawn.
An orphan sample is something like:
sadc data <-- LINUX RESTART
sadc data 1 1 <-- Create an orphan sample
sadc data <-- LINUX RESTART
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 19 Feb 2016 12:48:22 +0000 (13:48 +0100)]
SVG: Fix background H lines when all values are zero
The default Y scale max value is 1 when all the values are zero.
Yet in this case we still want 3 horizontal lines for the background
grid.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 19 Feb 2016 12:13:41 +0000 (13:13 +0100)]
SVG: Fix Y axis scale graduations for small values
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 19 Feb 2016 09:37:05 +0000 (10:37 +0100)]
SVG: Add SVG output for task creation and system switching activity.
Update sadf's SVG ouptput to create graphs for task creation and system
switching activity (this corresponds to the output of sar -w).
This is just a proof of concept.
Try it with "sadf -g /your/sa/datafile -- -w > out.html" and open
the resulting HTML file in your web browser.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 19 Feb 2016 08:11:49 +0000 (09:11 +0100)]
Update README and copyright messages
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 19 Feb 2016 07:28:41 +0000 (08:28 +0100)]
SVG: Calculate total number of graphs to display
Add get_svg_graph_nr() function, which calculate the total number of
graphs to display.
The result is used to set the output size in the SVG header.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 15 Feb 2016 17:02:05 +0000 (18:02 +0100)]
sa_common.c: Update comment in code
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 15 Feb 2016 16:58:38 +0000 (17:58 +0100)]
Define alignment constants
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 15 Feb 2016 16:36:48 +0000 (17:36 +0100)]
Add new FO_NO_TRUE_TIME flag
Define a new flag indicating that the timestamp cannot be displayed in
the original local time of the data file creator.
This flag will be used by the SVG output format, which also means that
the user won't be able to use sadf's option -t with this format.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 15 Feb 2016 16:21:31 +0000 (17:21 +0100)]
Use anonymous pointer to pass specific parameters
f_header() functions and f_timestamp() functions now use an anonymous
pointer to get parameters whose type depends on the output format.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 14 Feb 2016 15:04:36 +0000 (16:04 +0100)]
SVG: Update SVG report header
Update header that will be displayed once at the beginning of the
report, before all the graphs that will follow.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 14 Feb 2016 14:58:17 +0000 (15:58 +0100)]
SVG: Define new constants
Define new constants that will be used to draw SVG graphs.
Move previous existing definitions from sadf.h to sa.h
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 14 Feb 2016 14:40:04 +0000 (15:40 +0100)]
Merge branch 'svg'
Peter Schiffer [Tue, 9 Feb 2016 14:24:52 +0000 (15:24 +0100)]
Fixed typo in .spec
Peter Schiffer [Tue, 9 Feb 2016 14:07:34 +0000 (15:07 +0100)]
CREDITS file - removed trailing whitespaces
Peter Schiffer [Tue, 9 Feb 2016 14:05:56 +0000 (15:05 +0100)]
CREDITS file - convert to utf-8
Peter Schiffer [Tue, 9 Feb 2016 12:56:34 +0000 (13:56 +0100)]
Update license text
Update license text to the latest version, with correct FSF address.
Sebastien GODARD [Fri, 5 Feb 2016 08:09:03 +0000 (09:09 +0100)]
SVG: Update xml header in SVG output
Specify some attributes taking into account the number of graphs to be
displayed.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 5 Feb 2016 08:02:09 +0000 (09:02 +0100)]
Add new flag to read_next_sample() function
read_next_sample() function didn't fill the timestamp for special
records (COMMENT or RESTART ones) that had to be ignored.
So add a new flag (SET_TIMESTAMPS) to tell read_next_sample() function
to set the timestamps for special records when this is needed.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 29 Jan 2016 15:09:34 +0000 (16:09 +0100)]
SVG: Add new g_nr field in activity structure
The g_nr field indicates the number of graphs to draw for this activity,
and for one item.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 29 Jan 2016 09:12:16 +0000 (10:12 +0100)]
sadf: Add initial support for SVG output format
Add new SVG output format. This format can be selected with "sadf -g".
Add function used to display SVG header.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Tue, 26 Jan 2016 21:43:23 +0000 (22:43 +0100)]
JSON: Don't display fchosts tag when no stats exist
The JSON print function can be called for A_NET_FC (Fibre Channel)
activity even if no statistics exist. This is because this activity has
the AO_CLOSE_MARKUP flag used to close the "network" section of the
output. Anyway, in this case (when no stats exist), it should only do
that (close the network section) et not display the "fchost" tag.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 25 Jan 2016 07:24:17 +0000 (08:24 +0100)]
Move JSON specific code to its corresponding function
A bit of code was specific to JSON output. So move this code to the
f_timestamp function used by JSON output format, so that the main code
remains generic.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 25 Jan 2016 07:20:33 +0000 (08:20 +0100)]
Don't define seps variable twice
Don't define the seps variable as static so that it can be reused in
other files.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 24 Jan 2016 20:53:28 +0000 (21:53 +0100)]
Remove extern keyword from functions declarations
"extern" keyword is not needed when declaring a function (its use is
implicit).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sun, 24 Jan 2016 20:21:41 +0000 (21:21 +0100)]
Fix comment in sadf.c
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 22 Jan 2016 15:03:26 +0000 (16:03 +0100)]
sadf: Merge functions and make code (almost) generic
sadf code refactoring: Merge write_mech_stats(), logic1_write_stats()
and logic2_write_stats() functions.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 22 Jan 2016 13:01:36 +0000 (14:01 +0100)]
Fix comment in format.c
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 22 Jan 2016 12:57:42 +0000 (13:57 +0100)]
Move format specific code to its corresponding function
Incrementing tab variable was specific to XML output. So move this code
to the f_timestamp function used by XML output format, so that thee main
code remains generic.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 22 Jan 2016 11:43:53 +0000 (12:43 +0100)]
sar/sadf: Merge functions used to print special records
Merge functions used to display special (RESTART or COMMENT) records.
Before:
sadf: print_special_record()
sar: sar_print_special()
After:
print_special_record()
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 22 Jan 2016 08:11:17 +0000 (09:11 +0100)]
sar/sadf: Merge functions set_record_timestamp_string()
sar and sadf had the same functions with almost the same features.
Merge them.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 18 Jan 2016 17:36:18 +0000 (18:36 +0100)]
sar/sadf: Merge functions used to get timestamps
sadf code refactoring: Merge functions used to get and save timestamps.
Before:
sar: sar_get_record_timestamp_struct()
sadf: sadf_get_record_timestamp_struct()
After:
sa_get_record_timestamp_struct()
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 18 Jan 2016 17:31:29 +0000 (18:31 +0100)]
sadf: Rename functions
Didn't like the previous ones, but still not enthusiastic by the new
ones... :-/
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 16 Jan 2016 13:29:37 +0000 (14:29 +0100)]
sadf: Don't set timestamps twice
Remove call to sadf_get_record_timestamp_struct() function as it has
already been called in read_next_sample() function.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 16 Jan 2016 13:12:58 +0000 (14:12 +0100)]
sadf: Create read_next_sample() function
sadf code refactoring: Simplify code. Create a common function to read
next sample statistics (read_next_sample()).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 16 Jan 2016 07:59:37 +0000 (08:59 +0100)]
sadf: Merge functions used to display special records
sadf code refactoring: Merge functions used to display special (RESTART
or COMMENT) records.
Before:
write_textual_restarts()
write_textual_comments()
sadf_print_special()
After:
print_special_record()
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 15 Jan 2016 16:33:24 +0000 (17:33 +0100)]
Remove redundant variable
The name of the file being read was passed twice to
textual_display_loop() function. So remove one of them.
Make also a few cosmetic changes in code.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Mon, 28 Dec 2015 16:21:08 +0000 (17:21 +0100)]
Convert README file to Markdown format
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 26 Dec 2015 09:03:26 +0000 (10:03 +0100)]
Starting sysstat 11.3.1
Update sysstat number in configure script.
This version is the first one of the new 11.3 development series,
including all the new features in addition to the bugfixes included
in the 11.2 stable series.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 26 Dec 2015 08:51:01 +0000 (09:51 +0100)]
sysstat-11.2.0
sysstat version 11.2.0 final packaging.
lsm and spec files updated.
Changelog added.
Version 11.2.0 is the first one of the new 11.2 stable series.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 26 Dec 2015 08:49:34 +0000 (09:49 +0100)]
NLS: Sync with Translation Project
Some translations updated.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Fri, 18 Dec 2015 08:23:22 +0000 (09:23 +0100)]
sadf: Fix bug preventing sadf from converting an old format datafile
Version 11.1.5 added a check on file_magic.header_size present in the
header of a data file.
An error message should not be displayed if this check is not successful
when sadf is used to convert the data file (sadf -c) or used to display
its header contents (sadf -H).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Sebastien GODARD [Sat, 12 Dec 2015 10:42:09 +0000 (11:42 +0100)]
Fix typos in sa.h
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>