diff options
author | neal <neal> | 2008-06-26 07:02:40 +0000 |
---|---|---|
committer | neal <neal> | 2008-06-26 07:02:40 +0000 |
commit | 05e23c2cc501a89ad446415a421472ecfaa9fd2b (patch) | |
tree | e37ab6848729df399cd12043a55eb90f76968fe3 /viengoos/activity.c | |
parent | acf372c67575341f8923940d1d06084cdb37ac55 (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/activity.c')
-rw-r--r-- | viengoos/activity.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/viengoos/activity.c b/viengoos/activity.c index 0569cb3..b9784d1 100644 --- a/viengoos/activity.c +++ b/viengoos/activity.c @@ -23,6 +23,7 @@ #include <hurd/cap.h> #include "activity.h" +#include "thread.h" #include "object.h" #include "profile.h" @@ -395,10 +396,10 @@ do_activity_dump (struct activity *activity, int indent) int clean = eviction_list_count (&activity->eviction_clean); int dirty = eviction_list_count (&activity->eviction_dirty); - printf ("%s %llx: %d frames (active: %d, inactive: %d, " + printf ("%s " OBJECT_NAME_FMT ": %d frames (active: %d, inactive: %d, " "pending eviction: %d/%d); total: %d; s:%d/%d; c:%d/%d\n", indent_string, - object_to_object_desc ((struct object *) activity)->oid, + OBJECT_NAME_PRINTF ((struct object *) activity), activity->frames_local, active, inactive, clean, dirty, activity->frames_total, activity->policy.sibling_rel.priority, @@ -414,5 +415,6 @@ do_activity_dump (struct activity *activity, int indent) void activity_dump (struct activity *activity) { - do_activity_dump (activity, 0); + do_debug (0) + do_activity_dump (activity, 0); } |