X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Fstate.c;h=98c4c3322cf94d31274d38015f41e0a4f9f59fa3;hb=3a686a8b8e3a4808c8c905168a33b461bc740a6b;hp=92d5af7267f6c15f52189f2e7aa9fe621717cbaf;hpb=d3670e3d5ce02f94aa811b450538d8d3922566c5;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index 92d5af72..98c4c332 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -2274,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;