Skip to contentSkip to conversation

kvmtool: Set names for virtio-net-ctrl and term-poll threads

PATCH New Andreas Herrmann 1 participant 1 message Jan 6, 2015 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvmtool: Set names for virtio-net-ctrl and term-poll threads

---
 tools/kvm/term.c       |    2 ++
 tools/kvm/virtio/net.c |    2 ++
 2 files changed, 4 insertions(+)
tools/kvm/term.c +2 -0
index 1b8131a..5754510 100644
@@ -104,6 +104,8 @@ static void *term_poll_thread_loop(void *param)
 
 	int i;
 
+	kvm__set_thread_name("term-poll");
+
 	for (i = 0; i < TERM_MAX_DEVS; i++) {
 		fds[i].fd = term_fds[i][TERM_FD_IN];
 		fds[i].events = POLLIN;
tools/kvm/virtio/net.c +2 -0
index ecdb94e..fed5095 100644
@@ -233,6 +233,8 @@ static void *virtio_net_ctrl_thread(void *p)
 	struct virtio_net_ctrl_hdr *ctrl;
 	virtio_net_ctrl_ack *ack;
 
+	kvm__set_thread_name("virtio-net-ctrl");
+
 	while (1) {
 		mutex_lock(&ndev->io_lock[id]);
 		if (!virt_queue__available(vq))
Signature · 1 line
1.7.9.5