make lttv more robust for kthread creation while state is incomplete
[lttv.git] / ltt / branches / poly / lttv / lttv / state.c
index 9f47363ed5f0035c0954a0d3c8dbfe067385f80a..567843002704ffa92605772b2bc466f7c68f289f 100644 (file)
@@ -2271,10 +2271,11 @@ static gboolean process_kernel_thread(void *hook_data, void *call_data)
   LttvExecutionState *es;
 
   /* PID */
-  pid = ltt_event_get_long_unsigned(e, thf->f1);
+  pid = (guint)ltt_event_get_long_unsigned(e, thf->f1);
   s->parent.target_pid = pid;
 
-  process = lttv_state_find_process(ts, ANY_CPU, pid);
+  process = lttv_state_find_process_or_create(ts, ANY_CPU, pid,
+               &ltt_time_zero);
   process->execution_stack = 
     g_array_set_size(process->execution_stack, 1);
   es = process->state =
This page took 0.029232 seconds and 4 git commands to generate.