172f0a50ba
Convert lots of fprintf(stderr, ...) to glibtop_debug*().
Benoit Dejean
2015-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 Dejean
2015-06-21 22:35:52 +02:00
b2a2f6b5c2
Print client and server pids in messages.
Benoit Dejean
2015-06-21 22:35:14 +02:00
6bdb9a76eb
Fixed glibtop_debug for calls without arguments.
Benoit Dejean
2015-06-21 21:44:32 +02:00
fd29dae933
Always define LIBGTOP_ENABLE_DEBUG (0|1) to be used in if() statements.
Benoit Dejean
2015-06-21 21:43:43 +02:00
65c5ca842f
Add a level (DEBUG, WARNING, ERROR) to printing functions.
Benoit Dejean
2015-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 Dejean
2015-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 Dejean
2015-06-21 19:13:35 +02:00
fba67da65d
Reorder GI annotations and remove duplicate for _l().
Benoit Dejean
2015-06-21 18:17:57 +02:00
4c0632ccbd
Move gtk-doc/gi tag for glibtop_netlist_* to the correct place.
Benoît Dejean
2015-03-15 00:35:37 +01:00
71c7d65b1d
Add gtk-doc/gi for glibtop_netlist.
Benoît Dejean
2015-03-15 00:06:28 +01:00
94aa63f796
Add an assertion to ensure that GLIBTOP_SYSDEPS_* fit in an unsigned long.
Benoît Dejean
2015-03-12 23:25:24 +01:00
931a8364ff
Fix a few gtk-doc/gi function tags.
Benoît Dejean
2015-03-11 15:10:28 +01: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 Dejean
2015-03-11 14:44:29 +01:00
aa7f9df00e
Drop --with-libgtop-smp. No code uses this switch.
Benoît Dejean
2015-03-05 23:43:29 +01:00
4c4466292e
Fixed sscanf format string as arguments are unsigned ints.
Benoît Dejean
2014-12-29 22:30:20 +01:00
fcc1d9d957
Add support for linux x.y versioning schema
Ionut Biru
2011-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 Dejean
2014-04-14 09:34:52 +02:00
a206cfc728
freebsd: rework system memory usage
Ting-Wei Lan
2015-05-02 21:36:22 +08:00
58ca70eaee
Updated Portuguese translation
Pedro Albuquerque
2015-07-01 22:01:19 +00:00
421419fdbf
Fixed build problem with procmap example
Robert Roth
2015-06-26 03:10:51 +03:00
1f3b08e6dc
Display self-timings using ps.
Benoit Dejean
2015-06-21 17:35:57 +02:00
a870dfc8f2
Print more fields about each filesystem.
Benoit Dejean
2015-06-21 16:01:26 +02:00
e0244ad3fc
Don't try to print a NULL hash_table.
Benoit Dejean
2015-06-21 15:38:32 +02:00
1156794b33
Add command tracing in glibtop_call_l when debugging.
Benoit Dejean
2015-06-21 15:35:26 +02:00
874771ec1c
Ignore more output files.
Benoit Dejean
2015-06-21 15:34:25 +02:00
16f262985d
Use glibtop_warn_r instead of fprintf.
Benoit Dejean
2015-06-21 15:13:01 +02:00
0a94dc7992
Display inode number without zero padding.
Benoit Dejean
2015-06-21 15:05:32 +02:00
50b5dea402
Implement dev/inode for mapped files on ZFS.
Benoit Dejean
2015-06-21 13:46:57 +02:00
f4b23ef0c6
Split the code that works only with UFS inode. Will ease new code for ZFS.
Benoit Dejean
2015-06-21 13:43:14 +02:00
1f41349a7e
Fix format for permissions. Display mappings' sizes. Avoid duplicating formatting code.
Benoit Dejean
2015-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 Dejean
2015-06-21 11:04:59 +02:00
4808aac8ef
Make libgtop_server2 link against its libgtop.
Benoit Dejean
2015-02-28 04:11:00 +01:00
f04ce61b80
Run server_command instead of hardcoded LIBGTOP_SERVER.
Benoit Dejean
2015-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 Dejean
2015-02-28 03:39:22 +01:00
e2348c24a0
When pretty-printing an array, don't display 0 elements.
Benoit Dejean
2015-02-28 02:27:52 +01:00
f76b37be1b
Rename NEED_LIBGTOP to LIBGTOP_NEED_SERVER.
Benoit Dejean
2015-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 Dejean
2015-02-28 01:43:57 +01:00
7b2416a8d1
Use LIBGTOP_ENABLE_DEBUG instead of undefined SLAVE_DEBUG.
Benoit Dejean
2015-02-28 01:20:20 +01:00
d006da7e54
Drop dead file,
Benoit Dejean
2015-02-28 00:58:05 +01:00
a93dc2526d
The DEBUG macro enabled by --enable-debug is actually LIBGTOP_ENABLE_DEBUG.
Benoit Dejean
2015-02-28 00:20:28 +01:00
0057bbbc47
Don't set GLIBTOP_PROC_MEM_SHARE because it's not implemented anymore.
Benoit Dejean
2015-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 Dejean
2015-02-27 22:47:47 +01:00
c68e077909
Implemented procaffinity for netBSD.
Juan RP
2015-06-20 03:35:56 +03:00
72e46fc6b4
Define some GLIBTOP_SUID constants to build procaffinity on NetBSD
Juan RP
2008-09-25 05:55:00 +00:00
2ea8a156f3
Enable procaffinity.c on sysdeps/bsd/Makefile.am.
Juan RP
2008-09-25 05:52:00 +00:00
40e1a86d52
freebsd: Add fdescfs to the ignored filesystem list
Ting-Wei Lan
2015-05-02 18:04:23 +08:00
a101d6b27a
Updated Occitan translation
Cédric Valmary
2015-04-30 07:47:26 +00:00
9770db12d2
Let's stick to the GNOME release process
Robert Roth
2015-04-02 06:50:16 +03:00
a61052dc59
Version bump required to 2.32.0
Robert Roth
2015-03-21 20:13:08 +02:00
564506bb0d
Add annotations to get_proclist* to make Python bindings work.
Märt Põder
2014-08-02 13:20:20 +03:00
9e0843064d
doap: add <programming-language>
Andre Klapper
2014-07-31 21:05:19 +02:00
d8d8aac9d3
doap category core
Olav Vitters
2014-07-30 20:30:20 +02:00
9a887feed2
Unbreak build on OpenBSD after recent header changes.
Jasper Lievisse Adriaanse
2014-07-10 13:15:50 +02:00
81dfeb526c
Updated Greek translation
Tom Tryfonidis
2014-07-09 23:20:20 +00:00
d9c01aac4a
Don't include sys/pipe.h on kFreeBSD Defining _KERNEL to include sys/pipe.h subsequently breaks sys/conf.h; since sys/pipe.h is not meant to be used in userland, and libgtop2 builds anyway on kFreeBSD without it, don't include it. https://bugzilla.gnome.org/show_bug.cgi?id=674067
LIBGTOP_2_30_0
Steven Chamberlain
2014-04-29 00:30:07 +03:00
82c28b2ad2
src/daemon: remove LINK variable
Ting-Wei Lan
2014-02-22 01:48:46 +08:00
05345dc032
ABI breakage by efaaf6eb77. Fixing libtool version to 10.0.0.
Benoît Dejean
2014-04-13 22:03:20 +02:00
63ba7b2c12
switch from VM_METER to VM_UVMEXP
Jasper Lievisse Adriaanse
2014-04-10 16:32:47 +02:00
5371e8ec88
openbsd: drop empty EXTRA_SYSDEPS_LIBS.
Antoine Jacoutot
2014-03-31 10:57:22 +02:00
e682094418
examples: don't override LINK and other variables
Ryan Lortie
2014-02-11 14:10:46 -05:00
2e861977a6
freebsd: don't link to libgeom
Ryan Lortie
2014-02-12 09:00:52 -05:00
a39f290683
Fix build issues on FreeBSD
Ting-Wei Lan
2014-02-12 09:00:44 -05:00
02b55313f3
openbsd: bring glibtop_get_proc_segment from FreeBSD
Antoine Jacoutot
2014-02-08 11:54:07 +01:00
596c42d7f1
openbsd: drop unecessary check
Antoine Jacoutot
2014-02-08 11:53:26 +01:00