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.
This commit is contained in:
Benoît Dejean
2005-12-09 16:15:44 +00:00
parent 91a312768d
commit a7db1f4dfd
5 changed files with 37 additions and 7 deletions

View File

@@ -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;

View File

@@ -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];
};