From: Chengwen Feng <fengcheng...@huawei.com> This patch supports set ctrl worker thread name which is helpful for debugging.
Signed-off-by: Chengwen Feng <fengcheng...@huawei.com> Signed-off-by: Min Hu (Connor) <humi...@huawei.com> --- examples/vhost_blk/vhost_blk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/vhost_blk.c index 5c64071..4d24dca 100644 --- a/examples/vhost_blk/vhost_blk.c +++ b/examples/vhost_blk/vhost_blk.c @@ -689,6 +689,7 @@ new_device(int vid) fprintf(stderr, "Worker Thread Started Failed\n"); return -1; } + rte_thread_setname(tid, "vhostblk-ctrlr"); /* device has been started */ ctrlr->started = 1; -- 2.7.4