ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/statgrab/statgrab.c
Revision 1.32 - (view) (annotate) - [select for diffs]
Tue Aug 10 21:10:55 2004 UTC (19 years, 9 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_10_3, LIBSTATGRAB_0_11, LIBSTATGRAB_0_11_1
Changes since 1.31: +10 -10 lines
Diff to previous 1.31 , to selected 1.16
Repair whitespace damage in help message. (It's still there in the
other code.)

Revision 1.31 - (view) (annotate) - [select for diffs]
Tue Aug 10 21:08:54 2004 UTC (19 years, 9 months ago) by ats
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 , to selected 1.16
"Mebibyte", not "mibibyte".

Revision 1.30 - (view) (annotate) - [select for diffs]
Tue Aug 10 18:58:42 2004 UTC (19 years, 9 months ago) by ats
Branch: MAIN
Changes since 1.29: +41 -19 lines
Diff to previous 1.29 , to selected 1.16
Add -K, -M and -G to display byte counts in kibibytes, mibibytes and
gibibytes (mostly for MRTG use, since it can't deal with numbers bigger
than 32 bits).

Revision 1.29 - (view) (annotate) - [select for diffs]
Tue Aug 10 18:50:37 2004 UTC (19 years, 9 months ago) by ats
Branch: MAIN
Changes since 1.28: +18 -5 lines
Diff to previous 1.28 , to selected 1.16
Add -f option to scale floating-point values to integers for MRTG
output.

Revision 1.28 - (view) (annotate) - [select for diffs]
Sun Jul 18 20:21:21 2004 UTC (19 years, 10 months ago) by tdb
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_10_1, LIBSTATGRAB_0_10_2
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 , to selected 1.16
Catch a few bits of documentation/comments containing the deprecated
function names.

Revision 1.27 - (view) (annotate) - [select for diffs]
Fri Jul 16 11:17:16 2004 UTC (19 years, 10 months ago) by ats
Branch: MAIN
Changes since 1.26: +24 -7 lines
Diff to previous 1.26 , to selected 1.16
Make sure that network interfaces get an interface_name stat, even if they
don't have IO stats (like for loopback interfaces on Solaris).

Revision 1.26 - (view) (annotate) - [select for diffs]
Wed Apr 7 15:50:26 2004 UTC (20 years, 1 month ago) by tdb
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_10
Changes since 1.25: +60 -60 lines
Diff to previous 1.25 , to selected 1.16
More whitespace tidyup (spaces->tabs).

Revision 1.25 - (view) (annotate) - [select for diffs]
Tue Apr 6 14:53:00 2004 UTC (20 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 , to selected 1.16
Update name of project at the top of all soure files. These files now exist
in their own right, rather than as part of the "CMS".

Revision 1.24 - (view) (annotate) - [select for diffs]
Mon Apr 5 15:40:17 2004 UTC (20 years, 2 months ago) by ats
Branch: MAIN
Changes since 1.23: +47 -42 lines
Diff to previous 1.23 , to selected 1.16
Rename all the functions, types and enums in the API to be consistent.
Types are now of the form "sg_mem_stats"; functions of the form
"sg_get_mem_stats"; enums of the form "SG_PROCESS_STATE_RUNNING".
(The old get_proc_snapshot follows the usual calling convention now.)

Make internal functions static where possible.

Rename non-static internal functions to have an sg_ prefix so they don't
collide with those from other libraries. In particular, strlcpy and
strlcat are now called sg_strlcpy and sg_strlcat and are always
included.

Fix saidar and statgrab to use the new API.

Revision 1.23 - (view) (annotate) - [select for diffs]
Sun Apr 4 21:59:16 2004 UTC (20 years, 2 months ago) by ats
Branch: MAIN
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 , to selected 1.16
Fix TIME_T printing on systems where time_t isn't a long.

Revision 1.22 - (view) (annotate) - [select for diffs]
Sat Mar 6 22:34:36 2004 UTC (20 years, 3 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_9
Changes since 1.21: +11 -1 lines
Diff to previous 1.21 , to selected 1.16
Chase new network interface stats.

Revision 1.21 - (view) (annotate) - [select for diffs]
Wed Feb 18 17:29:15 2004 UTC (20 years, 3 months ago) by ats
Branch: MAIN
Changes since 1.20: +12 -4 lines
Diff to previous 1.20 , to selected 1.16
Buggy Solaris qsort/bsearch still try to access the array if the length
is zero.

Revision 1.20 - (view) (annotate) - [select for diffs]
Sat Feb 14 00:06:00 2004 UTC (20 years, 3 months ago) by ats
Branch: MAIN
Changes since 1.19: +7 -1 lines
Diff to previous 1.19 , to selected 1.16
Add support for interface .up.

Revision 1.19 - (view) (annotate) - [select for diffs]
Fri Feb 13 15:13:37 2004 UTC (20 years, 3 months ago) by ats
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 , to selected 1.16
Track rename of duplex to statgrab_duplex.

Revision 1.18 - (view) (annotate) - [select for diffs]
Fri Feb 13 12:52:40 2004 UTC (20 years, 3 months ago) by ats
Branch: MAIN
Changes since 1.17: +29 -2 lines
Diff to previous 1.17 , to selected 1.16
Add network_iface_stat support.

Revision 1.17 - (view) (annotate) - [select for diffs]
Mon Jan 19 16:49:23 2004 UTC (20 years, 4 months ago) by tdb
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_8_1, LIBSTATGRAB_0_8_2
Changes since 1.16: +2 -0 lines
Diff to previous 1.16
A whole bunch of minor cosmetic changes.

Revision 1.16 - (view) (annotate) - [selected]
Fri Jan 16 15:54:56 2004 UTC (20 years, 4 months ago) by tdb
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15
Alter the licensing of libstatgrab. The library part is now under the
LGPL, whilst the tools/examples are under the GPL. Both licenses are
included in the distribution (and are both now in CVS). Also made a
minor alteration to the webpage where it said everything was licensed
under the GPL.

Revision 1.15 - (view) (annotate) - [select for diffs]
Mon Jan 5 17:20:30 2004 UTC (20 years, 5 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_8
Changes since 1.14: +2 -8 lines
Diff to previous 1.14 , to selected 1.16
Replace duplicated code for dropping privileges with a library
function that always drops setuid/setgid privileges.

Revision 1.14 - (view) (annotate) - [select for diffs]
Mon Jan 5 16:39:15 2004 UTC (20 years, 5 months ago) by ats
Branch: MAIN
Changes since 1.13: +4 -0 lines
Diff to previous 1.13 , to selected 1.16
Drop setuidness on Solaris.

Revision 1.13 - (view) (annotate) - [select for diffs]
Mon Nov 10 23:35:43 2003 UTC (20 years, 6 months ago) by ats
Branch: MAIN
Changes since 1.12: +2 -0 lines
Diff to previous 1.12 , to selected 1.16
Strip colons from Cygwin drive names.

Revision 1.12 - (view) (annotate) - [select for diffs]
Mon Oct 20 22:18:21 2003 UTC (20 years, 7 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_7
Changes since 1.11: +8 -0 lines
Diff to previous 1.11 , to selected 1.16
Use statgrab_init and drop privs as soon as possible.

Revision 1.11 - (view) (annotate) - [select for diffs]
Sun Oct 19 01:25:55 2003 UTC (20 years, 7 months ago) by ats
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 , to selected 1.16
Correct type of page.systime.

Revision 1.10 - (view) (annotate) - [select for diffs]
Sat Oct 18 16:12:03 2003 UTC (20 years, 7 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_6_1
Changes since 1.9: +18 -7 lines
Diff to previous 1.9 , to selected 1.16
Mangle device names more correctly; now a device like "/dev/vinum/foo"
will become "vinum_foo", rather than "foo".

Revision 1.9 - (view) (annotate) - [select for diffs]
Sun Aug 31 13:23:19 2003 UTC (20 years, 9 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_5_1, LIBSTATGRAB_0_6
Changes since 1.8: +41 -7 lines
Diff to previous 1.8 , to selected 1.16
If invoked as "statgrab foo.", print all stats starting with "foo.".
Print multiple values with the same name correctly.

Revision 1.8 - (view) (annotate) - [select for diffs]
Fri Aug 29 06:56:12 2003 UTC (20 years, 9 months ago) by ats
Branch: MAIN
Changes since 1.7: +118 -32 lines
Diff to previous 1.7 , to selected 1.16
Only fetch the stats that we're actually interested in.

Revision 1.7 - (view) (annotate) - [select for diffs]
Fri Aug 29 06:49:46 2003 UTC (20 years, 9 months ago) by ats
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 , to selected 1.16
*Really* fill in time_taken correctly.

Revision 1.6 - (view) (annotate) - [select for diffs]
Fri Aug 29 06:48:04 2003 UTC (20 years, 9 months ago) by ats
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 , to selected 1.16
Fill in time_taken correctly.

Revision 1.5 - (view) (annotate) - [select for diffs]
Thu Aug 28 21:21:32 2003 UTC (20 years, 9 months ago) by ats
Branch: MAIN
Changes since 1.4: +7 -3 lines
Diff to previous 1.4 , to selected 1.16
-p doesn't make any sense unless you've got stat differences.
-m should work with -o.
Make statgrab-make-mrtg-config use -o for CPU stats.

Revision 1.4 - (view) (annotate) - [select for diffs]
Wed Aug 27 20:54:19 2003 UTC (20 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.3: +0 -3 lines
Diff to previous 1.3 , to selected 1.16
Apply patch in bug id #10. Submitted by Adam :-)

Revision 1.3 - (view) (annotate) - [select for diffs]
Wed Aug 27 14:04:17 2003 UTC (20 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.2: +4 -0 lines
Diff to previous 1.2 , to selected 1.16
Have to pull in the definitions from config.h.

Revision 1.2 - (view) (annotate) - [select for diffs]
Wed Aug 27 14:00:12 2003 UTC (20 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 , to selected 1.16
Put the version number in the usage page.

Revision 1.1 - (view) (annotate) - [select for diffs]
Tue Aug 26 12:09:44 2003 UTC (20 years, 9 months ago) by tdb
Branch: MAIN
Diff to selected 1.16
A sysctl-style program to display system statistics collected through
libstatgrab. Contributed by Adam Sampson, azz@us-lot.org.

Convenience Links

Links to HEAD: (view) (annotate) Links to LIBSTATGRAB_0_10_3: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a