From: pmf Date: Tue, 31 Jul 2007 19:46:14 +0000 (+0000) Subject: cleanups X-Git-Tag: v0.12.20~925 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=201fcc156aeee6cf7c1283c0163e47cb209cb78e;p=lttv.git cleanups git-svn-id: http://ltt.polymtl.ca/svn@2564 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c b/ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c index 32631225..cf4f6893 100644 --- a/ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/resourceview/eventhooks.c @@ -321,10 +321,7 @@ static void cpu_set_line_color(PropertiesLine *prop_line, LttvCPUState *s) { GQuark present_state = ((GQuark*)s->mode_stack->data)[s->mode_stack->len-1]; - if(present_state == LTTV_CPU_UNKNOWN) { - prop_line->color = drawing_colors_cpu[COL_CPU_UNKNOWN]; - } - else if(present_state == LTTV_CPU_IDLE) { + if(present_state == LTTV_CPU_IDLE) { prop_line->color = drawing_colors_cpu[COL_CPU_IDLE]; } else if(present_state == LTTV_CPU_BUSY) { @@ -335,6 +332,8 @@ static void cpu_set_line_color(PropertiesLine *prop_line, LttvCPUState *s) } else if(present_state == LTTV_CPU_TRAP) { prop_line->color = drawing_colors_cpu[COL_CPU_TRAP]; + } else { + prop_line->color = drawing_colors_cpu[COL_CPU_UNKNOWN]; } } @@ -372,14 +371,6 @@ static void irq_set_line_color(PropertiesLine *prop_line, LttvIRQState *s) int before_schedchange_hook(void *hook_data, void *call_data) -{ - before_schedchange_hook_cpu(hook_data, call_data); -// before_schedchange_hook_irq(hook_data, call_data); - - return 0; -} - -int before_schedchange_hook_cpu(void *hook_data, void *call_data) { LttvTraceHookByFacility *thf = (LttvTraceHookByFacility*)hook_data; EventsRequest *events_request = (EventsRequest*)thf->hook_data;