0642c2d610
Turn glibtop::machine from a value to a pointer, allocated on init. This hides the glibtop_machine implementation.
Benoit Dejean
2015-07-21 21:25:44 +02:00
42e860e5ad
Add uid/euid/gid/egid members to struct glibtop.
Benoit Dejean
2015-07-21 10:02:36 +02:00
8f2f236404
No use for glibtop_machine for now, but who knows in the future.
Benoit Dejean
2015-07-21 09:40:56 +02:00
d3a247a60f
Don't include the ':' in smaps keys. Regenerate the hashtable.
Benoit Dejean
2015-07-20 23:42:23 +02:00
45c8452140
More debug messages to trace euid/egid changes.
Benoit Dejean
2015-07-19 22:37:09 +02:00
72b4aed8f1
Display features in hex in debug message.
Benoit Dejean
2015-07-19 22:36:05 +02:00
0e8f911410
Add some debug code to trace effective GID changes.
Benoit Dejean
2015-07-19 22:22:26 +02:00
db8ad19eef
Move _glibtop_global_server from .data to .bss.
Benoit Dejean
2015-07-19 22:12:36 +02:00
d30fbb22e0
Also display file/line/function in debug messages.
Benoit Dejean
2015-07-19 22:03:39 +02:00
6762719e43
Prepared release 2.31.4
Robert Roth
2015-08-05 23:15:53 +03:00
ad7dc16d89
Some NEWS for 2.31.4.
Benoît Dejean
2015-07-19 15:34:06 +02:00
f2e57d9fec
Don't define twice glibtop_global_server and server_features. I don't know how the linker was even able to cope with that.
Benoit Dejean
2015-07-18 22:10:05 +02:00
1481823085
Use the server parameter, not the global/default one.
Benoit Dejean
2015-07-18 22:08:52 +02:00
5ee8d4cb58
It's been 26 years since C89, let modern compilers do what they want.
Benoit Dejean
2015-07-18 15:56:42 +02:00
3bd720ad81
Do the math correctly to avoid loss of precision for rtime. I've noticed this with system-monitor where all processes got a perfectly round CPU time to the second.
Benoit Dejean
2015-07-18 15:08:08 +02:00
6239438dce
Check the command value even if !LIBGTOP_ENABLE_DEBUG.
Benoit Dejean
2015-06-28 16:36:23 +02:00
0099cbb6b4
Rework logic by turning two dark while into fors. Also, if kvm_read fail, exit rather than looping forever.
Benoit Dejean
2015-06-28 10:24:33 +02:00
cd5649f326
Print message to stderr at once, to avoid mixups.
Benoit Dejean
2015-06-28 00:56:59 +02:00
185396d674
Check getloadavg() return value and call the function directly on the glibtop_loadavg buffer member.
Benoit Dejean
2015-06-27 23:17:46 +02:00
90f0e40395
More files to ignore.
Benoit Dejean
2015-06-27 13:53:25 +02:00
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