diff mbox series

[7/7] examples/vhost_blk: support set ctrl worker thread name

Message ID 1618051221-19962-8-git-send-email-humin29@huawei.com (mailing list archive)
State Superseded
Delegated to: David Marchand
Headers show
Series support set thread name | expand

Checks

Context Check Description
ci/intel-Testing success Testing PASS
ci/iol-testing fail Testing issues
ci/iol-abi-testing success Testing PASS
ci/github-robot success github build: passed
ci/travis-robot success travis build: passed
ci/Intel-compilation fail Compilation issues
ci/checkpatch success coding style OK

Commit Message

Min Hu (Connor) April 10, 2021, 10:40 a.m. UTC
From: Chengwen Feng <fengchengwen@huawei.com>

This patch supports set ctrl worker thread name which is helpful for
debugging.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
---
 examples/vhost_blk/vhost_blk.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;