X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Feventhooks.c;h=574538100d4218283874037a504ec43b05a8fa6c;hb=ae71a09a1ce0b18713df2069dae87e4451cbc7e2;hp=089cd5e9d17b415b37b1502cbb70c6c2f5d9ddc9;hpb=4a24fa1f30c23e86e928d2bdb6835da895cb3681;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c index 089cd5e9..57453810 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c @@ -88,7 +88,7 @@ extern GSList *g_legend_list; * Wait for all the awaited computations to be over. */ -gint background_ready(void *hook_data, void *call_data) +static gint background_ready(void *hook_data, void *call_data) { ControlFlowData *control_flow_data = (ControlFlowData *)hook_data; LttvTrace *trace = (LttvTrace*)call_data; @@ -113,7 +113,7 @@ gint background_ready(void *hook_data, void *call_data) /* Request background computation. Verify if it is in progress or ready first. * Only for each trace in the tab's traceset. */ -void request_background_data(ControlFlowData *control_flow_data) +static void request_background_data(ControlFlowData *control_flow_data) { LttvTracesetContext * tsc = lttvwindow_get_traceset_context(control_flow_data->tab); @@ -534,7 +534,7 @@ int before_schedchange_hook(void *hook_data, void *call_data) hashed_process_data = processlist_get_process_data(process_list, pid_in, - process->cpu, + ltt_tracefile_num(tfc->tf), &birth, tfc->t_context->index); if(hashed_process_data == NULL) @@ -546,7 +546,7 @@ int before_schedchange_hook(void *hook_data, void *call_data) processlist_add(process_list, drawing, pid_in, - process->cpu, + ltt_tracefile_num(tfc->tf), process->ppid, &birth, tfc->t_context->index, @@ -668,7 +668,8 @@ int before_schedchange_hook(void *hook_data, void *call_data) &hashed_process_data->next_good_time); } } - } + } else + g_warning("Cannot find pin_in in schedchange %u", pid_in); } return 0;