start adding IRQ mode for cpu resource
[lttv.git] / ltt / branches / poly / lttv / modules / gui / resourceview / drawing.c
index 927ef90a364069c33516b57fb82cc437953d5e9d..30a6f8eb3f7bc455ba192d6dcfb79753fd5edb3a 100644 (file)
@@ -86,9 +86,10 @@ GdkColor drawing_colors[NUM_COLORS] =
 
 GdkColor drawing_colors_cpu[NUM_COLORS_CPU] =
 { /* Pixel, R, G, B */
-  { 0, 0xBBBB, 0xBBBB, 0xBBBB }, /* COL_IDLE */
-  { 0, 0xFFFF, 0xFFFF, 0xFFFF }, /* COL_BUSY */
-  { 0, 0xFFFF, 0x0000, 0x0000 }, /* COL_UNKNOWN */
+  { 0, 0xFFFF, 0x0000, 0x0000 }, /* COL_CPU_UNKNOWN */
+  { 0, 0xBBBB, 0xBBBB, 0xBBBB }, /* COL_CPU_IDLE */
+  { 0, 0xFFFF, 0xFFFF, 0xFFFF }, /* COL_CPU_BUSY */
+  { 0, 0xFFFF, 0x0000, 0x0000 }, /* COL_CPU_IRQ */
 };
 
 
@@ -250,21 +251,21 @@ void drawing_data_request(Drawing_t *drawing,
 //          &g_array_index(hooks, LttvTraceHook, before_hn++));
 //      if(ret) before_hn--;
 //
-//      ret = lttv_trace_find_hook(ts->parent.t,
-//          LTT_FACILITY_KERNEL, LTT_EVENT_IRQ_ENTRY,
-//          LTT_FIELD_IRQ_ID, 0, 0,
-//          before_execmode_hook,
-//          events_request,
-//          &g_array_index(hooks, LttvTraceHook, before_hn++));
-//      if(ret) before_hn--;
-//
-//      ret = lttv_trace_find_hook(ts->parent.t,
-//          LTT_FACILITY_KERNEL, LTT_EVENT_IRQ_EXIT,
-//          0, 0, 0, 
-//          before_execmode_hook,
-//          events_request,
-//          &g_array_index(hooks, LttvTraceHook, before_hn++));
-//      if(ret) before_hn--;
+      ret = lttv_trace_find_hook(ts->parent.t,
+          LTT_FACILITY_KERNEL, LTT_EVENT_IRQ_ENTRY,
+          LTT_FIELD_IRQ_ID, 0, 0,
+          before_execmode_hook,
+          events_request,
+          &g_array_index(hooks, LttvTraceHook, before_hn++));
+      if(ret) before_hn--;
+
+      ret = lttv_trace_find_hook(ts->parent.t,
+          LTT_FACILITY_KERNEL, LTT_EVENT_IRQ_EXIT,
+          0, 0, 0, 
+          before_execmode_hook,
+          events_request,
+          &g_array_index(hooks, LttvTraceHook, before_hn++));
+      if(ret) before_hn--;
 //
 //      ret = lttv_trace_find_hook(ts->parent.t,
 //          LTT_FACILITY_KERNEL, LTT_EVENT_SOFT_IRQ_ENTRY,
This page took 0.024239 seconds and 4 git commands to generate.