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.
This commit is contained in:
@@ -40,9 +40,12 @@ int glibtop_get_proc_data_psinfo_s (glibtop *server, struct psinfo *psinfo, pid_
|
||||
/* Read /proc/<pid>/usage */
|
||||
int glibtop_get_proc_data_usage_s (glibtop *server, struct prusage *prusage, pid_t pid);
|
||||
|
||||
/* Read /proc<pid>/cred */
|
||||
/* Read /proc/<pid>/cred */
|
||||
int glibtop_get_proc_credentials_s(glibtop *, struct prcred *, pid_t);
|
||||
|
||||
/* Read /proc/<pid>/status */
|
||||
glibtop_get_proc_status_s(glibtop *, struct pstatus *, pid_t);
|
||||
|
||||
/* Reread kstat chains */
|
||||
void glibtop_get_kstats(glibtop *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user