changeset 1150:d014639cbdc7 draft

add test code.
author kaito@dolphins
date Thu, 03 Mar 2011 19:55:34 +0900
parents bccd192a43b2
children 6b3eb488614b
files TaskManager/Cell/CellTaskManagerImpl.cc TaskManager/Fifo/FifoTaskManagerImpl.cc
diffstat 2 files changed, 20 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc	Wed Feb 23 03:55:54 2011 +0900
+++ b/TaskManager/Cell/CellTaskManagerImpl.cc	Thu Mar 03 19:55:34 2011 +0900
@@ -261,6 +261,16 @@
 #else
 	    // 終了したタスク(PPEにあるのでアドレス)
 	    HTaskPtr task = (HTaskPtr)data;
+#ifdef 0
+	    if (task->cpu_type != CPU_SPE) {
+		const char *name = get_task_name(task);
+		if (name != NULL) {
+		  printf("[SPE] ");
+		  printf("Task id : %d, ", task->command);
+		  printf("Task name : %s\n", name);
+		}
+	    }
+#endif
 #ifndef NOT_CHECK
 	
 
--- a/TaskManager/Fifo/FifoTaskManagerImpl.cc	Wed Feb 23 03:55:54 2011 +0900
+++ b/TaskManager/Fifo/FifoTaskManagerImpl.cc	Thu Mar 03 19:55:34 2011 +0900
@@ -228,7 +228,16 @@
             check_task_list_finish(schedTaskManager, list, waitTaskQueue);
 #else
             HTaskPtr task = (HTaskPtr)data;
-	    
+#ifdef 0
+	    if (task->cpu_type != CPU_PPE) {
+		const char *name = get_task_name(task);
+		if (name != NULL) {
+		  printf("[PPE] ");
+		  printf("Task id : %d, ", task->command);
+		  printf("Task name : %s\n", name);
+		}
+	    }
+#endif
 #ifndef NOT_CHECK
 	    
 	    if (task != NULL) {