mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 05:02:24 +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:
parent
cb31381561
commit
73ab727434
@ -175,6 +175,7 @@ static void start_intr_storm_monitor(struct vmctx *ctx)
|
|||||||
printf("failed %s %d\n", __func__, __LINE__);
|
printf("failed %s %d\n", __func__, __LINE__);
|
||||||
intr_storm_monitor_pid = 0;
|
intr_storm_monitor_pid = 0;
|
||||||
}
|
}
|
||||||
|
pthread_setname_np(intr_storm_monitor_pid, "storm_monitor");
|
||||||
|
|
||||||
printf("start monitor interrupt data...\n");
|
printf("start monitor interrupt data...\n");
|
||||||
}
|
}
|
||||||
|
@ -504,6 +504,7 @@ int init_tpm_crb(struct vmctx *ctx)
|
|||||||
WPRINTF("Failed init request thread!\n");
|
WPRINTF("Failed init request thread!\n");
|
||||||
goto fail_thread;
|
goto fail_thread;
|
||||||
}
|
}
|
||||||
|
pthread_setname_np(tpm_vdev->request_thread, "tpm_crb_deli");
|
||||||
|
|
||||||
return 0;
|
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);
|
native_disconn_handle);
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
pthread_setname_np(g_ctx.thread, "usb_dev_sys");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
errout:
|
errout:
|
||||||
|
@ -340,6 +340,7 @@ static int create_new_server(const char *name)
|
|||||||
pdebug();
|
pdebug();
|
||||||
goto listen_err;
|
goto listen_err;
|
||||||
}
|
}
|
||||||
|
pthread_setname_np(mfd->listen_thread, "mngr_listen");
|
||||||
|
|
||||||
/* create a poll_thread */
|
/* create a poll_thread */
|
||||||
mfd->polling = 1;
|
mfd->polling = 1;
|
||||||
@ -348,6 +349,7 @@ static int create_new_server(const char *name)
|
|||||||
pdebug();
|
pdebug();
|
||||||
goto poll_err;
|
goto poll_err;
|
||||||
}
|
}
|
||||||
|
pthread_setname_np(mfd->poll_thread, "mngr_pull");
|
||||||
|
|
||||||
mfd->desc = mfd->fd;
|
mfd->desc = mfd->fd;
|
||||||
/* add this to mngr_fd_head */
|
/* add this to mngr_fd_head */
|
||||||
|
Loading…
Reference in New Issue
Block a user