Skip to content

Commit

Permalink
sysstat 11.0.0
Browse files Browse the repository at this point in the history
sysstat version 11.0.0 final packaging.
lsm and spec files updated.
Changelog added.
Various files cleaned.
CREDITS file updated.

Signed-off-by: Sebastien GODARD <[email protected]>
  • Loading branch information
sysstat committed Jun 16, 2014
1 parent a48e1fb commit cdceb01
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 23 deletions.
29 changes: 29 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
Changes:

2014/06/17: Version 11.0.0 - Sebastien Godard (sysstat <at> orange.fr)
* [Cedric Marie]: pidstat now displays task scheduling priority
and policy along with task switching activity (-w option).
* [Cedric Marie]: pidstat: Add option -G to filter processes
by name.
* pidstat: Update variables type to be consistent with recent
3.x kernels.
* sadc/sar/sadf: The standard daily data files may now be
named saYYYYMMDD instead of saDD. Option -D has been added
to sar and sadc to tell them to write to data files under the
name saYYYYMMDD.
* sadc/sar/sadf: Take into account alternate locations for
standard daily data files.
* sa1 and sa2 scripts updated: Don't create a tree of directories
any more if HISTORY is greater than 28. Use saYYYYMMDD
data files instead.
* sa1 and sa2 scripts now take into account two new variables:
SA_DIR (directory where sa and sar files are located) and
ZIP (compression program to use).
* Make sysstat init script source the functions library
* Fix possible buffer overflow.
* Small fix with sadc's option -S: It is now possible to enter
several comma separated values.
* Don't install crontabs when using systemd timer units.
* Manual pages updated.
* FAQ updated.
* NLS updated. Galician and Hungarian translations added.
* CREDITS file updated.

2014/03/18: Version 10.3.1 - Sebastien Godard (sysstat <at> orange.fr)
WARNING: Daily data files format has changed, and is *not*
compatible with the previous one! [0x2173]
Expand Down
4 changes: 4 additions & 0 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ The following people have contributed to 'sysstat' in one way or another:
Alain Ch�reau <cheralain [at] googlemail.com> added support for
disk groups statistics to iostat.

C�dric Marie <cedric.marie [at] openmailbox.org> sent me
several patches to improve pidstat.

I would also thank the following people for their hints or bug reports
(in alphabetical order):

Expand Down Expand Up @@ -193,6 +196,7 @@ I would also thank the following people for their hints or bug reports
Edouard G. Parmelan <edouard.parmelan@qua[...].fr>
Oliver Paukstadt <oliver.paukstadt@mil[...].com>
Plattner(?) <Plattner.external@inf[...].com>
Peter Portante <peter.a.portante@gma[...].com>
Gerardo Exequiel Pozzi <vmlinuz386@yah[...].ar>
ReDragon <redragon@vns[...].net>
Amir Rapson <amir.rapson@gma[...].com>
Expand Down
2 changes: 1 addition & 1 deletion pidstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ int get_pid_to_display(int prev, int curr, int p, unsigned int activity,
isActive = TRUE;
}
}

if (DISPLAY_RT(activity) && (!isActive)) {
if (((*pstc)->priority != (*pstp)->priority) ||
((*pstc)->policy != (*pstp)->policy)) {
Expand Down
2 changes: 1 addition & 1 deletion pidstat.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
(p == SCHED_BATCH ? "BATCH" : \
(p == SCHED_IDLE ? "IDLE" : \
"?")))))

