Using text_rss',
shlib_rss', data_rss' and
dirty_size' instead of
1998-08-12 Martin Baulig <martin@home-of-linux.org> * include/glibtop/procsegment.h (glibtop_proc_segment): Using `text_rss', `shlib_rss', `data_rss' and `dirty_size' instead of `tsr', `lrs', `drs' and `dt'. New field `stack_rss'. * sysdeps/linux/procmem.c: Memory sizes now correctly in bytes. * sysdeps/linux/procsegment.c: Dito. * sysdeps/kernel/procsegment.c: Stack pages are reported via `stack_rss' and no longer count towards `data_rss' * kernel/table.h (table_proc_segment): Added `srs' field. * kernel/table21/module.c (TBL_PROC_SEGMENT): Added kernel support for this. * sysdeps/{linux, kernel, stub}/procmap.c: New files.
This commit is contained in:
committed by
Martin Baulig
parent
da622f70c7
commit
9248d72018
@@ -80,12 +80,11 @@ main (int argc, char *argv [])
|
||||
maps = glibtop_get_proc_map (&procmap, pid);
|
||||
|
||||
for (i = 0; i < procmap.number; i++) {
|
||||
fprintf (stderr, "%08x - %08x - %08lu - %08lu - '%s'\n",
|
||||
fprintf (stderr, "%08x - %08x - %08lu - %08lu\n",
|
||||
(unsigned long) maps [i].start,
|
||||
(unsigned long) maps [i].end,
|
||||
(unsigned long) maps [i].device,
|
||||
(unsigned long) maps [i].inode,
|
||||
devname (maps [i].device, S_IFBLK));
|
||||
(unsigned long) maps [i].inode);
|
||||
}
|
||||
|
||||
glibtop_free (maps);
|
||||
|
Reference in New Issue
Block a user