From: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: <kvm@vger.kernel.org>
Subject: [PATCH] kvmtool: Set names for virtio-net-ctrl and term-poll threads
Date: Tue, 6 Jan 2015 14:07:26 +0100 [thread overview]
Message-ID: <20150106130726.GE4194@alberich> (raw)
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
reply other threads:[~2015-01-06 13:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150106130726.GE4194@alberich \
--to=andreas.herrmann@caviumnetworks.com \
--cc=kvm@vger.kernel.org \
--cc=penberg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox