Benoit Dejean
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.
2015-07-15 18:38:27 +02:00
Benoit Dejean
6bdb9a76eb
Fixed glibtop_debug for calls without arguments.
2015-07-15 18:38:27 +02:00
Benoit Dejean
edd08e6fd6
Fix macro definition.
2015-07-15 18:38:27 +02:00
Benoit Dejean
82ff91b74c
Add proper (and private) debug functions glibtop_debug*
2015-07-15 18:38:27 +02:00
Benoit Dejean
fba67da65d
Reorder GI annotations and remove duplicate for _l().
2015-07-15 18:34:49 +02:00
Benoît Dejean
ee2ac6d563
Add glibtop_get_shm_limits gtk-doc/gi tags.
2015-07-10 20:36:12 +02:00
Benoît Dejean
4c0632ccbd
Move gtk-doc/gi tag for glibtop_netlist_* to the correct place.
2015-07-10 20:36:12 +02:00
Benoît Dejean
71c7d65b1d
Add gtk-doc/gi for glibtop_netlist.
2015-07-10 20:36:12 +02:00
Benoît Dejean
94aa63f796
Add an assertion to ensure that GLIBTOP_SYSDEPS_* fit in an unsigned long.
2015-07-10 20:36:12 +02:00
Benoît Dejean
931a8364ff
Fix a few gtk-doc/gi function tags.
2015-07-10 20:36:12 +02:00
Jasper St. Pierre
3f8f65386e
Make some APIs that return struct introspectable
...
In order to do this, we need to define some boxed types. So we need
to add a new dependency, GObject, to GTop.
https://bugzilla.gnome.org/show_bug.cgi?id=663265
2015-01-03 15:32:56 +02:00
Robert Roth
7a3414d002
Update old FSF address.
...
https://bugzilla.gnome.org/show_bug.cgi?id=721514
2014-08-20 04:44:27 +03:00
Märt Põder
564506bb0d
Add annotations to get_proclist* to make Python bindings work.
...
https://bugzilla.gnome.org/show_bug.cgi?id=734170
2014-08-20 04:23:56 +03:00
Jason Xing
efaaf6eb77
Extending the cpu number from 32 to 1024 (bgo #323354 , bgo #681632 )
...
From: Jason Xing <xinggang861@gmail.com >
In 'Bug 323354 - Support a dynamic number of CPUs', there will be a
solution which can dynamically allocate memory for large number of
CPUs. As libgtop supports multiple operating systems, this work
may take some time.
This patch is a temporary patch, which worked before the whole
solution comes out. It only supports linux platform with CPU number
up to 1024.
There are two Macroes which limit the statistics of CPU. One is
GLIBTOP_NCPU. The other is a buffer size. This buffer used to read
/proc/stat contents into.
https://bugzilla.gnome.org/show_bug.cgi?id=323354
https://bugzilla.gnome.org/show_bug.cgi?id=681632
2013-12-12 22:36:10 +02:00
Tristan Hill
753d9abb13
proclist, procarg and proctime gtkdoc updates
...
Added gtkdoc for proclist, procarg and proctime.
Author: Tristan Hill <stan@saticed.me.uk >
https://bugzilla.gnome.org/show_bug.cgi?id=616082
2013-08-30 07:31:31 +03:00
Jasper Lievisse Adriaanse
cac71bf6c4
Revert "Expand to support ifmedia(4) types as found on BSD."
...
This reverts commit 5144c3e127
.
It wasn't meant to be pushed yet..
2011-07-29 11:02:23 +02:00
Jasper Lievisse Adriaanse
5144c3e127
Expand to support ifmedia(4) types as found on BSD.
...
https://bugzilla.gnome.org/show_bug.cgi?id=652713
2011-07-28 14:19:37 +02:00
Benoît Dejean
90fc3ca780
New API to retrieve process CPU affinity.
...
Linux implementation.
svn path=/trunk/; revision=2748
2008-05-24 09:50:04 +00:00
Benoît Dejean
c1b95643a8
Updated glibtop_get_proc_open_files API so that it also list IPv6 TCP sockets.
...
Patch by Mark McClelland <mark@ovcam.org >.
Closes #528175 .
WTH do we not care about udp ?
Updated libtool versioning: API addition does not change the ABI, so only
increased revision. gnome-2.22 is 8.1.1 so trunk is now 8.2.1.
svn path=/trunk/; revision=2738
2008-04-21 18:59:20 +00:00
Benoît Dejean
fedd75b2b1
Dropped dead files.
...
svn path=/trunk/; revision=2735
2008-04-14 16:22:00 +00:00
Benoît Dejean
ef34cfb38a
git-svn sucks. Kill r2609
...
svn path=/trunk/; revision=2611
2007-06-25 17:30:40 +00:00
Benoît Dejean
6b0bafcafb
New API : glibtop_get_proc_affinity.
...
Implemented for linux.
svn path=/trunk/; revision=2609
2007-06-25 17:27:27 +00:00
Benoît Dejean
65fe248d66
Got rid of G_GNUC_INTERNAL.
...
svn path=/trunk/; revision=2600
2007-05-31 20:04:32 +00:00
Benoît Dejean
a99011fd5c
Small API change. get_proclist returns pid_t instead of unsigned for
...
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
2007-05-19 19:40:33 +00:00
Benoît Dejean
da54431af5
Fixed dist.
...
2007-05-14 Benoît Dejean <benoit@placenet.org >
* include/glibtop/Makefile.am:
* lib/Makefile.am:
Fixed dist.
svn path=/trunk/; revision=2583
2007-05-14 08:04:19 +00:00
Benoît Dejean
eee0cad2b6
Added missing files
...
svn path=/trunk/; revision=2580
2007-05-13 14:28:50 +00:00
Benoît Dejean
3eb958dc6c
Manual commit from my local git-svn which is broken :/
...
svn path=/trunk/; revision=2578
2007-05-13 08:20:10 +00:00
Benoît Dejean
cd389851b9
Got rid of InodeDB. This feature was optionnal and i have never heard of
...
2007-04-27 Benoît Dejean <benoit@placenet.org >
Got rid of InodeDB.
This feature was optionnal and i have never heard of anyone using
it. I have never touched it so it may be broken since 2.6.
svn path=/trunk/; revision=2573
2007-04-27 17:37:47 +00:00
Benoît Dejean
aa9fafe5c3
Renamed all glibtop_init_xxx functions to _glibtop_init_xxx so they get
...
2007-04-11 Benoît Dejean <benoit@placenet.org >
* *:
Renamed all glibtop_init_xxx functions
to _glibtop_init_xxx so they get internal visibility.
* configure.in:
Bumped version number.
svn path=/trunk/; revision=2569
2007-04-11 17:52:14 +00:00
Benoît Dejean
04a5531a46
Removed noisy $Id$.
...
2007-02-20 Benoît Dejean <benoit@placenet.org >
* *:
Removed noisy $Id$.
svn path=/trunk/; revision=2558
2007-02-19 23:10:10 +00:00
Benoît Dejean
c9385972bd
Bumped version number to 2.14.6.
...
2007-01-11 Benoît Dejean <benoit@placenet.org >
* configure.in:
Bumped version number to 2.14.6.
* *:
Got rid of CVS admin files.
svn path=/trunk/; revision=2545
2007-01-11 20:35:33 +00:00
Benoît Dejean
63fb94127a
Made gtk-doc happy in order to dist.
...
2006-12-03 Benoît Dejean <benoit@placenet.org >
* doc/reference/libgtop-docs.xml:
* glibtop.h:
* include/glibtop/sysinfo.h:
Made gtk-doc happy in order to dist.
2006-12-03 18:21:01 +00:00
Benoît Dejean
24f5bb1e22
Removed wrong inline documentation. Closes #355286 .
...
2006-09-10 Benoît Dejean <benoit@placenet.org >
* configure.in:
* include/glibtop/procstate.h:
Removed wrong inline documentation.
Closes #355286 .
2006-09-10 21:53:29 +00:00
Benoît Dejean
383b4c480e
Bumped version number.
...
2006-08-10 Benoît Dejean <benoit@placenet.org >
* configure.in:
Bumped version number.
* glibtop.h:
* include/glibtop/init_hooks.h:
Added missing G_(BEGIN|END)_DECLS.
2006-08-10 20:36:58 +00:00
Benoît Dejean
c51a13bf0e
Tiny interface addition to handle wireless interfaces.
...
2006-07-27 Benoît Dejean <benoit@placenet.org >
* include/glibtop/netload.h:
Tiny interface addition to handle wireless interfaces.
2006-07-27 18:25:24 +00:00
German Poo-Caaman~o
05b94bd263
Changed struct's definitions to be one type-one member. To avoid problems
...
2006-04-18 German Poo-Caaman~o <gpoo@ubiobio.cl >
* /include/glibtop/cpu.h:
* /include/glibtop/fsusage.h:
* /include/glibtop/loadavg.h:
* /include/glibtop/mem.h:
* /include/glibtop/mountlist.h:
* /include/glibtop/msg_limits.h:
* /include/glibtop/netload.h:
* /include/glibtop/ppp.h:
* /include/glibtop/procargs.h:
* /include/glibtop/prockernel.h:
* /include/glibtop/proclist.h:
* /include/glibtop/procmap.h:
* /include/glibtop/procmem.h:
* /include/glibtop/procopenfiles.h:
* /include/glibtop/procsegment.h:
* /include/glibtop/procsignal.h:
* /include/glibtop/procstate.h:
* /include/glibtop/proctime.h:
* /include/glibtop/procuid.h:
* /include/glibtop/sem_limits.h:
* /include/glibtop/shm_limits.h:
* /include/glibtop/swap.h:
* /include/glibtop/sysdeps.h:
* /include/glibtop/uptime.h:
Changed struct's definitions to be one type-one member. To
avoid problems with any further gtk-doc's implementation.
2006-04-18 20:17:25 +00:00
James Henstridge
aa5ac8fc10
remove unused file.
...
2005-12-12 James Henstridge <james@jamesh.id.au >
* doc/auto-macros.texi.in: remove unused file.
* doc/libgtop2.texi: don't include auto-macros.texi.
* doc/Makefile.am: don't build auto-macros.texi, since none of its
macros are used in the documentation any more.
* include/glibtop/global.h: don't include <config.h> from headers.
* .../*.c: make sure <config.h> is the first thing included.
* acinclude.m4: m4_include() libgtop-sysdeps.m4 rather than
inlining it.
* acinclude.m4, libgtop-sysdeps.m4: use third argument to
AC_DEFINE() to set the comment.
* configure.in: modernise a bit.
* acconfig.h: remove file, since it is deprecated
* autogen.sh: require automake 1.9 instead of 1.4.
2005-12-12 09:38:15 +00:00
Benoît Dejean
a7db1f4dfd
Increased GLIBTOP_NCPU to 32. Added real_ncpu to struct glibtop. Added
...
* configure.in:
* glibtop.h:
* include/glibtop/cpu.h:
* include/glibtop/procmap.h:
Increased GLIBTOP_NCPU to 32.
Added real_ncpu to struct glibtop.
Added smaps members to glibtop_map_entry.
Bumped version number to 2.13.0
Broke ABI again. Sorry.
2005-12-09 16:15:44 +00:00
Benoît Dejean
91a312768d
Dropped unused file and updated documentation.
...
* doc/reference.texi:
* include/glibtop/limits.h:
Dropped unused file and updated documentation.
2005-12-08 10:25:56 +00:00
Benoît Dejean
95b2dfa326
Dropped many dead files. Bumped release number. I guess this closes
...
* configure.in:
* include/glibtop/glibtop-backend-info.h:
* include/glibtop/glibtop-backend.h:
* include/glibtop/glibtop-client.h:
* lib/glibtop-backend-info.c:
* lib/glibtop-backend.c:
* lib/glibtop-client-private.h:
* lib/glibtop-client.c:
* lib/test-backends.c:
* sysdeps/common/backend.c:
* sysdeps/common/libgtop-common.backend:
Dropped many dead files.
Bumped release number.
I guess this closes #320250 .
2005-10-30 18:46:27 +00:00
Benoît Dejean
78cb7832c5
Moved _glibtop_init_hook_[sp] declaration to private glibtop/init_hooks.h.
...
* configure.in:
* include/glibtop/Makefile.am:
* include/glibtop/glibtop-server.h:
* include/glibtop/init_hooks.h:
* include/glibtop/sysdeps.h:
* lib/init.c: (glibtop_init_s):
* lib/sysdeps.c:
* sysdeps/aix/open.c: (glibtop_init_p):
* sysdeps/common/sysdeps_suid.c:
* sysdeps/freebsd/open.c: (glibtop_init_p):
* sysdeps/osf1/open_suid.c: (glibtop_init_p):
* sysdeps/solaris/open_suid.c: (glibtop_init_p):
* sysdeps/stub_suid/open.c: (glibtop_init_p):
Moved _glibtop_init_hook_[sp] declaration to private
glibtop/init_hooks.h. Marked them const.
Fixed GLIBTOP_SUID_NETLIST issues.
2005-08-02 09:47:21 +00:00
Benoît Dejean
be7dabf75d
Added a lot of new functions to replace dirty macros. Every macro
...
* configure.in:
* glibtop.h:
* include/glibtop/close.h:
* include/glibtop/cpu.h:
* include/glibtop/fsusage.h:
* include/glibtop/loadavg.h:
* include/glibtop/mem.h:
* include/glibtop/mountlist.h:
* include/glibtop/msg_limits.h:
* include/glibtop/netlist.h:
* include/glibtop/netload.h:
* include/glibtop/ppp.h:
* include/glibtop/procargs.h:
* include/glibtop/prockernel.h:
* include/glibtop/proclist.h:
* include/glibtop/procmap.h:
* include/glibtop/procmem.h:
* include/glibtop/procopenfiles.h:
* include/glibtop/procsegment.h:
* include/glibtop/procsignal.h:
* include/glibtop/procstate.h:
* include/glibtop/proctime.h:
* include/glibtop/procuid.h:
* include/glibtop/sem_limits.h:
* include/glibtop/shm_limits.h:
* include/glibtop/swap.h:
* include/glibtop/sysdeps.h:
* include/glibtop/sysinfo.h:
* include/glibtop/uptime.h:
* sysdeps/common/Makefile.am:
* sysdeps/common/default.c: (glibtop_close), (glibtop_init),
(glibtop_get_cpu), (glibtop_get_fsusage), (glibtop_get_uptime),
(glibtop_get_sysinfo), (glibtop_get_swap), (glibtop_get_proc_uid),
(glibtop_get_proc_time), (glibtop_get_proc_state),
(glibtop_get_proc_signal), (glibtop_get_proc_segment),
(glibtop_get_proc_open_files), (glibtop_get_proc_mem),
(glibtop_get_proc_map), (glibtop_get_proc_args),
(glibtop_get_proc_argv), (glibtop_get_proclist),
(glibtop_get_proc_kernel), (glibtop_get_ppp),
(glibtop_get_netlist), (glibtop_get_netload),
(glibtop_get_mountlist), (glibtop_get_mem), (glibtop_get_loadavg),
(glibtop_get_msg_limits), (glibtop_get_sem_limits),
(glibtop_get_shm_limits), (glibtop_get_sysdeps):
Added a lot of new functions to replace dirty macros.
Every macro glibtop_get_*(buf[, args]) has been turned to a function.
2005-06-07 09:54:44 +00:00
Benoît Dejean
a71839c0a7
Got rid of include/libgtop-i18n.h.
...
* examples/smp.c:
* include/Makefile.am:
* include/libgtop-i18n.h:
* lib/lib.pl:
* lib/read.c:
* lib/read_data.c:
* lib/write.c:
* src/daemon/gnuserv.c: Got rid of include/libgtop-i18n.h.
2005-06-06 11:25:36 +00:00
Benoît Dejean
adb38dd2a3
2.10.2 post release bump.
...
* configure.in: 2.10.2 post release bump.
* include/glibtop/Makefile.am:
* include/glibtop/parameter.h:
* lib/init.c: Re-install open.h to please GTop (libgtop perl wrapper).
2005-04-27 14:50:24 +00:00
Benoît Dejean
53c43e6e90
Removed some dead files. Don't install private headers.
...
* backends/server/server.h:
* configure.in:
* glibtop.h:
* include/glibtop/Makefile.am:
* include/glibtop/gnuserv.h:
* include/glibtop/open.h:
* include/glibtop/read.h:
* include/glibtop/read_data.h:
* include/glibtop/types.h:
* include/glibtop/write.h:
* lib/close.c:
* lib/init.c:
* lib/lib.pl:
* lib/open.c:
* lib/parameter.c:
* lib/read.c:
* lib/read_data.c:
* lib/write.c:
* src/daemon/daemon.h:
* src/daemon/io.c:
* src/daemon/main.c: (handle_parent_connection):
* src/daemon/slave.c: (handle_slave_connection),
(handle_slave_command):
* sysdeps/common/gnuslib.c:
* sysdeps/solaris/glibtop_private.h: Removed some dead files.
Don't install private headers.
2005-02-15 12:48:34 +00:00
Benoît Dejean
0fdfd65a2a
Don't export private symbols.
...
* include/glibtop/error.h: Don't export private symbols.
2005-02-15 10:14:59 +00:00
Benoît Dejean
1ac8744251
G_GNUC_NORETURN love.
...
* include/glibtop/error.h: G_GNUC_NORETURN love.
* include/glibtop/errors.h:
* lib/errors.c: Bye bye dead code.
2005-02-15 09:55:01 +00:00
Benoît Dejean
270ec235c1
UTF-8-ified.
...
* include/glibtop/procopenfiles.h:
* sysdeps/linux/procopenfiles.c:
* sysdeps/stub/procopenfiles.c: UTF-8-ified.
2005-01-24 14:27:19 +00:00
Benoît Dejean
9b263e0fbb
added localsock { name } to glibtop_open_files_entry. Should not break
...
* examples/openfiles.c: (show_open_files):
* include/glibtop/procopenfiles.h: added localsock { name } to
glibtop_open_files_entry. Should not break ABI.
2005-01-21 23:28:47 +00:00
Benoît Dejean
7ca4171652
New feature by nick@reloco.com.ar (Nicolás Lichtmaier).
...
* 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.
2005-01-10 08:43:04 +00:00