summaryrefslogtreecommitdiff
path: root/viengoos/pager.c
diff options
context:
space:
mode:
authorneal <neal>2008-06-26 07:02:40 +0000
committerneal <neal>2008-06-26 07:02:40 +0000
commit05e23c2cc501a89ad446415a421472ecfaa9fd2b (patch)
treee37ab6848729df399cd12043a55eb90f76968fe3 /viengoos/pager.c
parentacf372c67575341f8923940d1d06084cdb37ac55 (diff)
hurd/
2008-06-26 Neal H. Walfield <neal@gnu.org> * cap.h (RM_object_name): Define. (struct object_name): New struct. (object_name): New method. viengoos/ 2008-06-26 Neal H. Walfield <neal@gnu.org> * rm.h (rm_method_id_string): Handle the RM_object_name case. * server.c (server_loop): Implement the object_name method. * activity.h (struct activity): New field name. * thread.h (struct thread): Likewise. * object.h (OBJECT_NAME_FMT): New macro. (OBJECT_NAME_PRINTF): Likewise. * activity.c: Include "thread.h". (do_activity_dump): Use OBJECT_NAME_FMT and OBJECT_NAME_PRINTF rather than OID_FMT and OID_PRINTF. (activity_dump): Only call do_activity_dump if debugging output is enabled. * pager.c: Include "thread.h". (pager_collect): Use OBJECT_NAME_FMT and OBJECT_NAME_PRINTF rather than OID_FMT and OID_PRINTF. * ager.c (update_stats): Likewise.
Diffstat (limited to 'viengoos/pager.c')
-rw-r--r--viengoos/pager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/viengoos/pager.c b/viengoos/pager.c
index 0dd3f72..85bf1ba 100644
--- a/viengoos/pager.c
+++ b/viengoos/pager.c
@@ -23,6 +23,7 @@
#include "activity.h"
#include "object.h"
#include "pager.h"
+#include "thread.h"
#include "profile.h"
int pager_min_alloc_before_next_collect;
@@ -530,10 +531,9 @@ pager_collect (int goal)
assertx (victim_frames >= share,
"%d < %d", victim_frames, share);
- debug (0, DEBUG_BOLD ("Revoking from activity " OID_FMT "%s, ")
+ DEBUG (5, DEBUG_BOLD ("Revoking from activity " OBJECT_NAME_FMT ", ")
"%d/%d frames (pending eviction: %d/%d), share: %d, goal: %d",
- OID_PRINTF (object_to_object_desc ((struct object *) victim)->oid),
- victim->parent ? "" : " (root activity)",
+ OBJECT_NAME_PRINTF ((struct object *) victim),
victim->frames_local, victim->frames_total,
eviction_list_count (&victim->eviction_dirty),
victim->frames_pending_eviction,