This is now a LibGTop backend which can be loaded additionally to the
2000-01-23 Martin Baulig <martin@home-of-linux.org> This is now a LibGTop backend which can be loaded additionally to the normal Linux sysdeps code. * open.c, close.c: Removed. * shm_limits.c, msg_limits.c, sem_limits.c, ppp.c: Removed. * siglist.c, sysinfo.c: Removed. * backend-kernel.c: New file. * glibtop-backend-private.h: New file. * libgtop-kernel.backend: New file. * backend-kernel.pl: New file. Automatically creates `backend-kernel.h'. * marshal.pl: New file. Automatically creates `marshal.c'. * glibtop_server.h: Replaced all `GLIBTOP_SUID_<feature>' constants with `GLIBTOP_IMPL_<feature>' ones; they're used in marshal.c to find out which features this backend implements. * *.c: Renamed all `glibtop_get_<feature>_s' functions to `glibtop_get_<feature>_k' and all `glibtop_init_<feature>_s' ones to `glibtop_init_<feature>_k'.
This commit is contained in:
committed by
Martin Baulig
parent
d2f4502e74
commit
3455d025a2
@@ -53,7 +53,7 @@ static int pageshift; /* log base 2 of the pagesize */
|
||||
/* Init function. */
|
||||
|
||||
int
|
||||
glibtop_init_proc_segment_s (glibtop *server)
|
||||
glibtop_init_proc_segment_k (glibtop *server)
|
||||
{
|
||||
register int pagesize;
|
||||
|
||||
@@ -74,7 +74,7 @@ glibtop_init_proc_segment_s (glibtop *server)
|
||||
/* Provides detailed information about a process. */
|
||||
|
||||
int
|
||||
glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
|
||||
glibtop_get_proc_segment_k (glibtop *server, glibtop_proc_segment *buf,
|
||||
pid_t pid)
|
||||
{
|
||||
libgtop_proc_mem_t proc_mem;
|
||||
@@ -83,7 +83,7 @@ glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
|
||||
|
||||
memset (buf, 0, sizeof (glibtop_proc_segment));
|
||||
|
||||
retval = glibtop_get_proc_data_proc_mem_s (server, &proc_mem, pid);
|
||||
retval = glibtop_get_proc_data_proc_mem_k (server, &proc_mem, pid);
|
||||
if (retval)
|
||||
return retval;
|
||||
|
||||
@@ -101,7 +101,7 @@ glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
|
||||
|
||||
buf->flags = _glibtop_sysdeps_proc_segment;
|
||||
|
||||
retval = glibtop_get_proc_data_proc_state_s (server, &proc_state, pid);
|
||||
retval = glibtop_get_proc_data_proc_state_k (server, &proc_state, pid);
|
||||
if (retval)
|
||||
return retval;
|
||||
|
||||
|
Reference in New Issue
Block a user