summaryrefslogtreecommitdiff
path: root/features.def
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Code clean up and add example"Michael Catanzaro2020-11-061-1/+0
| | | | This reverts commit 7396970afe2290488fd072612a650353dd13a16d.
* Code clean up and add exampleJames Dominic P. Guana2020-11-041-0/+1
|
* Renamed procdiskio to procioRobert Roth2017-05-121-1/+1
|
* New API to retrieve process io stats, with Linux implementationRobert Roth2017-02-121-0/+1
|
* The perl generator for the *_l() functions does not need to knowBenoit Dejean2015-07-151-26/+26
| | | | about the glibtop_* struct layout, so drop this from the definitions.
* New API to retrieve process CPU affinity.Benoît Dejean2008-05-241-0/+1
| | | | | | Linux implementation. svn path=/trunk/; revision=2748
* git-svn sucks. Kill r2609Benoît Dejean2007-06-251-1/+0
| | | | svn path=/trunk/; revision=2611
* New API : glibtop_get_proc_affinity.Benoît Dejean2007-06-251-0/+1
| | | | | | Implemented for linux. svn path=/trunk/; revision=2609
* Small API change. get_proclist returns pid_t instead of unsigned forBenoît Dejean2007-05-191-1/+1
| | | | | | | | | | | | | 2007-05-19 Benoît Dejean <benoit@placenet.org> * features.def: * include/glibtop/proclist.h: Small API change. get_proclist returns pid_t instead of unsigned for consistency. I have checked many archs and this doesn't break the ABI. svn path=/trunk/; revision=2595
* Manual commit from my local git-svn which is broken :/Benoît Dejean2007-05-131-0/+1
| | | | svn path=/trunk/; revision=2578
* New feature by nick@reloco.com.ar (Nicolás Lichtmaier).Benoît Dejean2005-01-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: * examples/.cvsignore: * examples/Makefile.am: * examples/openfiles.c: (show_open_files), (main): * features.def: * include/glibtop/Makefile.am: * include/glibtop/command.h: * include/glibtop/procopenfiles.h: * include/glibtop/sysdeps.h: * include/glibtop/union.h: * structures.def: * sysdeps/linux/Makefile.am: * sysdeps/linux/procopenfiles.c: (glibtop_init_proc_open_files_s), (get_socket_endpoint), (glibtop_get_proc_open_files_s): * sysdeps/stub/Makefile.am: * sysdeps/stub/procopenfiles.c: (glibtop_init_proc_open_files_s), (glibtop_get_proc_open_files_s): New feature by nick@reloco.com.ar (Nicolás Lichtmaier). glibtop_get_open_files(pid) -> list of files by process. TODO: Add documentation.
* Added I/O and IRQ wait time to glibtop_cpu. Closes #160443.Benoît Dejean2005-01-031-1/+1
| | | | | | | | | | * examples/pprint.c: (pprint_get_cpu): * features.def: * include/glibtop/cpu.h: * sysdeps/linux/cpu.c: (glibtop_init_cpu_s), (glibtop_get_cpu_s): Added I/O and IRQ wait time to glibtop_cpu. Closes #160443. * configure.in: Post-release bump 2.9.4
* Bumped to 2.9.0Benoît Dejean2004-11-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Bumped to 2.9.0 * configure.in: * examples/.cvsignore: * examples/Makefile.am: * examples/netlist.c: (main): * features.def: * include/glibtop/Makefile.am: * include/glibtop/command.h: * include/glibtop/netlist.h: * include/glibtop/sysdeps.h: * include/glibtop/union.h: * include/glibtop/version.h: * src/daemon/version.c: * sysdeps/linux/Makefile.am: * sysdeps/linux/netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s): * sysdeps/names/Makefile.am: * sysdeps/names/netlist.c: * sysdeps/solaris/Makefile.am: * sysdeps/solaris/netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s): Added new function glibtop_get_netlist(). Implemented for linux and solaris. Doc needed.
* libgtop-GNOME-2-0-branch moved to HEAD.Carlos Perelló Marín2003-10-191-25/+22
| | | | | | 2003-10-19 Carlos Perelló Marín <carlos@gnome.org> * libgtop-GNOME-2-0-branch moved to HEAD.
* Added `Process current working directory' feature (proc_cwd).Martin Baulig2000-04-241-0/+1
| | | | | | | | | | | | | | | 2000-04-24 Martin Baulig <baulig@suse.de> Added `Process current working directory' feature (proc_cwd). * include/glibtop/proc_cwd.h: New file. * features.def: Added `proc_cwd'. * include/glibtop/sysdeps.h (glibtop_sysdeps): Added `proc_cwd'. * include/glibtop/union.h (glibtop_union): Added `proc_cwd'. * sysdeps/stub/proc_cwd.c: New file. * sysdeps/names/proc_cwd.c: New file.
* Removed the `lockfile' argument; we now use a configure check to determineMartin Baulig2000-02-061-1/+1
| | | | | | | | | | | | | | | | 2000-02-06 Martin Baulig <martin@home-of-linux.org> * include/glibtop/ppp.h (glibtop_get_ppp): Removed the `lockfile' argument; we now use a configure check to determine the modem lockfile. * include/glibtop/error.h (GLIBTOP_ERROR_NEED_MODEM_LOCKFILE): Removed this now obsolete error constant again. * configure.in (--with-modem-lockfile): New configure parameter to manually specify the modem lockfile. (LIBGTOP_MODEM_LOCKFILE): Define this to be a printf-format string for the modem lockfile; takes the interface number as argument.
* Added.Martin Baulig2000-01-281-1/+1
| | | | | | 2000-01-29 Martin Baulig <martin@home-of-linux.org> * structures.def (glibtop_ifaddr): Added.
* `address' and `subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_tMartin Baulig2000-01-241-1/+1
| | | | | | | | | | | | 2000-01-24 Martin Baulig <martin@home-of-linux.org> * include/glibtop/netinfo.h (glibtop_netinfo): `address' and `subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_t values. (glibtop_get_netinfo): `transport' is now `u_int64_t' and not `unsigned' to make it work with `GLIBTOP_TRANSPORT_ALL'. * include/glibtop/limits.h (GLIBTOP_IFADDR_LEN): New constant. This is the length of a network interface address in bytes.
* `address' and `subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_tMartin Baulig2000-01-241-1/+1
| | | | | | | | | | | | 2000-01-24 Martin Baulig <martin@home-of-linux.org> * include/glibtop/netinfo.h (glibtop_netinfo): `address' and `subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_t values. (glibtop_get_netinfo): `transport' is now `u_int64_t' and not `unsigned' to make it work with `GLIBTOP_TRANSPORT_ALL'. * include/glibtop/limits.h (GLIBTOP_IFADDR_LEN): New constant. This is the length of a network interface address in bytes.
* Added `use_isdn' and `lockfile' arguments. When `use_isdn' is TRUE, weMartin Baulig2000-01-221-1/+1
| | | | | | | | | | | | | | | | | | 2000-01-22 Martin Baulig <martin@home-of-linux.org> * include/glibtop/ppp.h (glibtop_get_ppp): Added `use_isdn' and `lockfile' arguments. When `use_isdn' is TRUE, we return ISDN statistics, otherwise `lockfile' is expected to be the modem lockfile and we return PPP statistics for that Modem. Note that for Modem statistics, you need to set both `device' and `lockfile' for some sysdeps ports; so if you have more than one PPP connection active and want to get statistics on the second one you need to set `device' to 1 and `lockfile' to the correct modem lockfile. * include/glibtop/error.h (GLIBTOP_ERROR_NEED_MODEM_LOCKFILE): New error constant; this is returned when you call glibtop_get_ppp () without a modem lockfile and the current sysdeps port requires it.
* Removed. (glibtop_get_proc_args_*): This now takes a `glibtop_array'Martin Baulig1999-12-191-1/+1
| | | | | | | | 1999-12-12 Martin Baulig <martin@home-of-linux.org> * include/glibtop/procargs.h (glibtop_proc_args): Removed. (glibtop_get_proc_args_*): This now takes a `glibtop_array' parameter instead of a `glibtop_proc_args one and returns a `char **'.
* All functions which return an array now take a `glibtop_array *array'Martin Baulig1999-12-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-12-12 Martin Baulig <martin@home-of-linux.org> All functions which return an array now take a `glibtop_array *array' parameter instead of a `glibtop_<feature> *buf' one. For compatibility, we typedef the corresponding `glibtop_<feature>'s to `glibtop_array' in <glibtop/compat_10.h>. This has the advantage that scripting languages like Guile with an array implementation which stores the length of an array in the array don't need the `glibtop_array' parameter at all any longer. We'll also add convenient functions which return GPtrArray's here. * include/glibtop/proclist.h (glibtop_proclist): Removed. (glibtop_get_proclist_*): This now takes a `glibtop_array' parameter instead of a `glibtop_proclist' one. * include/glibtop/procmap.h (glibtop_proc_map): Removed. (glibtop_get_proc_map_*): This now takes a `glibtop_array' parameter instead of a `glibtop_proc_map' one. * include/glibtop/mountlist.h (glibtop_mountlist): Removed. (glibtop_get_mountlist_*): This now takes a `glibtop_array' parameter instead of a `glibtop_mountlist' one. * include/glibtop/interfaces.h (glibtop_interface_names): Removed. (glibtop_get_interface_names_*): This now takes a `glibtop_array' parameter instead of a `glibtop_interface_name' one. * include/glibtop/compat_10.h: New file. Contains some typedefs and #defines to keep compatibility until the big restructurement is completely done.
* Use `string' instead of `str' as type name.Martin Baulig1999-12-111-2/+2
| | | | | | 1999-12-11 Martin Baulig <martin@home-of-linux.org> * features.def: Use `string' instead of `str' as type name.
* Use `pointer(<type>)' as return value for functions returning an array ofMartin Baulig1999-12-051-1/+1
| | | | | | | 1999-12-05 Martin Baulig <martin@home-of-linux.org> * features.def: Use `pointer(<type>)' as return value for functions returning an array of scalar values (such as `unsigned' etc.).
* *** empty log message ***Martin Baulig1999-12-051-1/+1
|
* Use `array(<type>)' as return value for functions returning an array ofMartin Baulig1999-12-051-3/+3
| | | | | | | 1999-12-05 Martin Baulig <martin@home-of-linux.org> * features.def: Use `array(<type>)' as return value for functions returning an array of structures.
* Return array of `glibtop_interface' structures. (glibtop_interface): NewMartin Baulig1999-12-051-1/+1
| | | | | | | | 1999-12-05 Martin Baulig <martin@home-of-linux.org> * includes/glibtop/interfaces.h (glibtop_get_interface_names): Return array of `glibtop_interface' structures. (glibtop_interface): New structure.
* Added `transport' and `protocol' argument to specify transport method andMartin Baulig1999-11-281-2/+2
| | | | | | | | | | | 1999-11-28 Martin Baulig <martin@home-of-linux.org> * include/glibtop/netload.h (glibtop_get_netload): Added `transport' and `protocol' argument to specify transport method and protocol. * include/glibtop/netinfo.h (glibtop_get_netinfo): Added `transport' argument to specify the transport method.
* Added `transport' field for the transport method.Martin Baulig1999-11-281-1/+1
| | | | | | | 1999-11-28 Martin Baulig <martin@home-of-linux.org> * include/glibtop/netinfo.h (glibtop_netinfo): Added `transport' field for the transport method.
* Split netload into netload and netinfo.Martin Baulig1999-11-281-1/+2
| | | | | | | | | | | | | | | | 1999-11-28 Martin Baulig <martin@home-of-linux.org> Split netload into netload and netinfo. * include/glibtop/netinfo.h: New file. * include/glibtop/netload.h (glibtop_netload): Moved `if_flags', `mtu', `subnet' and `address' into the new `glibtop_netinfo'. * include/glibtop/sysdeps.h (GLIBTOP_SYSDEPS_NETINFO): Added. (glibtop_sysdeps): Added `netinfo. * include/glibtop/union.h (glibtop_union): Added `netinfo. * include/glibtop/command.h (GLIBTOP_CMND_NETINFO): Added.
* Added `instance' argument.Martin Baulig1999-11-281-1/+1
| | | | | | | 1999-11-28 Martin Baulig <martin@home-of-linux.org> * include/glibtop/interfaces.h (glibtop_get_interface_names): Added `instance' argument.
* We now have a new, more extensible client/server communication model.Martin Baulig1999-11-281-2/+2
| | | | | | | 1999-11-28 Martin Baulig <martin@home-of-linux.org> * lib/lib.pl: We now have a new, more extensible client/server communication model. Include `$(top_srcdir)/scripts/c_types.pl' here.
* Added new feature to get a list of network interface names.Martin Baulig1999-11-211-0/+1
| | | | | | | | | | | | | | | 1999-11-21 Martin Baulig <martin@home-of-linux.org> Added new feature to get a list of network interface names. * features.def: Added `interface_names' feature. * include/glibtop/interfaces.h: New file. * include/glibtop/sysdeps.h (GLIBTOP_SYSDEPS_INTERFACE_NAMES): Added. (glibtop_sysdeps): Added `interface_names'. * include/glibtop/union.h (glibtop_union): Added `interface_names'. * include/glibtop/command.h (GLIBTOP_CMND_INTERFACE_NAMES): Added.
* Use `retval' for the default retval.Martin Baulig1999-10-241-18/+18
| | | | | | | | | | 1999-10-24 Martin Baulig <martin@home-of-linux.org> * features.def: Use `retval' for the default retval. * include/glibtop/command.h (glibtop_command_h): Added `int *retval_ptr' parameter to return the retval from the sysdeps functions.
* This is a very big an possibly breaking commit.Martin Baulig1999-10-241-18/+18
| | | | | | | | | | | | | | | | | | It changes the return values of all sysdeps functions which were previosly returning void to int. This is the first step to implement better error handling in LibGTop. Martin 1999-10-24 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h (glibtop_get_*, glibtop_init*): Changed the return value of all `glibtop_get_<feature>_* ()' and all `glibtop_init_<feature>_* ()' functions from void to int. * features.def: Reflect changes of the return values. * sysdeps/*/*.c: Reflect changes of the return values.
* Define this here. Moved to limits.h.Martin Baulig1999-05-081-3/+3
| | | | | | | | | 1999-05-08 Martin Baulig <martin@home-of-linux.org> * include/glibtop/limits.h (GLIBTOP_MAX_GROUPS): Define this here. * include/glibtop/procuid.h (GLIBTOP_MAX_GROUPS): Moved to limits.h. * features.def: We can use constants from <glibtop/limits.h> here.
* Thanks to Drazen Kacar for pointing out that not all processors must beMartin Baulig1999-04-181-2/+2
| | | | | | | | | | | 1999-04-18 Martin Baulig <martin@home-of-linux.org> Thanks to Drazen Kacar for pointing out that not all processors must be running all the time under Solaris, so we need to have some flag to find out which processors are running. * (glibtop_cpu): Added `xcpu_flags' bitmask of running processors. * (glibtop_proc_time): Added `xcpu_flags'.
* Added some new features.Martin Baulig1999-03-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | 1999-03-30 Martin Baulig <martin@home-of-linux.org> Added some new features. * (glibtop_uptime): Added `boot_time', boot time in seconds since the epoch. * (glibtop_proc_state): Changed `state' from char to unsigned. `uid' and `gid' are effective uid and gid; added comment. Added `ruid' and `rgid' for guaranteed-to-be-correct real uid/gid. For SMP systems: added `has_cpu', `processor' and `last_processor'. * (glibtop_proc_uid): Added suid, sgid, fsuid, fsgid, ngroups, groups. * (glibtop_proc_segment): Added start_data, end_data, start_brk, end_brk, start_mmap, arg_start, arg_end, env_start, env_end. * include/glibtop/procstate.h: Define some constants for the `state' field of glibtop_proc_state. * include/glibtop/prockernel.h: Define some constands for the `k_flags' field of glibtop_proc_kernel.
* Make the return value a `char *' instead of a `const char *'.Martin Baulig1998-12-091-1/+1
| | | | | | | 1998-12-09 Martin Baulig <martin@home-of-linux.org> * include/glibtop/procargs.h (glibtop_get_proc_args): Make the return value a `char *' instead of a `const char *'.
* Sync.Martin Baulig1998-12-081-2/+2
|
* More network load stuff.Martin Baulig1998-10-261-1/+1
|
* Some systems may not distinguish between input and output bytes/pkts/errsMartin Baulig1998-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | so we add `_total' fields: typedef struct _glibtop_netload glibtop_netload; struct _glibtop_netload { u_int64_t flags, mtu, /* GLIBTOP_NETLOAD_MTU */ address, /* GLIBTOP_NETLOAD_ADDRESS */ packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */ packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */ packets_total, /* GLIBTOP_NETLOAD_PACKETS_TOTAL*/ bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */ bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */ bytes_total, /* GLIBTOP_NETLOAD_BYTES_TOTAL */ errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */ errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */ errors_total, /* GLIBTOP_NETLOAD_ERRORS_TOTAL */ collisions; /* GLIBTOP_NETLOAD_COLLISIONS */ };
* Added new features to get network load:Martin Baulig1998-10-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | typedef struct _glibtop_netload glibtop_netload; struct _glibtop_netload { u_int64_t flags, mtu, /* GLIBTOP_NETLOAD_MTU */ address, /* GLIBTOP_NETLOAD_ADDRESS */ packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */ packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */ bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */ bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */ errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */ errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */ collisions; /* GLIBTOP_NETLOAD_COLLISIONS */ }; Returns network load of the given interface, it is specified as string like `isppp' or `ippp0': extern void glibtop_get_netload_l __P((glibtop *, glibtop_netload *, const char *));
* Added new feature (proc_args) to get command line arguments:Martin Baulig1998-10-261-0/+1
| | | | | | | | | | | | | | | | typedef struct _glibtop_proc_args glibtop_proc_args; struct _glibtop_proc_args { u_int64_t flags, size; /* GLIBTOP_PROC_ARGS_SIZE */ }; Returns a string containing all command line arguments of the process, the `unsigned' parameter is the maximum length of this string; if it is zero then no limit will be set. extern const char *glibtop_get_proc_args_l __P((glibtop *, glibtop_proc_args *, pid_t, unsigned));
* Added new feature to get PPP/ISDN support:Martin Baulig1998-10-251-0/+1
| | | | | | | | | | | | | | | | | | enum { GLIBTOP_PPP_STATE_UNKNOWN = 0, GLIBTOP_PPP_STATE_HANGUP, GLIBTOP_PPP_STATE_ONLINE }; struct _glibtop_ppp { u_int64_t flags, state, /* GLIBTOP_PPP_STATE */ bytes_in, /* GLIBTOP_PPP_BYTES_IN */ bytes_out; /* GLIBTOP_PPP_BYTES_OUT */ }; Currently only implemented in the FreeBSD port with ISDN via I4B. - Martin
* Use a 2-element-array of type `u_int64_t' for all signal masks instead ofMartin Baulig1998-10-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1998-10-20 Martin Baulig <martin@home-of-linux.org> * include/glibtop/proc_signal.h: Use a 2-element-array of type `u_int64_t' for all signal masks instead of just scalar numbers. This avoids problems on systems with more than 64 signals. If there is any operating system out there with even more than 128 signals, we can simply increase the number of array elements here. [NOTE for people porting libgtop: Please use all 64 bits of the `u_int64_t' and not just 32 - the signal number (as it is used in calls to kill () ...) should be a bit-index into this field; if a process ignores for instance signal 64, it has the 0-bit of sigcatch[1] set, if it ignores 63, this is the 63-bit of sigcatch[0] and so on ... The mapping between signal numbers and their names is done via the glibtop_sys_siglist [] field which should be declared in sysdeps/@sysdeps_dir@/siglist.c - see linux for an example. ] * features.def: It's now safe to put things like `loadavg[3]' here - the awk skripts should correctly threat this as an array.
* Merged from `LIBGTOP_0_25_PATCHES'.Martin Baulig1998-08-231-1/+1
|
* Added new fields `nr_running', `nr_tasks', `last_pid'. Added new fieldsMartin Baulig1998-08-161-1/+1
| | | | | | | | | 1998-08-16 Martin Baulig <martin@home-of-linux.org> * include/glibtop/loadavg.h (glibtop_loadavg): Added new fields `nr_running', `nr_tasks', `last_pid'. * features.def (loadavg): Added new fields `nr_running', `nr_tasks', `last_pid'.
* Using `text_rss', `shlib_rss', `data_rss' and `dirty_size' instead ofMartin Baulig1998-08-121-1/+1
| | | | | | | | | | | | | | | | | | | 1998-08-12 Martin Baulig <martin@home-of-linux.org> * include/glibtop/procsegment.h (glibtop_proc_segment): Using `text_rss', `shlib_rss', `data_rss' and `dirty_size' instead of `tsr', `lrs', `drs' and `dt'. New field `stack_rss'. * sysdeps/linux/procmem.c: Memory sizes now correctly in bytes. * sysdeps/linux/procsegment.c: Dito. * sysdeps/kernel/procsegment.c: Stack pages are reported via `stack_rss' and no longer count towards `data_rss' * kernel/table.h (table_proc_segment): Added `srs' field. * kernel/table21/module.c (TBL_PROC_SEGMENT): Added kernel support for this. * sysdeps/{linux, kernel, stub}/procmap.c: New files.
* New file. Added definition of `proc_map'.Martin Baulig1998-08-101-0/+1
| | | | | | | 1998-08-10 Martin Baulig <martin@home-of-linux.org> * include/glibtop/procmap.h (glibtop_proc_map): New file. * features.def: Added definition of `proc_map'.