mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 09:41:30 +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:
@@ -504,6 +504,7 @@ int init_tpm_crb(struct vmctx *ctx)
|
||||
WPRINTF("Failed init request thread!\n");
|
||||
goto fail_thread;
|
||||
}
|
||||
pthread_setname_np(tpm_vdev->request_thread, "tpm_crb_deli");
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -1250,6 +1250,8 @@ usb_dev_sys_init(usb_dev_sys_cb conn_cb, usb_dev_sys_cb disconn_cb,
|
||||
native_disconn_handle);
|
||||
goto errout;
|
||||
}
|
||||
pthread_setname_np(g_ctx.thread, "usb_dev_sys");
|
||||
|
||||
return 0;
|
||||
|
||||
errout:
|
||||
|
||||
Reference in New Issue
Block a user