ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/statgrab/statgrab.c
Revision 1.38 - (view) (annotate) - [select for diffs]
Sun Oct 3 18:35:59 2010 UTC (13 years, 7 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.37: +30 -26 lines
Diff to previous 1.37
Add support for AIX 5.x - 9.x.

Many thanks to Jens Rehsack <rehsack@googlemail.com> for providing the
patch for this work. Thanks!

Revision 1.37 - (view) (annotate) - [select for diffs]
Fri Mar 17 13:23:05 2006 UTC (18 years, 1 month ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_13, LIBSTATGRAB_0_14, LIBSTATGRAB_0_15, LIBSTATGRAB_0_16, LIBSTATGRAB_0_17
Changes since 1.36: +9 -8 lines
Diff to previous 1.36
Replace both spaces and dots with underscores in name components, so
that filesystem paths containing dots work correctly.

Revision 1.36 - (view) (annotate) - [select for diffs]
Sat Sep 24 13:29:25 2005 UTC (18 years, 7 months ago) by tdb
Branch: MAIN
Changes since 1.35: +14 -1 lines
Diff to previous 1.35
Add WIN32 support via MINGW. We'll need to add stuff to the README file
about what this requires to build.

All the hard work done by: skel

Revision 1.35 - (view) (annotate) - [select for diffs]
Wed Jul 13 13:01:24 2005 UTC (18 years, 9 months ago) by tdb
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_12
Changes since 1.34: +15 -1 lines
Diff to previous 1.34
Add more fs stats.

Patches provided by: Roman Neuhauser

Revision 1.34 - (view) (annotate) - [select for diffs]
Wed Jul 13 09:31:54 2005 UTC (18 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33
Change the name of the duplex value from "dup" to "duplex". This will
break the ABI, but we're changing the fs stats anyway. The API change
is minimal, so hopefully won't affect too many people.

Revision 1.33 - (view) (annotate) - [select for diffs]
Mon Apr 25 12:04:30 2005 UTC (19 years ago) by tdb
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32
Fix consistency problem in usage output.

Revision 1.32 - (view) (annotate) - [select for diffs]
Tue Aug 10 21:10:55 2004 UTC (19 years, 8 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
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, 8 months ago) by ats
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30
"Mebibyte", not "mibibyte".

Revision 1.30 - (view) (annotate) - [select for diffs]
Tue Aug 10 18:58:42 2004 UTC (19 years, 8 months ago) by ats
Branch: MAIN
Changes since 1.29: +41 -19 lines
Diff to previous 1.29
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, 8 months ago) by ats
Branch: MAIN
Changes since 1.28: +18 -5 lines
Diff to previous 1.28
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, 9 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
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, 9 months ago) by ats
Branch: MAIN
Changes since 1.26: +24 -7 lines
Diff to previous 1.26
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
More whitespace tidyup (spaces->tabs).

Revision 1.25 - (view) (annotate) - [select for diffs]
Tue Apr 6 14:53:00 2004 UTC (20 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24
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, 1 month ago) by ats
Branch: MAIN
Changes since 1.23: +47 -42 lines
Diff to previous 1.23
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, 1 month ago) by ats
Branch: MAIN
Changes since 1.22: +4 -2 lines
Diff to previous 1.22
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, 2 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_9
Changes since 1.21: +11 -1 lines
Diff to previous 1.21
Chase new network interface stats.

Revision 1.21 - (view) (annotate) - [select for diffs]
Wed Feb 18 17:29:15 2004 UTC (20 years, 2 months ago) by ats
Branch: MAIN
Changes since 1.20: +12 -4 lines
Diff to previous 1.20
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, 2 months ago) by ats
Branch: MAIN
Changes since 1.19: +7 -1 lines
Diff to previous 1.19
Add support for interface .up.

Revision 1.19 - (view) (annotate) - [select for diffs]
Fri Feb 13 15:13:37 2004 UTC (20 years, 2 months ago) by ats
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18
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, 2 months ago) by ats
Branch: MAIN
Changes since 1.17: +29 -2 lines
Diff to previous 1.17
Add network_iface_stat support.

Revision 1.17 - (view) (annotate) - [select for diffs]
Mon Jan 19 16:49:23 2004 UTC (20 years, 3 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) - [select for diffs]
Fri Jan 16 15:54:56 2004 UTC (20 years, 3 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, 4 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_8
Changes since 1.14: +2 -8 lines
Diff to previous 1.14
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, 4 months ago) by ats
Branch: MAIN
Changes since 1.13: +4 -0 lines
Diff to previous 1.13
Drop setuidness on Solaris.

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

Revision 1.12 - (view) (annotate) - [select for diffs]
Mon Oct 20 22:18:21 2003 UTC (20 years, 6 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_7
Changes since 1.11: +8 -0 lines
Diff to previous 1.11
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, 6 months ago) by ats
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10
Correct type of page.systime.

Revision 1.10 - (view) (annotate) - [select for diffs]
Sat Oct 18 16:12:03 2003 UTC (20 years, 6 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_6_1
Changes since 1.9: +18 -7 lines
Diff to previous 1.9
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, 8 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
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, 8 months ago) by ats
Branch: MAIN
Changes since 1.7: +118 -32 lines
Diff to previous 1.7
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, 8 months ago) by ats
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6
*Really* fill in time_taken correctly.

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

Revision 1.5 - (view) (annotate) - [select for diffs]
Thu Aug 28 21:21:32 2003 UTC (20 years, 8 months ago) by ats
Branch: MAIN
Changes since 1.4: +7 -3 lines
Diff to previous 1.4
-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, 8 months ago) by tdb
Branch: MAIN
Changes since 1.3: +0 -3 lines
Diff to previous 1.3
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, 8 months ago) by tdb
Branch: MAIN
Changes since 1.2: +4 -0 lines
Diff to previous 1.2
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, 8 months ago) by tdb
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1
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, 8 months ago) by tdb
Branch: MAIN
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)

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