kdb
[Top] [All Lists]

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

To: undisclosed-recipients:;
Subject: [PATCH 014/18] kdb-add-numa-support-to-task-cmd
From: quilt@xxxxxxxxxxxxxxxx
Date: Thu Jul 10 16:25:03 EDT 2008
Resent-date: Thu, 10 Jul 2008 16:53:38 -0400
Resent-from: joe.korty@xxxxxxxx
Resent-message-id: <200807102053.m6AKrcws031253@xxxxxxxxxxxxxx>
Resent-to: kdb@xxxxxxxxxxx
Sender: kdb-bounce@xxxxxxxxxxx
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@xxxxxxxx>
Signed-off-by: Joe Korty <joe.korty@xxxxxxxx>

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.
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 014/18] kdb-add-numa-support-to-task-cmd, quilt <=