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:
Yin Fengwei
2018-12-11 14:29:31 +08:00
committed by wenlingz
parent cb31381561
commit 73ab727434
4 changed files with 6 additions and 0 deletions

View File

@@ -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;