Compare commits

...

11 Commits

Author SHA1 Message Date
Benoît Dejean
a956784797 Released 2.13.92.
* NEWS:
        * configure.in:

        Released 2.13.92.
2006-02-27 08:26:56 +00:00
Benoît Dejean
e71023b362 Added proc_mem example.
* pprint.c: (pprint_get_proc_mem), (main):

        Added proc_mem example.
2006-02-27 08:14:12 +00:00
Benoît Dejean
89f9c1d43a Fixed glibtop_get_proc_state doc. Patch by Emil Nowak <emil5@go2.pl>.
* reference.texi: Fixed glibtop_get_proc_state doc.
        Patch by Emil Nowak <emil5@go2.pl>.
2006-02-21 10:17:21 +00:00
Benoît Dejean
29adf02352 Also ignores linprocfs, mfs and devfs. Closes #331856. Patch by Andreas
* mountlist.c: (ignore_mount_entry): Also ignores linprocfs, mfs
	and devfs.
	Closes #331856.
	Patch by Andreas Kohn <andreas.kohn@gmail.com>
2006-02-21 09:06:40 +00:00
Benoît Dejean
35030c878b Bump version to 2.13.4. Reordered libs. Closes #329153.
* configure.in:

	Bump version to 2.13.4.
	Reordered libs. Closes #329153.
2006-02-20 18:58:41 +00:00
Benoît Dejean
9b916ee402 Released 2.13.3.
* configure.in:
	* NEW:

	Released 2.13.3.
2006-01-23 18:02:22 +00:00
Benoît Dejean
23ca9669ae I can't believe i've been so stupid :) Uses smaps if linux > 2.6.14.
* procmap.c: (glibtop_get_proc_map_s):

	I can't believe i've been so stupid :)
	Uses smaps if linux > 2.6.14.
2006-01-23 16:41:10 +00:00
Benoît Dejean
d66ae501f9 /me stupid. Revert last commit. Sorry 2006-01-02 17:43:45 +00:00
Benoît Dejean
ccb10a7b33 Updated. 2006-01-02 17:13:18 +00:00
Benoît Dejean
9d2131a4b5 Released 2.13.2.
* NEWS:
	* configure.in:

	Released 2.13.2.
2006-01-02 13:13:11 +00:00
James Henstridge
7d3059e732 add quotes around symbol definition.
2006-01-02  James Henstridge  <james@jamesh.id.au>

	* configure.in (LT_VERSION_INFO): add quotes around symbol definition.
2006-01-02 11:30:32 +00:00
12 changed files with 103 additions and 7 deletions

View File

@@ -1,3 +1,35 @@
2006-02-27 Benoît Dejean <benoit@placenet.org>
* NEWS:
* configure.in:
Released 2.13.92.
2006-02-20 Benoît Dejean <benoit@placenet.org>
* configure.in:
Bump version to 2.13.4.
Reordered libs. Closes #329153.
2006-01-23 Benoît Dejean <benoit@placenet.org>
* configure.in:
* NEW:
Released 2.13.3.
2006-01-02 Benoît Dejean <benoit@placenet.org>
* NEWS:
* configure.in:
Released 2.13.2.
2006-01-02 James Henstridge <james@jamesh.id.au>
* configure.in (LT_VERSION_INFO): add quotes around symbol definition.
2005-12-15 Benoît Dejean <benoit@placenet.org>
* configure.in:

View File

@@ -1,3 +1,3 @@
Email: martin@home-of-linux.org
Email: dave@srce.hr
Benoît Dejean (tazforever@dlfp.org)
Current maintainer : Benoît Dejean (benoit@placenet.org)

14
NEWS
View File

@@ -1,3 +1,17 @@
February 27, 2006: Overview of changes in 2.13.92
=================================================
* Fixed proc_state documentation.
* Updated mountlist ignore list.
January 23, 2006: Overview of changes in 2.13.3
===============================================
* linux:
- fixe get_procmap for linux < 2.6.14.
January 2, 2006: Overview of changes in 2.13.2
==============================================
* Fixed libtool versioning (James Henstridge)
December 15, 2005: Overview of changes in 2.13.1
================================================
* linux:

View File

