X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Fcontrolflow%2Feventhooks.c;h=5066b524f7d877cf64b3c9aaee3e20e79d874800;hb=f044974e2d3eee32dfca594025cad1afc790c84f;hp=540ac9ae3d706813926ec8eb92cdaf37d72b2912;hpb=068572ab11edc234542b5535259eb43db02df7ee;p=lttv.git diff --git a/lttv/modules/gui/controlflow/eventhooks.c b/lttv/modules/gui/controlflow/eventhooks.c index 540ac9ae..5066b524 100644 --- a/lttv/modules/gui/controlflow/eventhooks.c +++ b/lttv/modules/gui/controlflow/eventhooks.c @@ -92,7 +92,6 @@ extern GSList *g_legend_list; static gint background_ready(void *hook_data, void *call_data) { ControlFlowData *control_flow_data = (ControlFlowData *)hook_data; - LttvTrace *trace = (LttvTrace*)call_data; control_flow_data->background_info_waiting--; @@ -219,7 +218,6 @@ h_guicontrolflow(LttvPlugin *plugin) int event_selected_hook(void *hook_data, void *call_data) { - ControlFlowData *control_flow_data = (ControlFlowData*) hook_data; guint *event_number = (guint*) call_data; g_debug("DEBUG : event selected by main window : %u", *event_number); @@ -247,6 +245,12 @@ static inline PropertiesLine prepare_s_e_line(LttvProcessState *process) prop_line.color = drawing_colors[COL_RUN_IRQ]; else if(process->state->t == LTTV_STATE_SOFT_IRQ) prop_line.color = drawing_colors[COL_RUN_SOFT_IRQ]; + else if(process->state->t == LTTV_STATE_MAYBE_SYSCALL) + prop_line.color = drawing_colors[COL_MODE_UNKNOWN]; + else if(process->state->t == LTTV_STATE_MAYBE_USER_MODE) + prop_line.color = drawing_colors[COL_MODE_UNKNOWN]; + else if(process->state->t == LTTV_STATE_MAYBE_TRAP) + prop_line.color = drawing_colors[COL_MODE_UNKNOWN]; else if(process->state->t == LTTV_STATE_MODE_UNKNOWN) prop_line.color = drawing_colors[COL_MODE_UNKNOWN]; else @@ -289,7 +293,6 @@ int before_trywakeup_hook(void *hook_data, void *call_data) LttvTracefileContext *tfc = (LttvTracefileContext *)call_data; - LttvTracefileState *tfs = (LttvTracefileState *)call_data; LttvTraceState *ts = (LttvTraceState *)tfc->t_context; LttEvent *e = ltt_tracefile_get_event(tfc->tf); @@ -314,7 +317,6 @@ int before_trywakeup_hook(void *hook_data, void *call_data) * draw items from the beginning of the read for it. If it is not * present, it's a new process and it was not present : it will * be added after the state update. TOCHECK: What does that last para mean? */ - guint cpu = tfs->cpu; guint trace_num = ts->parent.index; LttvProcessState *process = lttv_state_find_process(ts, woken_cpu, woken_pid); @@ -1435,8 +1437,6 @@ int before_process_release_hook(void *hook_data, void *call_data) LttvTracefileContext *tfc = (LttvTracefileContext *)call_data; - LttvTracefileState *tfs = (LttvTracefileState *)call_data; - LttvTraceState *ts = (LttvTraceState *)tfc->t_context; LttEvent *e; @@ -1465,7 +1465,6 @@ int before_process_release_hook(void *hook_data, void *call_data) if(process != NULL) { LttTime birth; - guint pl_height = 0; HashedProcessData *hashed_process_data = NULL; ProcessList *process_list = control_flow_data->process_list; @@ -1619,8 +1618,6 @@ int after_process_fork_hook(void *hook_data, void *call_data) LttvTracefileContext *tfc = (LttvTracefileContext *)call_data; - LttvTracefileState *tfs = (LttvTracefileState *)call_data; - LttvTraceState *ts = (LttvTraceState *)tfc->t_context; LttEvent *e; @@ -2036,8 +2033,6 @@ int after_event_enum_process_hook(void *hook_data, void *call_data) LttvTracefileContext *tfc = (LttvTracefileContext *)call_data; - LttvTracefileState *tfs = (LttvTracefileState *)call_data; - LttvTraceState *ts = (LttvTraceState *)tfc->t_context; guint first_cpu, nb_cpus, cpu; @@ -2051,8 +2046,6 @@ int after_event_enum_process_hook(void *hook_data, void *call_data) tfc->t_context->t,tfc,NULL,NULL)) return FALSE; - LttTime evtime = ltt_event_time(e); - /* Add process to process list (if not present) */ LttvProcessState *process_in; LttTime birth; @@ -2175,9 +2168,7 @@ gint update_time_window_hook(void *hook_data, void *call_data) /* Same scale (scrolling) */ g_info("scrolling"); LttTime *ns = &new_time_window->start_time; - LttTime *nw = &new_time_window->time_width; LttTime *os = &old_time_window->start_time; - LttTime *ow = &old_time_window->time_width; LttTime old_end = old_time_window->end_time; LttTime new_end = new_time_window->end_time; //if(nsdrawing; LttTime current_time = *((LttTime*)call_data); @@ -2591,7 +2581,6 @@ void draw_closure(gpointer key, gpointer value, gpointer user_data) /* Only draw for processes that are currently in the trace states */ - ProcessList *process_list = control_flow_data->process_list; #ifdef EXTRA_CHECK /* Should be alike when background info is ready */ if(control_flow_data->background_info_waiting==0) @@ -2696,7 +2685,6 @@ int before_chunk(void *hook_data, void *call_data) { EventsRequest *events_request = (EventsRequest*)hook_data; LttvTracesetState *tss = (LttvTracesetState*)call_data; - ControlFlowData *cfd = (ControlFlowData*)events_request->viewer_data; #if 0 /* Desactivate sort */ gtk_tree_sortable_set_sort_column_id( @@ -2847,10 +2835,6 @@ int before_statedump_end(void *hook_data, void *call_data) LttvTracefileContext *tfc = (LttvTracefileContext *)call_data; - LttvTracefileState *tfs = (LttvTracefileState *)call_data; - - LttvTraceState *ts = (LttvTraceState *)tfc->t_context; - LttvTracesetState *tss = (LttvTracesetState*)tfc->t_context->ts_context; ProcessList *process_list = control_flow_data->process_list;