man/sadf.1
man/sar.1
man/iostat.1
+man/cifsiostat.1
+man/nfsiostat.1
*.log
config.status
autom4te.cache/
Changes:
xxxx/xx/xx: Version 10.0.0 - Sebastien Godard (sysstat <at> orange.fr)
+ * [Jan Kaluza]: Added --debuginfo option to cifsiostat.
+ * [Jan Kaluza]: Added --debuginfo option to nfsiostat.
+ * cifsiostat and nfsiostat manual pages updated.
* sysstat_panic function is now defined only in DEBUG mode.
* NLS updated. Ukrainian translation added.
rm -f cron/sysstat.cron.hourly cron/sysstat.crond.sample cron/sysstat.crond.sample.in
rm -f contrib/isag/isag
rm -f man/sa1.8 man/sa2.8 man/sadc.8 man/sadf.1 man/sar.1 man/iostat.1 man/sysstat.5
+ rm -f man/cifsiostat.1 man/nfsiostat.1
rm -f *.log config.status
rm -rf autom4te.cache
rm -f *.save *.old .*.swp data
fprintf(stderr, _("Usage: %s [ options ] [ <interval> [ <count> ] ]\n"),
progname);
+#ifdef DEBUG
+ fprintf(stderr, _("Options are:\n"
+ "[ --debuginfo ] [ -h ] [ -k | -m ] [ -t ] [ -V ]\n"));
+#else
fprintf(stderr, _("Options are:\n"
"[ -h ] [ -k | -m ] [ -t ] [ -V ]\n"));
+#endif
exit(1);
}
strftime(timestamp, sizeof(timestamp), "%x %X", rectime);
}
printf("%s\n", timestamp);
+#ifdef DEBUG
+ if (DISPLAY_DEBUG(flags)) {
+ fprintf(stderr, "%s\n", timestamp);
+ }
+#endif
}
/* Interval is multiplied by the number of processors */
if (shi->used) {
ioni = st_cifs[curr] + i;
ionj = st_cifs[!curr] + i;
+#ifdef DEBUG
+ if (DISPLAY_DEBUG(flags)) {
+ /* Debug output */
+ fprintf(stderr, "name=%s itv=%llu fctr=%d ioni{ rd_bytes=%llu "
+ "wr_bytes=%llu rd_ops=%llu wr_ops=%llu fopens=%llu "
+ "fcloses=%llu fdeletes=%llu}\n",
+ shi->name, itv, fctr,
+ ioni->rd_bytes, ioni->wr_bytes,
+ ioni->rd_ops, ioni->wr_ops,
+ ioni->fopens, ioni->fcloses,
+ ioni->fdeletes);
+ }
+#endif
write_cifs_stat(curr, itv, fctr, shi, ioni, ionj);
}
}
/* Process args... */
while (opt < argc) {
+#ifdef DEBUG
+ if (!strcmp(argv[opt], "--debuginfo")) {
+ flags |= I_D_DEBUG;
+ opt++;
+ } else
+#endif
if (!strncmp(argv[opt], "-", 1)) {
for (i = 1; *(argv[opt] + i); i++) {
#define I_D_MEGABYTES 0x004
#define I_D_ISO 0x008
#define I_D_HUMAN_READ 0x010
+#define I_D_DEBUG 0x020
#define DISPLAY_TIMESTAMP(m) (((m) & I_D_TIMESTAMP) == I_D_TIMESTAMP)
#define DISPLAY_KILOBYTES(m) (((m) & I_D_KILOBYTES) == I_D_KILOBYTES)
#define DISPLAY_MEGABYTES(m) (((m) & I_D_MEGABYTES) == I_D_MEGABYTES)
#define DISPLAY_ISO(m) (((m) & I_D_ISO) == I_D_ISO)
#define DISPLAY_HUMAN_READ(m) (((m) & I_D_HUMAN_READ) == I_D_HUMAN_READ)
+#define DISPLAY_DEBUG(m) (((m) & I_D_DEBUG) == I_D_DEBUG)
/* Preallocation constats */
#define NR_CIFS_PREALLOC 2
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.63 for sysstat 9.1.7.
+# Generated by GNU Autoconf 2.63 for sysstat 10.0.0.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# Identity of this package.
PACKAGE_NAME='sysstat'
PACKAGE_TARNAME='sysstat'
-PACKAGE_VERSION='9.1.7'
-PACKAGE_STRING='sysstat 9.1.7'
+PACKAGE_VERSION='10.0.0'
+PACKAGE_STRING='sysstat 10.0.0'
PACKAGE_BUGREPORT=''
ac_unique_file="ioconf.h"
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures sysstat 9.1.7 to adapt to many kinds of systems.
+\`configure' configures sysstat 10.0.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of sysstat 9.1.7:";;
+ short | recursive ) echo "Configuration of sysstat 10.0.0:";;
esac
cat <<\_ACEOF
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-sysstat configure 9.1.7
+sysstat configure 10.0.0
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by sysstat $as_me 9.1.7, which was
+It was created by sysstat $as_me 10.0.0, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
# File must be renamed
ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
# File must be renamed
+ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
+ # File must be renamed
+ac_config_files="$ac_config_files man/nfsiostat.1:man/nfsiostat.in"
+ # File must be renamed
ac_config_files="$ac_config_files contrib/isag/isag"
# Permissions must be changed
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by sysstat $as_me 9.1.7, which was
+This file was extended by sysstat $as_me 10.0.0, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
-sysstat config.status 9.1.7
+sysstat config.status 10.0.0
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
"man/sar.1") CONFIG_FILES="$CONFIG_FILES man/sar.1:man/sar.in" ;;
"man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
"man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
+ "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
+ "man/nfsiostat.1") CONFIG_FILES="$CONFIG_FILES man/nfsiostat.1:man/nfsiostat.in" ;;
"contrib/isag/isag") CONFIG_FILES="$CONFIG_FILES contrib/isag/isag" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
AC_CONFIG_FILES([man/sar.1:man/sar.in]) # File must be renamed
AC_CONFIG_FILES([man/sysstat.5:man/sysstat.in]) # File must be renamed
AC_CONFIG_FILES([man/iostat.1:man/iostat.in]) # File must be renamed
+AC_CONFIG_FILES([man/cifsiostat.1:man/cifsiostat.in]) # File must be renamed
+AC_CONFIG_FILES([man/nfsiostat.1:man/nfsiostat.in]) # File must be renamed
AC_CONFIG_FILES([contrib/isag/isag], [chmod +x contrib/isag/isag]) # Permissions must be changed
AC_OUTPUT(Makefile)
-.TH CIFSIOSTAT 1 "JULY 2010" Linux "Linux User's Manual" -*- nroff -*-
+.TH CIFSIOSTAT 1 "JANUARY 2011" Linux "Linux User's Manual" -*- nroff -*-
.SH NAME
cifsiostat \- Report CIFS statistics.
.SH SYNOPSIS
+.ie 'yes'@WITH_DEBUG@' \{
+.B cifsiostat [ --debuginfo ] [ -h ] [ -k | -m ] [ -t ] [ -V ] [
+.I interval
+.B [
+.I count
+.B ] ]
+.\}
+.el \{
.B cifsiostat [ -h ] [ -k | -m ] [ -t ] [ -V ] [
.I interval
.B [
.I count
.B ] ]
+.\}
.SH DESCRIPTION
The
.B cifsiostat
.RE
.RE
.SH OPTIONS
+.if 'yes'@WITH_DEBUG@' \{
+.IP --debuginfo
+Print debug output to stderr.
+.\}
.IP -h
Make the CIFS report easier to read by a human.
.IP -k
-.TH NFSIOSTAT 1 "DECEMBER 2010" Linux "Linux User's Manual" -*- nroff -*-
+.TH NFSIOSTAT 1 "JANUARY 2011" Linux "Linux User's Manual" -*- nroff -*-
.SH NAME
nfsiostat \- Report input/output statistics for network filesystems (NFS).
.SH SYNOPSIS
+.ie 'yes'@WITH_DEBUG@' \{
+.B nfsiostat [ --debuginfo ] [ -h ] [ -k | -m ] [ -t ] [ -V ] [
+.I interval
+.B [
+.I count
+.B ] ]
+.\}
+.el \{
.B nfsiostat [ -h ] [ -k | -m ] [ -t ] [ -V ] [
.I interval
.B [
.I count
.B ] ]
+.\}
.SH DESCRIPTION
The
.B nfsiostat
.RE
.RE
.SH OPTIONS
+.if 'yes'@WITH_DEBUG@' \{
+.IP --debuginfo
+Print debug output to stderr.
+.\}
.IP -h
Make the NFS report easier to read by a human.
.IP -k
fprintf(stderr, _("Usage: %s [ options ] [ <interval> [ <count> ] ]\n"),
progname);
+#ifdef DEBUG
+ fprintf(stderr, _("Options are:\n"
+ "[ --debuginfo ] [ -h ] [ -k | -m ] [ -t ] [ -V ]\n"));
+#else
fprintf(stderr, _("Options are:\n"
"[ -h ] [ -k | -m ] [ -t ] [ -V ]\n"));
+#endif
exit(1);
}
strftime(timestamp, sizeof(timestamp), "%x %X", rectime);
}
printf("%s\n", timestamp);
+#ifdef DEBUG
+ if (DISPLAY_DEBUG(flags)) {
+ fprintf(stderr, "%s\n", timestamp);
+ }
+#endif
}
/* Interval is multiplied by the number of processors */
if (shi->used) {
ioni = st_ionfs[curr] + i;
ionj = st_ionfs[!curr] + i;
+#ifdef DEBUG
+ if (DISPLAY_DEBUG(flags)) {
+ /* Debug output */
+ fprintf(stderr, "name=%s itv=%llu fctr=%d ioni{ rd_normal_bytes=%llu "
+ "wr_normal_bytes=%llu rd_direct_bytes=%llu wr_direct_bytes=%llu rd_server_bytes=%llu "
+ "wr_server_bytes=%llu rpc_sends=%lu nfs_rops=%lu nfs_wops=%lu }\n",
+ shi->name, itv, fctr,
+ ioni->rd_normal_bytes, ioni->wr_normal_bytes,
+ ioni->rd_direct_bytes, ioni->wr_direct_bytes,
+ ioni->rd_server_bytes, ioni->wr_server_bytes,
+ ioni->rpc_sends,
+ ioni->nfs_rops, ioni->nfs_wops);
+ }
+#endif
write_nfs_stat(curr, itv, fctr, shi, ioni, ionj);
}
}
/* Process args... */
while (opt < argc) {
+#ifdef DEBUG
+ if (!strcmp(argv[opt], "--debuginfo")) {
+ flags |= I_D_DEBUG;
+ opt++;
+ } else
+#endif
if (!strncmp(argv[opt], "-", 1)) {
for (i = 1; *(argv[opt] + i); i++) {
#define I_D_MEGABYTES 0x004
#define I_D_ISO 0x008
#define I_D_HUMAN_READ 0x010
+#define I_D_DEBUG 0x020
#define DISPLAY_TIMESTAMP(m) (((m) & I_D_TIMESTAMP) == I_D_TIMESTAMP)
#define DISPLAY_KILOBYTES(m) (((m) & I_D_KILOBYTES) == I_D_KILOBYTES)
#define DISPLAY_MEGABYTES(m) (((m) & I_D_MEGABYTES) == I_D_MEGABYTES)
#define DISPLAY_ISO(m) (((m) & I_D_ISO) == I_D_ISO)
#define DISPLAY_HUMAN_READ(m) (((m) & I_D_HUMAN_READ) == I_D_HUMAN_READ)
+#define DISPLAY_DEBUG(m) (((m) & I_D_DEBUG) == I_D_DEBUG)
/* Environment variable */
#define ENV_POSIXLY_CORRECT "POSIXLY_CORRECT"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: sysstat <at> orange.fr\n"
-"POT-Creation-Date: 2010-12-24 15:16+0100\n"
+"POT-Creation-Date: 2011-01-07 14:45+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Usage: %s [ options ] [ <interval> [ <count> ] ]\n"
msgstr ""
-#: cifsiostat.c:72 nfsiostat.c:71
+#: cifsiostat.c:73 nfsiostat.c:72
+#, c-format
+msgid ""
+"Options are:\n"
+"[ --debuginfo ] [ -h ] [ -k | -m ] [ -t ] [ -V ]\n"
+msgstr ""
+
+#: cifsiostat.c:76 nfsiostat.c:75
#, c-format
msgid ""
"Options are:\n"