![]() |
![]() |
![]() |
Libgtop Reference Manual | ![]() |
---|---|---|---|---|
#include <glibtop/prockernel.h> #define GLIBTOP_PROC_KERNEL_K_FLAGS #define GLIBTOP_PROC_KERNEL_MIN_FLT #define GLIBTOP_PROC_KERNEL_MAJ_FLT #define GLIBTOP_PROC_KERNEL_CMIN_FLT #define GLIBTOP_PROC_KERNEL_CMAJ_FLT #define GLIBTOP_PROC_KERNEL_KSTK_ESP #define GLIBTOP_PROC_KERNEL_KSTK_EIP #define GLIBTOP_PROC_KERNEL_NWCHAN #define GLIBTOP_PROC_KERNEL_WCHAN #define GLIBTOP_MAX_PROC_KERNEL glibtop_proc_kernel; void glibtop_get_proc_kernel (glibtop_proc_kernel *buf, pid_t pid); #define glibtop_get_proc_kernel_r void glibtop_get_proc_kernel_l (glibtop *server, glibtop_proc_kernel *buf, pid_t pid); void glibtop_get_proc_kernel_p (glibtop *server, glibtop_proc_kernel *buf, pid_t pid); void glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
typedef struct { guint64 flags; guint64 k_flags; /* kernel flags for the process */ guint64 min_flt; /* number of minor page faults since * process start */ guint64 maj_flt; /* number of major page faults since * process start */ guint64 cmin_flt; /* cumulative min_flt of process and * child processes */ guint64 cmaj_flt; /* cumulative maj_flt of process and * child processes */ guint64 kstk_esp; /* kernel stack pointer */ guint64 kstk_eip; /* kernel stack pointer */ guint64 nwchan; /* address of kernel wait channel * proc is sleeping in */ char wchan [40]; } glibtop_proc_kernel;
void glibtop_get_proc_kernel (glibtop_proc_kernel *buf, pid_t pid);
buf : |
|
pid : |
void glibtop_get_proc_kernel_l (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
server : |
|
buf : |
|
pid : |
void glibtop_get_proc_kernel_p (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
server : |
|
buf : |
|
pid : |
void glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
server : |
|
buf : |
|
pid : |