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:
14
ChangeLog
14
ChangeLog
@@ -1,3 +1,17 @@
|
|||||||
|
2005-12-09 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2005-12-08 Benoît Dejean <benoit@placenet.org>
|
2005-12-08 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
* doc/reference.texi:
|
* doc/reference.texi:
|
||||||
|
@@ -7,13 +7,13 @@ AM_CONFIG_HEADER(config.h)
|
|||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_SYSTEM
|
||||||
|
|
||||||
LIBGTOP_MAJOR_VERSION=2
|
LIBGTOP_MAJOR_VERSION=2
|
||||||
LIBGTOP_MINOR_VERSION=12
|
LIBGTOP_MINOR_VERSION=13
|
||||||
LIBGTOP_MICRO_VERSION=3
|
LIBGTOP_MICRO_VERSION=0
|
||||||
LIBGTOP_VERSION=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION.$LIBGTOP_MICRO_VERSION
|
LIBGTOP_VERSION=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION.$LIBGTOP_MICRO_VERSION
|
||||||
AM_INIT_AUTOMAKE(libgtop, $LIBGTOP_VERSION)
|
AM_INIT_AUTOMAKE(libgtop, $LIBGTOP_VERSION)
|
||||||
|
|
||||||
dnl increment if the interface has additions, changes, removals.
|
dnl increment if the interface has additions, changes, removals.
|
||||||
LIBGTOP_CURRENT=6
|
LIBGTOP_CURRENT=7
|
||||||
|
|
||||||
dnl increment any time the source changes; set to
|
dnl increment any time the source changes; set to
|
||||||
dnl 0 if you increment CURRENT
|
dnl 0 if you increment CURRENT
|
||||||
@@ -22,7 +22,7 @@ LIBGTOP_REVISION=0
|
|||||||
dnl increment if any interfaces have been added; set to 0
|
dnl increment if any interfaces have been added; set to 0
|
||||||
dnl if any interfaces have been removed. removal has
|
dnl if any interfaces have been removed. removal has
|
||||||
dnl precedence over adding, so set to 0 if both happened.
|
dnl precedence over adding, so set to 0 if both happened.
|
||||||
LIBGTOP_AGE=1
|
LIBGTOP_AGE=0
|
||||||
|
|
||||||
# you can set this to `-snap' for instance to create
|
# you can set this to `-snap' for instance to create
|
||||||
# a `libgtop-1.x.y-snap.tar.gz' tarball.
|
# a `libgtop-1.x.y-snap.tar.gz' tarball.
|
||||||
|
@@ -77,6 +77,7 @@ struct _glibtop
|
|||||||
int output [2]; /* Pipe client -> server */
|
int output [2]; /* Pipe client -> server */
|
||||||
int socket; /* Accepted connection of a socket */
|
int socket; /* Accepted connection of a socket */
|
||||||
int ncpu; /* Number of CPUs, zero if single-processor */
|
int ncpu; /* Number of CPUs, zero if single-processor */
|
||||||
|
int real_ncpu; /* Real number of CPUs. Only ncpu are monitored */
|
||||||
unsigned long os_version_code; /* Version code of the operating system */
|
unsigned long os_version_code; /* Version code of the operating system */
|
||||||
const char *name; /* Program name for error messages */
|
const char *name; /* Program name for error messages */
|
||||||
const char *server_command; /* Command used to invoke server */
|
const char *server_command; /* Command used to invoke server */
|
||||||
|
@@ -52,8 +52,11 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
#define GLIBTOP_MAX_CPU 18
|
#define GLIBTOP_MAX_CPU 18
|
||||||
|
|
||||||
/* Nobody should really be using more than 4 processors. */
|
/* Nobody should really be using more than 4 processors.
|
||||||
#define GLIBTOP_NCPU 4
|
Yes we are :)
|
||||||
|
Nobody should really be using more than 32 processors.
|
||||||
|
*/
|
||||||
|
#define GLIBTOP_NCPU 32
|
||||||
|
|
||||||
typedef struct _glibtop_cpu glibtop_cpu;
|
typedef struct _glibtop_cpu glibtop_cpu;
|
||||||
|
|
||||||
|
@@ -43,7 +43,15 @@ G_BEGIN_DECLS
|
|||||||
#define GLIBTOP_MAP_ENTRY_DEVICE 5
|
#define GLIBTOP_MAP_ENTRY_DEVICE 5
|
||||||
#define GLIBTOP_MAP_ENTRY_FILENAME 6
|
#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
|
#define GLIBTOP_MAP_FILENAME_LEN 215
|
||||||
|
|
||||||
@@ -60,6 +68,10 @@ typedef struct _glibtop_proc_map glibtop_proc_map;
|
|||||||
struct _glibtop_map_entry
|
struct _glibtop_map_entry
|
||||||
{
|
{
|
||||||
guint64 flags, start, end, offset, perm, inode, device;
|
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];
|
char filename [GLIBTOP_MAP_FILENAME_LEN+1];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user