mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-03 09:55:01 +00:00
dm: set correct thread name
When issue happen, we could identify which thread is impacted. This could help stability issue debugging. Tracked-On: #2037 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -340,6 +340,7 @@ static int create_new_server(const char *name)
|
||||
pdebug();
|
||||
goto listen_err;
|
||||
}
|
||||
pthread_setname_np(mfd->listen_thread, "mngr_listen");
|
||||
|
||||
/* create a poll_thread */
|
||||
mfd->polling = 1;
|
||||
@@ -348,6 +349,7 @@ static int create_new_server(const char *name)
|
||||
pdebug();
|
||||
goto poll_err;
|
||||
}
|
||||
pthread_setname_np(mfd->poll_thread, "mngr_pull");
|
||||
|
||||
mfd->desc = mfd->fd;
|
||||
/* add this to mngr_fd_head */
|
||||
|
Reference in New Issue
Block a user