diff --git a/devicemodel/core/monitor.c b/devicemodel/core/monitor.c index f596781f4..a69486a06 100644 --- a/devicemodel/core/monitor.c +++ b/devicemodel/core/monitor.c @@ -175,6 +175,7 @@ static void start_intr_storm_monitor(struct vmctx *ctx) printf("failed %s %d\n", __func__, __LINE__); intr_storm_monitor_pid = 0; } + pthread_setname_np(intr_storm_monitor_pid, "storm_monitor"); printf("start monitor interrupt data...\n"); } diff --git a/devicemodel/hw/platform/tpm/tpm_crb.c b/devicemodel/hw/platform/tpm/tpm_crb.c index ecdd6686b..7c7241697 100644 --- a/devicemodel/hw/platform/tpm/tpm_crb.c +++ b/devicemodel/hw/platform/tpm/tpm_crb.c @@ -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; diff --git a/devicemodel/hw/platform/usb_pmapper.c b/devicemodel/hw/platform/usb_pmapper.c index 99dff9cc3..cf15d83d9 100755 --- a/devicemodel/hw/platform/usb_pmapper.c +++ b/devicemodel/hw/platform/usb_pmapper.c @@ -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: diff --git a/tools/acrn-manager/acrn_mngr.c b/tools/acrn-manager/acrn_mngr.c index 1a7364a0a..ee5e1bfda 100644 --- a/tools/acrn-manager/acrn_mngr.c +++ b/tools/acrn-manager/acrn_mngr.c @@ -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 */