make lttv more robust for kthread creation while state is incomplete
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 6 Apr 2007 03:14:56 +0000 (03:14 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 6 Apr 2007 03:14:56 +0000 (03:14 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2479 04897980-b3bd-0310-b5e0-8ef037075253

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.025895 seconds and 4 git commands to generate.