kernel thread stack size = 1
[lttv.git] / ltt / branches / poly / lttv / lttv / state.c
index 405f3d0214ccb9b590eadd0db98b5cd175da1dba..98c4c3322cf94d31274d38015f41e0a4f9f59fa3 100644 (file)
@@ -2153,6 +2153,7 @@ static gboolean schedchange(void *hook_data, void *call_data)
         process->state->t = LTTV_STATE_SYSCALL;
         process->state->s = LTTV_STATE_WAIT;
         process->state->change = s->parent.timestamp;
+        process->state->entry = s->parent.timestamp;
       }
     } else {
       if(unlikely(process->state->s == LTTV_STATE_EXIT)) {
@@ -2273,7 +2274,10 @@ static gboolean process_kernel_thread(void *hook_data, void *call_data)
   s->parent.target_pid = pid;
 
   process = lttv_state_find_process(ts, ANY_CPU, pid);
-  es = &g_array_index(process->execution_stack, LttvExecutionState, 0);
+  process->execution_stack = 
+    g_array_set_size(process->execution_stack, 1);
+  es = process->state =
+    &g_array_index(process->execution_stack, LttvExecutionState, 0);
   es->t = LTTV_STATE_SYSCALL;
   process->type = LTTV_STATE_KERNEL_THREAD;
 
This page took 0.022681 seconds and 4 git commands to generate.