[PATCH 014/18] kdb-add-numa-support-to-task-cmd
[email protected] Thu, 10 Jul 2008 20:57:06 +0000 (UTC)
| Newsgroups | gmane.linux.kernel.debugging |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> Signed-off-by: Joe Korty <[email protected]> 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.