From: Jack Lange Date: Tue, 1 Nov 2011 23:45:16 +0000 (-0400) Subject: added exit reporting to thread exit path X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=dbc56446bce2b00f5a5db246abb0677a55bdbcd1;p=palacios.git added exit reporting to thread exit path --- diff --git a/linux_module/palacios-stubs.c b/linux_module/palacios-stubs.c index c5b0ca0..12b4e45 100644 --- a/linux_module/palacios-stubs.c +++ b/linux_module/palacios-stubs.c @@ -158,6 +158,7 @@ palacios_xcall( struct lnx_thread_arg { int (*fn)(void * arg); void * arg; + char * name; }; static int lnx_thread_target(void * arg) { @@ -176,6 +177,9 @@ static int lnx_thread_target(void * arg) { kfree(thread_info); // handle cleanup + + printk("Palacios Thread (%s) EXITTING\n", thread_info->name); + do_exit(ret); return 0; // should not get here. @@ -194,6 +198,7 @@ palacios_start_kernel_thread( thread_info->fn = fn; thread_info->arg = arg; + thread_info->name = thread_name; return kthread_run( lnx_thread_target, thread_info, thread_name ); } @@ -212,6 +217,7 @@ palacios_start_thread_on_cpu(int cpu_id, thread_info->fn = fn; thread_info->arg = arg; + thread_info->name = thread_name; thread = kthread_create( lnx_thread_target, thread_info, thread_name );