@@ -4,7 +4,7 @@ dnl
m4_define([libgtop_major_version], [2])
m4_define([libgtop_minor_version], [13])
m4_define([libgtop_micro_version], [1])
m4_define([libgtop_micro_version], [92])
m4_define([libgtop_version], [libgtop_major_version.libgtop_minor_version.libgtop_micro_version])
dnl increment if the interface has additions, changes, removals.
@@ -44,7 +44,7 @@ AC_SUBST(LIBGTOP_VERSION_CODE, [libgtop_version_code])
# libtool versioning
AC_SUBST(LT_VERSION_INFO,
[-version-info libgtop_current:libgtop_revision:libgtop_age])
["-version-info libgtop_current:libgtop_revision:libgtop_age"])
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I ."
@@ -318,7 +318,7 @@ else
LIBGTOP_EXTRA_LIBS="$LIBGTOP_EXTRA_LIBS $libs_xauth"
fi
LIBGTOP_EXTRA_LIBS="$LIBGTOP_EXTRA_LIBS $GLIB_LIBS"
LIBGTOP_EXTRA_LIBS="$GLIB_LIBS $LIBGTOP_EXTRA_LIBS"
LIBGTOP_LIBS="$LIBGTOP_LIBS"

View File

@@ -1,3 +1,8 @@
2006-02-21 Benoît Dejean <benoit@placenet.org>
* reference.texi: Fixed glibtop_get_proc_state doc.
Patch by Emil Nowak <emil5@go2.pl>.
2005-01-03 Benoît Dejean <TazForEver@dlfp.org>
* reference.texi: Updated.

View File

@@ -493,7 +493,7 @@ glibtop_get_proc_state_l (glibtop *server, glibtop_proc_state *buf,
@end cartouche
@end example
Declaration of @code{glibtop_proc_state} in @file{<glibtop/proc_state.h>}:
Declaration of @code{glibtop_proc_state} in @file{<glibtop/procstate.h>}:
@example
@cartouche

View File

@@ -1,3 +1,9 @@
2006-02-27 Benoît Dejean <benoit@placenet.org>
* pprint.c: (pprint_get_proc_mem), (main):
Added proc_mem example.
2005-12-15 Benoît Dejean <benoit@placenet.org>
* proclist.c: (print_pids), (main):

View File

@@ -268,6 +268,24 @@ static void pprint_get_proc_kernel(pid_t pid)
}
static void pprint_get_proc_mem(pid_t pid)
{
glibtop_proc_mem buf;
glibtop_get_proc_mem(&buf, pid);
HEADER_PPRINT(glibtop_get_proc_mem);
PPRINT(flags, "%#llx");
PPRINT(size, "%llu");
PPRINT(vsize, "%llu");
PPRINT(resident, "%llu");
PPRINT(share, "%llu");
PPRINT(rss, "%llu");
PPRINT(rss_rlim, "%llu");
FOOTER_PPRINT();
}
int main()
{
@@ -298,6 +316,7 @@ int main()
pprint_get_uptime();
pprint_get_proc_kernel(getpid());
pprint_get_proc_mem(getpid());
glibtop_close();

View File

@@ -1,3 +1,10 @@
2006-02-21 Benoît Dejean <benoit@placenet.org>
* mountlist.c: (ignore_mount_entry): Also ignores linprocfs, mfs
and devfs.
Closes #331856.
Patch by Andreas Kohn <andreas.kohn@gmail.com>
2005-04-26 Jörgen Scheibengruber <mfcn@gmx.de>
* mountlist.c: (ignore_mount_entry): Added tmpfs to ignore list.

View File

@@ -540,7 +540,10 @@ static gboolean ignore_mount_entry(const struct mount_entry *me)
static const char ignored[][12] = {
"autofs",
"binfmt_misc",
"devfs",
"devpts",
"linprocfs",
"mfs",
"mntfs",
"mqueue",
"none",

View File

@@ -1,3 +1,10 @@
2006-01-23 Benoît Dejean <benoit@placenet.org>
* procmap.c: (glibtop_get_proc_map_s):
I can't believe i've been so stupid :)
Uses smaps if linux > 2.6.14.
2005-12-15 Benoît Dejean <benoit@placenet.org>
* proclist.c: (glibtop_get_proclist_s):

View File

@@ -133,12 +133,15 @@ glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid)
100);
FILE *maps;
const char *filename;
gboolean has_smaps;
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_MAP, 0);
memset (buf, 0, sizeof (glibtop_proc_map));
if (server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
has_smaps = server->os_version_code >= LINUX_VERSION_CODE(2, 6, 14);
if (has_smaps)
filename = SMAPS_FILE;
else
filename = MAPS_FILE;
@@ -211,7 +214,7 @@ glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid)
entry->inode = (guint64) inode;
g_strlcpy(entry->filename, filename, sizeof entry->filename);
if (server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
if (has_smaps)
add_smaps(server, maps, entry);
}