* [PATCH] kvmtool: Set names for virtio-net-ctrl and term-poll threads
@ 2015-01-06 13:07 Andreas Herrmann
0 siblings, 0 replies; only message in thread
From: Andreas Herrmann @ 2015-01-06 13:07 UTC (permalink / raw)
To: Pekka Enberg; +Cc: kvm
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
---
tools/kvm/term.c | 2 ++
tools/kvm/virtio/net.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/tools/kvm/term.c b/tools/kvm/term.c
index 1b8131a..5754510 100644
--- a/tools/kvm/term.c
+++ b/tools/kvm/term.c
@@ -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;
diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c
index ecdb94e..fed5095 100644
--- a/tools/kvm/virtio/net.c
+++ b/tools/kvm/virtio/net.c
@@ -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))
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-06 13:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-06 13:07 [PATCH] kvmtool: Set names for virtio-net-ctrl and term-poll threads Andreas Herrmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.