[PATCH 014/18] kdb-add-numa-support-to-task-cmd

quilt at tsunami.ccur.com quilt at tsunami.ccur.com
Thu Jul 10 13:25:03 PDT 2008


Extend the KDB task command to handle CONFIG_NUMA fields.

Changed the kdbm_task() 'task' command so that it now
outputs the mempolicy and il_next task structure fields
if CONFIG_NUMA is enabled.

Author: John Blackwood <john.blackwood at ccur.com>
Signed-off-by: Joe Korty <joe.korty at ccur.com>

Index: 2.6.26-rc9/kdb/modules/kdbm_task.c
===================================================================
--- 2.6.26-rc9.orig/kdb/modules/kdbm_task.c	2008-07-10 12:14:15.000000000 -0400
+++ 2.6.26-rc9/kdb/modules/kdbm_task.c	2008-07-10 13:35:31.000000000 -0400
@@ -129,6 +129,12 @@
 	kdb_printf("  thread_info=0x%p\n", task_thread_info(tp));
 	kdb_printf("  ti flags=0x%lx\n", (unsigned long)task_thread_info(tp)->flags);
 
+#ifdef CONFIG_NUMA
+	kdb_printf(
+	    "  mempolicy=0x%p il_next=%d\n",
+	    tp->mempolicy, tp->il_next);
+#endif
+
 out:
 	if (tp)
 	    kfree(tp);
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.


More information about the kdb mailing list