summaryrefslogtreecommitdiff
path: root/hurd
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 /hurd
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 'hurd')
-rw-r--r--hurd/ChangeLog6
-rw-r--r--hurd/cap.h13
2 files changed, 19 insertions, 0 deletions
diff --git a/hurd/ChangeLog b/hurd/ChangeLog
index c1cb12e..cafdc1c 100644
--- a/hurd/ChangeLog
+++ b/hurd/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-26 Neal H. Walfield <neal@gnu.org>
+
+ * cap.h (RM_object_name): Define.
+ (struct object_name): New struct.
+ (object_name): New method.
+
2008-06-24 Neal H. Walfield <neal@gnu.org>
* cap.h (RM_object_discard): New define.
diff --git a/hurd/cap.h b/hurd/cap.h
index 5722268..559675e 100644
--- a/hurd/cap.h
+++ b/hurd/cap.h
@@ -379,6 +379,7 @@ enum
RM_object_discarded_clear,
RM_object_discard,
RM_object_status,
+ RM_object_name,
};
enum
@@ -494,6 +495,18 @@ enum
RPC (object_status, 3, 1, addr_t, principal, addr_t, object, bool, clear,
uintptr_t, status)
+struct object_name
+{
+ char name[12];
+};
+
+/* Give object OBJECT a name. This is only used for debugging
+ purposes and is only supported by some objects, in particular,
+ activities and threads. */
+RPC (object_name, 3, 0, addr_t, principal,
+ addr_t, object, struct object_name, name);
+
+
#undef RPC_STUB_PREFIX
#undef RPC_ID_PREFIX
#undef RPC_TARGET