summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2005-12-09 16:15:44 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2005-12-09 16:15:44 +0000
commita7db1f4dfd236013291bbfd62deda29c3aa2070c (patch)
tree0988180319280f168b620b0a252e2cda1a5471ba /include
parent91a312768d6162261fc0449bafc1ccfa5809fe32 (diff)
downloadlibgtop-a7db1f4dfd236013291bbfd62deda29c3aa2070c.tar.gz
Increased GLIBTOP_NCPU to 32. Added real_ncpu to struct glibtop. Added
* configure.in: * glibtop.h: * include/glibtop/cpu.h: * include/glibtop/procmap.h: Increased GLIBTOP_NCPU to 32. Added real_ncpu to struct glibtop. Added smaps members to glibtop_map_entry. Bumped version number to 2.13.0 Broke ABI again. Sorry.
Diffstat (limited to 'include')
-rw-r--r--include/glibtop/cpu.h7
-rw-r--r--include/glibtop/procmap.h14
2 files changed, 18 insertions, 3 deletions
diff --git a/include/glibtop/cpu.h b/include/glibtop/cpu.h
index 3b2d5537..914fb1e9 100644
--- a/include/glibtop/cpu.h
+++ b/include/glibtop/cpu.h
@@ -52,8 +52,11 @@ G_BEGIN_DECLS
#define GLIBTOP_MAX_CPU 18
-/* Nobody should really be using more than 4 processors. */
-#define GLIBTOP_NCPU 4
+/* Nobody should really be using more than 4 processors.
+ Yes we are :)
+ Nobody should really be using more than 32 processors.
+*/
+#define GLIBTOP_NCPU 32
typedef struct _glibtop_cpu glibtop_cpu;
diff --git a/include/glibtop/procmap.h b/include/glibtop/procmap.h
index 4a3e3083..c4eea343 100644
--- a/include/glibtop/procmap.h
+++ b/include/glibtop/procmap.h
@@ -43,7 +43,15 @@ G_BEGIN_DECLS
#define GLIBTOP_MAP_ENTRY_DEVICE 5
#define GLIBTOP_MAP_ENTRY_FILENAME 6
-#define GLIBTOP_MAX_MAP_ENTRY 7
+/* Smap support */
+#define GLIBTOP_MAP_ENTRY_SIZE 7
+#define GLIBTOP_MAP_ENTRY_RSS 8
+#define GLIBTOP_MAP_ENTRY_SHARED_CLEAN 9
+#define GLIBTOP_MAP_ENTRY_SHARED_DIRTY 10
+#define GLIBTOP_MAP_ENTRY_PRIVATE_CLEAN 11
+#define GLIBTOP_MAP_ENTRY_PRIVATE_DIRTY 12
+
+#define GLIBTOP_MAX_MAP_ENTRY 13
#define GLIBTOP_MAP_FILENAME_LEN 215
@@ -60,6 +68,10 @@ typedef struct _glibtop_proc_map glibtop_proc_map;
struct _glibtop_map_entry
{
guint64 flags, start, end, offset, perm, inode, device;
+ guint64 size,
+ rss,
+ shared_clean, shared_dirty,
+ private_clean, private_dirty;
char filename [GLIBTOP_MAP_FILENAME_LEN+1];
};