-/* find_process
- * Input : A trace and a PID.
- *
- * - For each CPU of the trace
- * - Search in trace states by PID and CPU key
- * - If no ProcessState found, return NULL.
- */
-static LttvProcessState *find_process(LttvTraceState *tstate, guint pid)
-{
- guint cpu_num = ltt_trace_per_cpu_tracefile_number(tstate->parent.t);
- GQuark cpu_name;
- guint i;
-
- LttvProcessState *real_state = NULL;
-
- for(i=0;i<cpu_num;i++) {
- cpu_name = ((LttvTracefileState*)tstate->parent.tracefiles[i])->cpu_name;
- LttvProcessState *state = lttv_state_find_process_from_trace(tstate,
- cpu_name,
- pid);
- if(state != NULL) {
- real_state = state;
- break;
- }
- }
- return real_state;
-}
-
-