Benoît Dejean
23798fbd51
Single glib.h include.
...
Closes #557826 .
svn path=/trunk/; revision=2785
2008-11-07 23:58:43 +00: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
62c741074c
Fixed dist for !linux.
...
Patch by Petr Salinger <Petr.Salinger@seznam.cz >.
Closes #525953 .
svn path=/trunk/; revision=2729
2008-04-03 16:39:43 +00:00
Benoît Dejean
8674e92349
Implemented a linux-only fsusage sysdeps.
...
svn path=/trunk/; revision=2683
2007-10-17 20:53:53 +00:00
Benoît Dejean
9b072525a6
Implemented a linux-only mountlist.
...
Smarter ignore list based on /proc/filesystems.
svn path=/trunk/; revision=2678
2007-10-15 17:52:34 +00:00
Benoît Dejean
73728a78c7
Added rpc_pipefs to ignore list.
...
svn path=/trunk/; revision=2672
2007-10-03 19:49:13 +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
ee78aaf29c
Fixed returned type.
...
2007-05-19 Benoît Dejean <benoit@placenet.org >
* default.c:
Fixed returned type.
svn path=/trunk/; revision=2597
2007-05-19 19:43:31 +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
82612af053
Ignore securityfs and fusectl. Patch by Fryderyk Dziarmagowski
...
2007-03-16 Benoît Dejean <benoit@placenet.org >
* mountlist.c: (ignore_mount_entry):
Ignore securityfs and fusectl.
Patch by Fryderyk Dziarmagowski <freetz@gmx.net >
Closes #418718 .
svn path=/trunk/; revision=2567
2007-03-16 22:53:05 +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
a085c85db6
Make sure avail <= free. Closes #406280 .
...
2007-02-10 Benoît Dejean <benoit@placenet.org >
* fsusage.c: (glibtop_get_fsusage_s):
Make sure avail <= free.
Closes #406280 .
svn path=/trunk/; revision=2551
2007-02-10 15:33:09 +00:00
Benoît Dejean
3d06443c2c
Fixed order. Added objfs and ctfs. Closes #400557 .
...
2007-01-31 Benoît Dejean <benoit@placenet.org >
* mountlist.c: (ignore_mount_entry):
Fixed order.
Added objfs and ctfs.
Closes #400557 .
svn path=/trunk/; revision=2549
2007-01-31 21:01:54 +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
9055b90aef
Converted to gtk-doc. Patch by Germán Poó-Caamaño <gpoo@ubiobio.cl>.
...
2006-12-02 Benoît Dejean <benoit@placenet.org >
* Makefile.am:
* configure.in:
* doc/Makefile.am:
* doc/reference/Makefile.am:
* doc/reference/libgtop-docs.xml:
* doc/reference/libgtop-sections.txt:
* doc/reference/version.xml.in:
* gtk-doc.make:
* sysdeps/common/default.c:
Converted to gtk-doc.
Patch by Germán Poó-Caamaño <gpoo@ubiobio.cl >.
2006-12-02 13:42:48 +00:00
Benoît Dejean
920a936511
Added nfsd to the exclude list.
...
2006-09-21 Benoît Dejean <benoit@placenet.org >
* mountlist.c: (ignore_mount_entry):
Added nfsd to the exclude list.
2006-09-21 13:05:22 +00:00
Benoît Dejean
739e9cac4a
Ensure file is closed.
...
2006-06-24 Benoît Dejean <benoit@placenet.org >
* mountlist.c: (read_filesystem_list):
Ensure file is closed.
(glibtop_get_mountlist_s):
Fixed .flags.
Patch by hua.zhang@sun.com .
Closes #345812 .
2006-06-24 17:28:48 +00:00
Benoît Dejean
5d2f45803b
Fixed trivial warning.
...
2006-04-09 Benoît Dejean <benoit@placenet.org >
* Makefile.am: Fixed trivial warning.
2006-04-09 10:55:03 +00:00
Benoît Dejean
29adf02352
Also ignores linprocfs, mfs and devfs. Closes #331856 . Patch by Andreas
...
* mountlist.c: (ignore_mount_entry): Also ignores linprocfs, mfs
and devfs.
Closes #331856 .
Patch by Andreas Kohn <andreas.kohn@gmail.com >
2006-02-21 09:06:40 +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
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
c81e055427
Removed LT_VERSION_INFO from LDFLAGS when unused.
...
* sysdeps/common/Makefile.am:
* sysdeps/linux/Makefile.am: Removed LT_VERSION_INFO from LDFLAGS
when unused.
2005-06-14 22:21:06 +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
Jörgen Scheibengruber
e8351bae05
Added tmpfs to ignore list.
...
* mountlist.c: (ignore_mount_entry): Added tmpfs to ignore list.
2005-04-29 09:50:09 +00:00
Benoît Dejean
fa9216f771
s/strerror/g_strerror/g.
...
* error.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
* error_suid.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
s/strerror/g_strerror/g.
2005-03-25 13:24:14 +00:00
Benoît Dejean
ad79ab9540
Added mqueue to ignore list.
...
* mountlist.c: (ignore_mount_entry): Added mqueue to ignore list.
2005-03-11 14:54:11 +00:00
Benoît Dejean
fc7d872381
* Add support for file system read and write counting (needed for the disk
...
* fsusage.c: * Add support for file system read and write counting
(needed for the disk load feature of the multiload applet).
2005-02-28 08:11:15 +00:00
Benoît Dejean
f031b77b3b
Correct file system size calculations. Patch from marcus@freebsd.org (Joe
...
* fsusage.c: (glibtop_get_fsusage_s): Correct file system size calculations.
Patch from marcus@freebsd.org (Joe Marcus Clarke).
Closes #168232 .
2005-02-23 08:18:48 +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
bbbbb27edc
Fixed G_GNUC attribute usage. Replaced macro by inline function.
...
* fsusage.c: (_glibtop_get_fsusage_read_write): Fixed G_GNUC attribute usage.
Replaced macro by inline function.
2005-02-15 09:51:59 +00:00
Benoît Dejean
793807b07e
Re-worked with bsearch.
...
* mountlist.c: (ignore_mount_entry): Re-worked with bsearch.
2005-01-18 21:57:52 +00:00
Benoît Dejean
ce9ce223ca
Turned all macros to functions. Marked everything as G_GNUC_PRINTF and
...
* include/glibtop/error.h:
* lib/parameter.c: (glibtop_set_parameter_l):
* lib/read_data.c: (glibtop_read_data_l):
* sysdeps/common/error.c: (print_server_name), (glibtop_error_vr),
(glibtop_error_io_vr), (glibtop_warn_vr), (glibtop_warn_io_vr),
(glibtop_error_r), (glibtop_warn_r), (glibtop_error_io_r),
(glibtop_warn_io_r), (glibtop_error), (glibtop_warn),
(glibtop_error_io), (glibtop_warn_io): Turned all macros to functions.
Marked everything as G_GNUC_PRINTF and fixed format bugs.
* sysdeps/common/fsusage.c: Marked some functions as G_GNUC_INTERNAL
2004-12-23 21:50:41 +00:00
Benoît Dejean
8a4fd3c971
Ignores unkown file system type.
...
* mountlist.c: (ignore_mount_entry): Ignores unkown file system type.
2004-12-09 15:57:44 +00:00
Benoît Dejean
544aff2f18
Removed SUID wrappers because glibtop_proc_argv_l is a client-side
...
* include/glibtop/procargs.h:
* sysdeps/common/procargs.c: (glibtop_get_proc_argv_l): Removed SUID
wrappers because glibtop_proc_argv_l is a client-side function that wraps
glibtop_get_proc_args.
2004-11-13 11:42:48 +00:00
Benoît Dejean
d0833edb66
Fixed .block_size on Solaris.
...
* fsusage.c: (glibtop_get_fsusage_s): Fixed .block_size on Solaris.
2004-09-24 21:26:34 +00:00
Benoît Dejean
fe08779c6c
Removed mountlist.h.
...
* Makefile.am:
* mountlist.c:
* mountlist.h: Removed mountlist.h.
2004-09-23 22:47:56 +00:00
Benoît Dejean
c29887d4b0
Added openpromfs.
...
* mountlist.c: (ignore_mount_entry): Added openpromfs.
2004-09-22 22:20:31 +00:00
Benoît Dejean
5d97c3fa5e
Linux: Sanitize. Removed calls to obfuscated PROPAGATE_ALL_ONES(x) which
...
* fsusage.c: (glibtop_get_fsusage_s): Linux: Sanitize. Removed calls
to obfuscated PROPAGATE_ALL_ONES(x) which seems to return unpredictable
values on some arch (e.g sparc).
Closes #153141 .
2004-09-22 17:38:18 +00:00
Benoît Dejean
339b79b100
Added mntfs to ignore list
...
* mountlist.c: (ignore_mount_entry): Added mntfs to ignore list
2004-09-22 11:16:42 +00:00
Benoît Dejean
0b0b1ab43c
Back to previous version.
...
* fsusage.c: (_glibtop_get_fsusage_read_write),
(glibtop_get_fsusage_s):
* mountlist.c: (glibtop_get_mountlist_s): Back to previous version.
* fsusage.c: (linux_2_6_0), (linux_2_4_0),
(_glibtop_linux_get_fsusage_read_write): Back to previous version.
Now set .flags correctly.
2004-09-20 23:43:24 +00:00
Benoît Dejean
601cfef32f
: Added new flag. (_glibtop_get_fsusage_read_write): Changed prototype.
...
* fsusage.c: (_glibtop_get_fsusage_read_write) : Added new flag.
(_glibtop_get_fsusage_read_write): Changed prototype. Returns TRUE on
success, then _glibtop_get_fsusage_read_write is set.
Added comment to locate Linux code.
* mountlist.c: (read_filesystem_list): Dropped unused need_fs_type parameter.
This is now default.
Fixed possible leak.
(ignore_mount_entry): Added "usbfs" to ignored FS.
(glibtop_get_mountlist_s): Updated.
2004-09-19 21:02:10 +00:00
Benoît Dejean
35488aef90
bumped to 2.8.1.
...
* configure.in: bumped to 2.8.1.
* sysdeps/common/fsusage.c:
* sysdeps/common/gnuslib.c: (glibtop_make_connection),
(connect_to_unix_server), (glibtop_internet_addr):
* sysdeps/linux/glibtop_server.c: (get_pageshift):
* sysdeps/linux/glibtop_server.h:
* sysdeps/linux/open.c: (glibtop_open_s):
* sysdeps/linux/ppp.c: (is_ISDN_on): Cleanups. Thanks to Kjartan Maraas.
Closes #151557 .
2004-09-13 15:21:54 +00:00
Benoît Dejean
ef95ef85ff
Merged FreeBSD Marcus' patch.
...
* mountlist.c: (read_filesystem_list): Merged FreeBSD Marcus' patch.
2004-08-22 19:30:14 +00:00
Benoît Dejean
bce095739f
Added -gnu89 to CFLAGS.
...
* configure.in: Added -gnu89 to CFLAGS.
* examples/Makefile.am: Fixed LDFLAGS.
* sysdeps/common/fsusage.c: (glibtop_get_fsusage_s):
* sysdeps/linux/fsusage.c: (linux_2_6_0):
* sysdeps/linux/proctime.c: (glibtop_get_proc_time_s):
* sysdeps/linux/sysinfo.c: (init_sysinfo): Fixed C89 issues.
Closes #149375 .
2004-08-09 07:55:50 +00:00
Benoît Dejean
e5a855db7c
Started implementation of read, write. Code should be splitted into arch
...
* fsusage.c: (glibtop_get_fsusage_s): Started implementation of read, write.
Code should be splitted into arch specific files.
* mountlist.c: (glibtop_get_mountlist_s): glibify. Used GArray.
2004-07-17 12:04:09 +00:00