Benoît Dejean
e387c66aad
Fixed build. Patch by Damien Carbery <damien.carbery@sun.com>. Closes
...
2007-06-07 Benoît Dejean <benoit@placenet.org >
* proclist.c: (glibtop_get_proclist_s):
Fixed build.
Patch by Damien Carbery <damien.carbery@sun.com >.
Closes #444815 .
svn path=/trunk/; revision=2604
2007-06-07 16:30:59 +00:00
Benoît Dejean
1ca0e5c5e7
Added glibtop_get_proc_open_files implementation by Henry Zhang
...
2006-09-19 Benoît Dejean <benoit@placenet.org >
* Makefile.am:
* procopenfiles.c: (glibtop_init_proc_open_files_s),
(glibtop_get_proc_open_files_s):
Added glibtop_get_proc_open_files implementation by
Henry Zhang <hua.zhang@sun.com >.
Closes #346174 .
2006-09-19 14:38:14 +00:00
Benoît Dejean
7f477561f0
Fixed start time.
...
2006-06-24 Benoît Dejean <benoit@placenet.org >
* proctime.c: (glibtop_get_proc_time_s):
Fixed start time.
Patch by hua.zhang@sun.com .
Closes #345819 .
2006-06-24 17:47:34 +00:00
Benoît Dejean
c7e0a7ac59
Fixed writable memory.
...
2006-06-24 Benoît Dejean <benoit@placenet.org >
* procmap.c: (glibtop_get_proc_map_s):
Fixed writable memory.
Patch by hua.zhang@sun.com .
Closes #345817 .
2006-06-24 17:45:29 +00:00
Benoît Dejean
bc6ff2cb59
Can't get cpu_stat_kstat, didn't close kstat, this will make other program
...
2006-06-24 Benoît Dejean <benoit@placenet.org >
* open.c: (glibtop_get_kstats), (glibtop_open_s):
Can't get cpu_stat_kstat, didn't close kstat, this will make other
program used kstat wrong.
Patch by hua.zhang@sun.com .
Closes #345814 .
2006-06-24 17:39:49 +00:00
Benoît Dejean
1826be8ef6
Fixed. Patch by hua.zhang@sun.com. Closes #345813 .
...
2006-06-24 Benoît Dejean <benoit@placenet.org >
* netlist.c: (glibtop_get_netlist_s):
Fixed.
Patch by hua.zhang@sun.com .
Closes #345813 .
2006-06-24 17:35:39 +00:00
Benoît Dejean
46c9f6ebeb
Don't use kvm anymore. Patch by hua.zhang@sun.com. Closes #345811 .
...
2006-06-24 Benoît Dejean <benoit@placenet.org >
* msg_limits.c: (glibtop_init_msg_limits_p),
(glibtop_get_msg_limits_p):
* open_suid.c: (glibtop_open_p):
* sem_limits.c: (glibtop_init_sem_limits_p),
(glibtop_get_sem_limits_p):
* shm_limits.c: (glibtop_init_shm_limits_p),
(glibtop_get_shm_limits_p):
Don't use kvm anymore.
Patch by hua.zhang@sun.com .
Closes #345811 .
2006-06-24 17:16:53 +00:00
Benoît Dejean
22a1120348
Added missing includes. Added missing GLIBTOP_SUID_NETLIST.
...
* glibtop_server.h:
* open.c:
* open_suid.c:
* procdata.c:
Added missing includes.
Added missing GLIBTOP_SUID_NETLIST.
2005-08-12 14:55:38 +00:00
Benoît Dejean
b3dfc1d1d2
Updated. Lots of cleanup.
...
* cpu.c: (glibtop_init_cpu_s), (glibtop_get_cpu_s):
* loadavg.c: (glibtop_get_loadavg_s):
* mem.c: (glibtop_init_mem_s), (glibtop_get_mem_s):
* open.c: (glibtop_get_kstats), (glibtop_open_s):
* procargs.c: (glibtop_get_proc_args_s):
* procdata.c: (glibtop_get_proc_data_psinfo_s),
(glibtop_get_proc_data_usage_s), (glibtop_get_proc_credentials_s),
(glibtop_get_proc_status_s):
* proclist.c: (glibtop_get_proclist_s):
* procmap.c: (glibtop_get_proc_map_s):
* procmem.c: (glibtop_get_proc_mem_s):
* procstate.c: (glibtop_get_proc_state_s):
* safeio.c:
* safeio.h:
* shm_limits.c: (glibtop_init_shm_limits_p),
(glibtop_get_shm_limits_p):
* swap.c: (glibtop_get_swap_s):
* uptime.c: (glibtop_get_uptime_s): Updated. Lots of cleanup.
2004-10-11 18:01:25 +00:00
Benoît Dejean
a08c8d96bb
*** empty log message ***
2004-06-20 22:10:52 +00:00
Benoît Dejean
b279819639
*** empty log message ***
2004-06-18 20:33:01 +00:00
Benoît Dejean
fe494bc846
Removed useless tests. Replace g_malloc + memset by g_malloc0 Replace
...
* proclist.c: (glibtop_get_proclist_s): Removed useless tests.
* procmap.c: (glibtop_get_proc_map_s): Replace g_malloc + memset
by g_malloc0
* procstate.c: (glibtop_get_proc_state_s): Replace strncpy by g_strlcpy.
2004-06-06 21:23:56 +00:00
Benoît Dejean
74453855aa
Added missing const qualifiers.
...
* loadavg.c: (glibtop_get_loadavg_s):
* msg_limits.c:
* sem_limits.c:
* shm_limits.c: Added missing const qualifiers.
2004-05-25 17:07:20 +00:00
Bastien Nocera
a795ff4847
fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean
...
2004-03-09 Bastien Nocera <hadess@hadess.net >
* fix g_malloc usage on non-Linux platforms (patch by Benoit
Dejean <bnet@ifrance.com >)
2004-03-09 23:02:06 +00:00
Bastien Nocera
31133cc3dc
install only one library, libgtop-2.0 Fix build-time warnings due to the
...
2003-10-21 Bastien Nocera <hadess@hadess.net >
* Makefile.am:
* configure.in:
* src/inodedb/.cvsignore:
* sysdeps/names/Makefile.am:
install only one library, libgtop-2.0
Fix build-time warnings due to the redefinition of guint64
2003-10-21 21:21:28 +00:00
Bastien Nocera
07d991f383
Apply patch by the_h1ghlander@yahoo.com and Cory Omand
...
2003-10-20 Bastien Nocera <hadess@hadess.net >
* include/glibtop/cpu.h:
* include/glibtop/procstate.h:
* include/glibtop/procuid.h:
* include/glibtop/uptime.h:
* lib/sysdeps.c:
* sysdeps/names/cpu.c:
* sysdeps/names/procstate.c:
* sysdeps/names/procuid.c:
* sysdeps/names/uptime.c: Apply patch by the_h1ghlander@yahoo.com and
Cory Omand <cory.omand@Sun.com > for Solaris support
2003-10-20 21:27:31 +00:00
Bastien Nocera
b2283f7c79
- s/u_int64_t/guint64/
2003-10-20 20:12:28 +00:00
Bastien Nocera
b67e4c7f7d
- fixed compilation
2003-10-20 15:20:16 +00:00
Bastien Nocera
ba36a20cb8
- replace all the xmalloc crap by glib memory management functions
2003-10-20 13:55:44 +00:00
Carlos Perelló Marín
4c8ae9e25c
Reverted libgtop changes. It's a common module and I should not modify it.
...
2003-10-19 Carlos Perelló Marín <carlos@gnome.org >
* support/*: Reverted libgtop changes. It's a common module
and I should not modify it.
* Added/removed files. Now the move should be done.
2003-10-19 16:55:56 +00:00
Martin Baulig
7a7c6baf55
Moved all sysdeps code to the new libgtop-backends module.
...
2001-04-20 Martin Baulig <baulig@suse.de >
Moved all sysdeps code to the new libgtop-backends module.
* sysdeps/freesd/*: Removed.
* sysdeps/kernel/*: Removed.
* sysdeps/linux/*: Removed.
* sysdeps/osf1/*: Removed.
* sysdeps/solaris/*: Removed.
* sysdeps/stub/*: Removed.
* sysdeps/stub_suid/*: Removed.
* sysdeps/sun4/*: Removed.
2001-04-20 21:06:35 +00:00
Martin Baulig
5f0246b07d
Only install the libs in $(LIBGTOP_BACKEND_DIR) when we
...
2000-02-22 Martin Baulig <martin@home-of-linux.org >
* Makefile.am: Only install the libs in $(LIBGTOP_BACKEND_DIR)
when we LIBGTOP_USE_GMODULE and in $(libdir) otherwise.
2000-02-22 21:01:14 +00:00
Martin Baulig
1f6916b5d0
Install libraries in $(backenddir).
...
2000-02-16 Martin Baulig <martin@home-of-linux.org >
* Makefile.am: Install libraries in $(backenddir).
2000-02-15 23:46:58 +00:00
Martin Baulig
de90df6a63
*** empty log message ***
1999-12-25 20:44:04 +00:00
Martin Baulig
e162a06a1a
Removed. This is now included in <glibtop-private.h>.
...
1999-12-25 Martin Baulig <martin@home-of-linux.org >
* safeio.h: Removed. This is now included in <glibtop-private.h>.
1999-12-25 19:58:36 +00:00
Martin Baulig
b9abc7c3ef
New file.
...
1999-12-25 Martin Baulig <martin@home-of-linux.org >
* netinfo.c: New file.
1999-12-25 19:57:33 +00:00
Martin Baulig
1979cb8104
Added function prototypes for everything from safeio.c.
...
1999-12-25 Martin Baulig <martin@home-of-linux.org >
* glibtop_private.h: Added function prototypes for everything
from safeio.c.
1999-12-25 18:46:06 +00:00
Martin Baulig
8da7856780
Added `@DL_LIB@'.
...
1999-10-17 Martin Baulig <martin@home-of-linux.org >
* Makefile.am (libgtop_sysdeps_la_LIBADD): Added `@DL_LIB@'.
1999-10-17 21:42:15 +00:00
Drazen Kacar
16156b8e27
Bugfix. It wasn't excluding system, non-tty or idle processes if that was
...
* proclist.c (glibtop_get_proclist_s): Bugfix. It wasn't
excluding system, non-tty or idle processes if that was
requested.
1999-09-28 03:53:08 +00:00
Martin Baulig
9bd351abae
Fix bug reported by Takis Psarogiannakopoulos: `start_time' are seconds
...
1999-07-29 Martin Baulig <martin@home-of-linux.org >
* proctime.c (glibtop_get_proc_time_p): Fix bug reported by
Takis Psarogiannakopoulos: `start_time' are seconds since the
epoch as it is stated in the manual.
1999-07-29 18:56:26 +00:00
Drazen Kacar
71bda8b99d
Bug fix. All Solaris versions have RUID and RGID in struct stat for
...
* proclist.c: Bug fix. All Solaris versions have RUID and
RGID in struct stat for files/directories in /proc.
1999-07-16 04:46:27 +00:00
Drazen Kacar
432adade05
Solaris 2.5 & 2.5.1 portability fixes, based on patches from Steve Murphy
...
* glibtop_machine.h, open.c, procargs.c, proclist.c, procmap.c:
Solaris 2.5 & 2.5.1 portability fixes, based on patches
from Steve Murphy <murf@e-tools.com >.
1999-06-07 04:13:05 +00:00
Drazen Kacar
deeadb6648
Fixed bug in calculation of process argument list.
...
* procargs.c: Fixed bug in calculation of process argument list.
1999-05-30 20:39:07 +00:00
Drazen Kacar
1f4b738639
Get the file name from inode number.
...
* glibtop_machine.h, open.c, procmap.c: Get the file name
from inode number.
1999-05-27 02:57:34 +00:00
Drazen Kacar
f232ddcdcb
Implemented what Solaris has to offer cheaply. It sucks, but digging in
...
* procargs.c: Implemented what Solaris has to offer cheaply.
It sucks, but digging in process address space would be
too slow.
1999-05-17 16:37:38 +00:00
Drazen Kacar
f23e8b3d1c
Return 0 usage times for scheaduler (PID 0).
...
* proctime.c: Return 0 usage times for scheaduler (PID 0).
1999-05-11 06:25:04 +00:00
Drazen Kacar
c1649507e9
Added process selection mechanism. It's not included in Solaris 2.5 build,
...
* proclist.c: Added process selection mechanism. It's not
included in Solaris 2.5 build, since we first have to decide
what will be dispatched to daemon.
1999-05-10 05:44:52 +00:00
Drazen Kacar
a246a6390f
There be some useful documentation now. Syncing...
...
* mem.c: Output values in bytes, as the documentation requires.
It was a bit odd when gtop reported 256K of total memory.
1999-05-09 22:38:16 +00:00
Drazen Kacar
03be66c857
Initial Solaris 2.5 port. It's far from being complete and hasn't been
...
* glibtop_machine.h, procdata.c, proclist.c, procmap.c, procmem.c,
procsignal.c, procstate.c, procuid.c, open.c, mem.c: Initial
Solaris 2.5 port. It's far from being complete and hasn't been
tested properly. We'll need setuid root daemon, which is
currently not implemented. #ifdef symbols to check are
HAVE_PROCFS_H and KSTAT_DATA_UINT32. These will be defined on
Solaris 2.6 and later, but not on earlier releases.
1999-05-09 20:27:43 +00:00
Drazen Kacar
ffb4b0fade
Added s_open(), s_close() etc. with EINTR wrappers.
...
* safeio.c, safeio.h: Added s_open(), s_close() etc. with EINTR
wrappers.
* procdata.c, procmap.c, proclist.c: Use them.
1999-05-08 19:20:02 +00:00
Drazen Kacar
bfd03680cc
Use bytes as units for memory consumption.
...
* procmem.c: Use bytes as units for memory consumption.
1999-05-08 17:39:54 +00:00
Drazen Kacar
2635e545bf
Fixed nice value.
...
* procuid.c: Fixed nice value.
1999-05-08 01:53:41 +00:00
Martin Baulig
e8a3a40691
Moved them into the setgid server since they need to access kvm data.
...
1999-05-08 Martin Baulig <martin@home-of-linux.org >
* shm_limits.c, msg_limits.c, sem_limits.c: Moved them into the
setgid server since they need to access kvm data.
* open_suid.c, close_suid.c: New file. We do the initialization and cleanup
for the setgid server here.
* glibtop_suid.h: New file. We include this in the setgid files.
* open.c: Moved kvm opening code into open_suid.c.
1999-05-07 23:24:08 +00:00
Drazen Kacar
3a7d7778a0
*** empty log message ***
1999-05-07 23:15:24 +00:00
Drazen Kacar
217a1e92c6
Implemented size, vsize, resident and rss.
...
* procmem.c: Implemented size, vsize, resident and rss.
1999-05-07 20:38:13 +00:00
Drazen Kacar
b252a80b7e
Fixed, valid for Solaris 2.6 & 7.
...
* siglist.c: Fixed, valid for Solaris 2.6 & 7.
1999-05-06 20:44:01 +00:00
Drazen Kacar
ab7f1cc3be
List of supplementary groups was not correct. Fixed.
...
* glibtop_private.h, procuid.c, procdata.c: List of supplementary
groups was not correct. Fixed.
1999-05-06 01:15:44 +00:00
Drazen Kacar
3f65468299
Changed boot time to unsigned long long.
...
* glibtop_machine.h: Changed boot time to unsigned long long.
* open.c: Added proper type checking for boot value. There's
no point in saving a few nanoseconds in init function. And
one day it will become 64-bit value.
In glibtop_get_kstats(): Don't reread vminfo_snaptime when
reinitializing kstats.
1999-05-03 23:02:58 +00:00
Drazen Kacar
aa6f26f9fb
Fixed typoo.
...
* glibtop_private.h: Fixed typoo.
* procmap.c (glibtop_get_proc_map_s): Implemented start, end,
offset and perm for mapped segments. File name and inode
should be accessible from bunyip kstat data. The only
obstacle is that the data format is undocumented and
possibly not the same accross releases.
1999-05-03 03:40:24 +00:00
Drazen Kacar
0408c86065
Read pstatus info from /proc
...
* glibtop_private.h, procdata.c (glibtop_get_proc_signal_s):
Read pstatus info from /proc
* procsignal.c (glibtop_get_proc_signal_s): Implemented
set of pending and blocked signals. The rest should probably
be read from /proc/<pid>/sigact, but I'm not sure it's
worth implementing before thread API comes into place.
* siglist.c: Added Solaris 7 signals. Someone will gettextize
it eventually. Besides, signal list should become a pointer
instead of being fixed field. We need some run time initializations.
The code is written, but commented out.
1999-05-03 00:03:52 +00:00