From: Yannick Brosseau Date: Wed, 27 Mar 2013 17:30:34 +0000 (-0400) Subject: Reactivate after_process_exit_hook X-Git-Tag: v1.5-beta1~21 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=31799520a31b5115bcf39b56619a08316c773f8f;p=lttv.git Reactivate after_process_exit_hook Signed-off-by: Yannick Brosseau --- diff --git a/lttv/modules/gui/controlflow/eventhooks.c b/lttv/modules/gui/controlflow/eventhooks.c index 81cfd9e6..f8e880f4 100644 --- a/lttv/modules/gui/controlflow/eventhooks.c +++ b/lttv/modules/gui/controlflow/eventhooks.c @@ -1131,7 +1131,7 @@ int after_process_fork_hook(void *hook_data, void *call_data) */ int after_process_exit_hook(void *hook_data, void *call_data) { -#if 0 + LttvEvent *event; event = (LttvEvent *) call_data; @@ -1163,19 +1163,19 @@ int after_process_exit_hook(void *hook_data, void *call_data) g_assert(process != NULL); guint pid = process->pid; - LttTime birth; - guint pl_height = 0; + //LttTime birth; + //guint pl_height = 0; HashedProcessData *hashed_process_data = NULL; ProcessList *process_list = control_flow_data->process_list; - birth = process->creation_time; + //birth = process->creation_time; if(likely(process_list->current_hash_data[trace_num][cpu] != NULL) ){ hashed_process_data = process_list->current_hash_data[trace_num][cpu]; } else { hashed_process_data = get_hashed_process_data(control_flow_data, - process, ppid, trace_num); + process, pid, trace_num); /* Set the current process */ @@ -1208,7 +1208,7 @@ int after_process_exit_hook(void *hook_data, void *call_data) hashed_process_data->x.middle_marked = FALSE; } } -#endif + return FALSE; }