X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Feventhooks.c;h=662090105665f681173f946d79e576da3a5b106b;hb=5031bd1ded76ae8f28584dd4f5208c92cd563efd;hp=2b8dbdb8419b2e684588250beb831cba99ebf5de;hpb=ba6f11f1da1c46e16008a60c6a05e36943f8721d;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 2b8dbdb8..66209010 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c @@ -2163,14 +2163,7 @@ typedef struct _ClosureData { * * - For each CPU of the trace * - Search in trace states by PID and CPU key - * - For each ProcessState found - * - If state is not LTTV_STATE_WAIT - * - Then this process state is the current one for this PID. - * - Stop search. * - If no ProcessState found, return NULL. - * - If all ProcessState were in LTTV_STATE_WAIT state, return one of - * them arbitrarily. - * Than means state is LTTV_STATE_WAIT, CPU unknown. */ static LttvProcessState *find_process(LttvTraceState *tstate, guint pid) { @@ -2185,11 +2178,9 @@ static LttvProcessState *find_process(LttvTraceState *tstate, guint pid) LttvProcessState *state = lttv_state_find_process_from_trace(tstate, cpu_name, pid); - if(state != NULL) { real_state = state; - if(state->state->s != LTTV_STATE_WAIT) - break; + break; } } return real_state;