summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBenoît Dejean <benoit@placenet.org>2007-04-27 17:37:47 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2007-04-27 17:37:47 +0000
commitcd389851b961691507d80968d64d9e275350a7b4 (patch)
treef96d5a7e31aa8353db2f157da326cb6017e647cc /examples
parent7ee8dae9c505fe87ecbb46080935ba058fb24452 (diff)
downloadlibgtop-cd389851b961691507d80968d64d9e275350a7b4.tar.gz
Got rid of InodeDB. This feature was optionnal and i have never heard of
2007-04-27 Benoît Dejean <benoit@placenet.org> Got rid of InodeDB. This feature was optionnal and i have never heard of anyone using it. I have never touched it so it may be broken since 2.6. svn path=/trunk/; revision=2573
Diffstat (limited to 'examples')
-rw-r--r--examples/procmap.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/procmap.c b/examples/procmap.c
index cde062ef..a3de5bf1 100644
--- a/examples/procmap.c
+++ b/examples/procmap.c
@@ -35,9 +35,6 @@
#include <glibtop/procmap.h>
-#ifdef GLIBTOP_INODEDB
-#include <glibtop/inodedb.h>
-#endif
#include <sys/resource.h>
#include <sys/mman.h>
@@ -49,9 +46,6 @@
int
main (int argc, char *argv [])
{
-#ifdef GLIBTOP_INODEDB
- glibtop_inodedb *inodedb;
-#endif
glibtop_proc_map procmap;
glibtop_map_entry *maps;
unsigned method, count, port, i;
@@ -87,10 +81,6 @@ main (int argc, char *argv [])
if ((argc != 2) || (sscanf (argv [1], "%d", (int *) &pid) != 1))
g_error ("Usage: %s pid", argv [0]);
-#ifdef GLIBTOP_INODEDB
- inodedb = glibtop_inodedb_open (0, 0);
-#endif
-
fprintf (stderr, "Getting memory maps for pid %d.\n\n", (int) pid);
maps = glibtop_get_proc_map (&procmap, pid);
@@ -103,12 +93,6 @@ main (int argc, char *argv [])
if (maps [i].flags & (1L << GLIBTOP_MAP_ENTRY_FILENAME))
filename = maps [i].filename;
-#ifdef GLIBTOP_INODEDB
- if (inodedb && !filename)
- filename = glibtop_inodedb_lookup
- (inodedb, maps [i].device, maps [i].inode);
-#endif
-
perm [0] = (maps [i].perm & GLIBTOP_MAP_PERM_READ) ? 'r' : '-';
perm [1] = (maps [i].perm & GLIBTOP_MAP_PERM_WRITE) ? 'w' : '-';
perm [2] = (maps [i].perm & GLIBTOP_MAP_PERM_EXECUTE) ? 'x' : '-';