struct pid_stats {
unsigned long long read_bytes __attribute__ ((aligned (16)));
unsigned long long write_bytes __attribute__ ((packed));
Expand Down
2 changes: 1 addition & 1 deletion sa.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ struct act_bitmap {

/*
* Structure used to define an activity.
* Note; This structure can be modified without changing the format of data files.
* Note: This structure can be modified without changing the format of data files.
*/
struct activity {
/*
Expand Down
20 changes: 10 additions & 10 deletions sa_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ int parse_timestamp(char *argv[], int *opt, struct tstamp *tse,
* IN:
* @sa_dir Directory where standard daily data files are saved.
* @rectime Structure containing the current date.
*
*
* OUT:
* @sa_name 0 to use saDD data files,
* 1 to use saYYYYMMDD data files.
Expand All @@ -361,7 +361,7 @@ void guess_sa_name(char *sa_dir, struct tm *rectime, int *sa_name)
char filename[MAX_FILE_LEN];
struct stat sb;
time_t sa_mtime;

/* Use saDD by default */
*sa_name = 0;

Expand All @@ -377,13 +377,13 @@ void guess_sa_name(char *sa_dir, struct tm *rectime, int *sa_name)
/* Cannot find or access saYYYYMMDD, so use saDD */
return;
sa_mtime = sb.st_mtime;

/* Look for saDD */
snprintf(filename, MAX_FILE_LEN,
"%s/sa%02d", sa_dir,
rectime->tm_mday);
filename[MAX_FILE_LEN - 1] = '\0';

if (stat(filename, &sb) < 0) {
/* Cannot find or access saDD, so use saYYYYMMDD */
*sa_name = 1;
Expand Down Expand Up @@ -458,28 +458,28 @@ void set_default_file(char *datafile, int d_off, int sa_name)
***************************************************************************
* Check data file type. If it is a directory then this is the alternate
* location where daily data files will be saved.
*
*
* IN:
* @datafile Name of the daily data file. May be a directory.
* @d_off Day offset (number of days to go back in the past).
* @sa_name 0 for saDD data files,
* 1 for saYYYYMMDD data files,
* -1 if unknown. In this case, will look for the most recent
* of saDD and saYYYYMMDD and use it.
*
*
*
*
* OUT:
* @datafile Name of the daily data file. This is now a plain file, not
* a directory.
*
*
* RETURNS:
* 1 if @datafile was a directory, and 0 otherwise.
***************************************************************************
*/
int check_alt_sa_dir(char *datafile, int d_off, int sa_name)
{
struct stat sb;

if (stat(datafile, &sb) == 0) {
if (S_ISDIR(sb.st_mode)) {
/*
Expand All @@ -490,7 +490,7 @@ int check_alt_sa_dir(char *datafile, int d_off, int sa_name)
return 1;
}
}

return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion sadc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ int main(int argc, char **argv)
sa_dir[0] = '\0';
}
}

/*
* If option -z used, write to STDOUT even if a filename
* has been entered on the command line.
Expand Down
2 changes: 1 addition & 1 deletion sar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ int main(int argc, char **argv)
flags |= S_F_SA_YYYYMMDD;
opt++;
}

else if (!strcmp(argv[opt], "-P")) {
/* Parse -P option */
if (parse_sa_P_opt(argv, &opt, &flags, act)) {
Expand Down
14 changes: 7 additions & 7 deletions sysstat-10.3.1.lsm → sysstat-11.0.0.lsm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Begin4
Title: sysstat - the sar, sadf, mpstat, iostat, nfsiostat-sysstat, cifsiostat and pidstat commands for Linux
Version: 10.3.1
Entered-date: 2014-03-18
Version: 11.0.0
Entered-date: 2014-06-17
Description: The sysstat package contains the sar, sadf, mpstat, iostat,
pidstat, nfsiostat-sysstat, cifsiostat and sa tools for Linux.
The sar command collects and reports system activity
Expand All @@ -28,11 +28,11 @@ Keywords: system administration, sar, sadf, iostat, mpstat, pidstat, nfsiostat-s
Author: sysstat [at] orange.fr (Sebastien Godard)
Maintained-by: sysstat [at] orange.fr (Sebastien Godard)
Primary-site: http:https://pagesperso-orange.fr/sebastien.godard/
388kB sysstat-10.3.1.tar.gz
307kB sysstat-10.3.1.tar.bz2
278kB sysstat-10.3.1.tar.xz
392kB sysstat-10.3.1-1.src.rpm
259kB sysstat-10.3.1-1.x86_64.rpm
398kB sysstat-11.0.0.tar.gz
319kB sysstat-11.0.0.tar.bz2
284kB sysstat-11.0.0.tar.xz
402kB sysstat-11.0.0-1.src.rpm
267kB sysstat-11.0.0-1.x86_64.rpm
Alternate-site:
Copying-policy: GPL
End
2 changes: 1 addition & 1 deletion sysstat-10.3.1.spec → sysstat-11.0.0.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: SAR, SADF, MPSTAT, IOSTAT, NFSIOSTAT-SYSSTAT, CIFSIOSTAT and PIDSTAT for Linux
Name: sysstat
Version: 10.3.1
Version: 11.0.0
Release: 1
License: GPL
Group: Applications/System
Expand Down

0 comments on commit cdceb01

Please sign in to comment.