172f0a50ba
Convert lots of fprintf(stderr, ...) to glibtop_debug*().
Benoit Dejean2015-06-21 22:39:11 +02:00
887092a05d
Define glibtop_debug(_r) as macros, eventually calling real C function. Keep these as macros so that if debug is not enable, although the debug message is parsed, it's not run. It's better this way because the debug message is always parsed and checked instead of being deleted by the preprocessor.
Benoit Dejean2015-06-21 22:35:52 +02:00
b2a2f6b5c2
Print client and server pids in messages.
Benoit Dejean2015-06-21 22:35:14 +02:00
6bdb9a76eb
Fixed glibtop_debug for calls without arguments.
Benoit Dejean2015-06-21 21:44:32 +02:00
fd29dae933
Always define LIBGTOP_ENABLE_DEBUG (0|1) to be used in if() statements.
Benoit Dejean2015-06-21 21:43:43 +02:00
65c5ca842f
Add a level (DEBUG, WARNING, ERROR) to printing functions.
Benoit Dejean2015-06-21 21:05:11 +02:00
ca6cabe41d
For processes with threads, only reports the pid once. On my system, this brings proclist's output from +300 to 72.
Benoit Dejean2015-06-21 20:23:27 +02:00
214c3635da
The perl generator for the *_l() functions does not need to know about the glibtop_* struct layout, so drop this from the definitions.
Benoit Dejean2015-06-21 19:13:35 +02:00
fba67da65d
Reorder GI annotations and remove duplicate for _l().
Benoit Dejean2015-06-21 18:17:57 +02:00
598764c171
Add gtk-doc annotations for the glibtop_init functions. Their return value should not be freed. This fixes usage from gnome-instrospection (invalid free).
Benoît Dejean2015-03-11 14:44:29 +01:00
aa7f9df00e
Drop --with-libgtop-smp. No code uses this switch.
Benoît Dejean2015-03-05 23:43:29 +01:00
4c4466292e
Fixed sscanf format string as arguments are unsigned ints.
Benoît Dejean2014-12-29 22:30:20 +01:00
fcc1d9d957
Add support for linux x.y versioning schema
Ionut Biru2011-10-22 21:58:30 +03:00
0580b2fb2c
Linux >= 3.14 provides a "MemAvailable" field in /proc/meminfo which gives the estimated amount of memory available for applications. Use this to compute glibtop_mem::user.
Benoît Dejean2014-04-14 09:34:52 +02:00
0a94dc7992
Display inode number without zero padding.
Benoit Dejean2015-06-21 15:05:32 +02:00
50b5dea402
Implement dev/inode for mapped files on ZFS.
Benoit Dejean2015-06-21 13:46:57 +02:00
f4b23ef0c6
Split the code that works only with UFS inode. Will ease new code for ZFS.
Benoit Dejean2015-06-21 13:43:14 +02:00
1f41349a7e
Fix format for permissions. Display mappings' sizes. Avoid duplicating formatting code.
Benoit Dejean2015-06-21 11:06:59 +02:00
548f104f35
If no argument is given, defaults to self. When self-testing, try to mmap some files as an example.
Benoit Dejean2015-06-21 11:04:59 +02:00
4808aac8ef
Make libgtop_server2 link against its libgtop.
Benoit Dejean2015-02-28 04:11:00 +01:00
f04ce61b80
Run server_command instead of hardcoded LIBGTOP_SERVER.
Benoit Dejean2015-02-28 04:08:18 +01:00
c7f7e5a1c6
Set the FSUSAGE_(READ|WRITE) flags only we managed to get something. Currently, it doesn't seem to work on ZFS.
Benoit Dejean2015-02-28 03:39:22 +01:00
e2348c24a0
When pretty-printing an array, don't display 0 elements.
Benoit Dejean2015-02-28 02:27:52 +01:00
f76b37be1b
Rename NEED_LIBGTOP to LIBGTOP_NEED_SERVER.
Benoit Dejean2015-02-28 02:12:23 +01:00
b2fee3e111
No special case for pid == 0. As of 2015, with FreeBSD 10.1-RELEASE #0 r274401 on amd64, this really works and sets the name to "kernel" for pid == 0.
Benoit Dejean2015-02-28 01:43:57 +01:00
7b2416a8d1
Use LIBGTOP_ENABLE_DEBUG instead of undefined SLAVE_DEBUG.
Benoit Dejean2015-02-28 01:20:20 +01:00
0057bbbc47
Don't set GLIBTOP_PROC_MEM_SHARE because it's not implemented anymore.
Benoit Dejean2015-02-28 02:35:02 +01:00
e6d776ee61
It doesn't make any sense to count as shared each and every mmaped file. Disable that code while we figure how to really do it.
Benoit Dejean2015-02-27 22:47:47 +01:00
c68e077909
Implemented procaffinity for netBSD.
Juan RP2015-06-20 03:35:56 +03:00
72e46fc6b4
Define some GLIBTOP_SUID constants to build procaffinity on NetBSD
Juan RP2008-09-25 05:55:00 +00:00
2ea8a156f3
Enable procaffinity.c on sysdeps/bsd/Makefile.am.
Juan RP2008-09-25 05:52:00 +00:00
40e1a86d52
freebsd: Add fdescfs to the ignored filesystem list
Ting-Wei Lan2015-05-02 18:04:23 +08:00