From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>,
Wei Liu <wl@xen.org>, Juergen Gross <jgross@suse.com>,
Julien Grall <julien@xen.org>,
Anthony PERARD <anthony.perard@citrix.com>
Subject: [PATCH] xenstored: print domain id in traces
Date: Thu, 16 Nov 2023 20:56:45 +0000 [thread overview]
Message-ID: <20231116205613.3796068-1-volodymyr_babchuk@epam.com> (raw)
It is very helpful to see domain id why analyzing xenstored
traces. Especially when you are trying to understand which exactly
domain performs an action.
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
---
tools/xenstored/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/xenstored/core.c b/tools/xenstored/core.c
index edd07711db..311764eb0c 100644
--- a/tools/xenstored/core.c
+++ b/tools/xenstored/core.c
@@ -135,8 +135,8 @@ static void trace_io(const struct connection *conn,
now = time(NULL);
tm = localtime(&now);
- trace("io: %s %p %04d%02d%02d %02d:%02d:%02d %s (",
- out ? "OUT" : "IN", conn,
+ trace("io: %s %p (d%d) %04d%02d%02d %02d:%02d:%02d %s (",
+ out ? "OUT" : "IN", conn, conn->id,
tm->tm_year + 1900, tm->tm_mon + 1,
tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
sockmsg_string(data->hdr.msg.type));
--
2.42.0
next reply other threads:[~2023-11-16 20:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-16 20:56 Volodymyr Babchuk [this message]
2023-11-17 7:20 ` [PATCH] xenstored: print domain id in traces Juergen Gross
2023-11-17 10:06 ` Julien Grall
2023-11-20 12:28 ` Volodymyr Babchuk
2023-11-20 13:54 ` Julien Grall
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=20231116205613.3796068-1-volodymyr_babchuk@epam.com \
--to=volodymyr_babchuk@epam.com \
--cc=anthony.perard@citrix.com \
--cc=jgross@suse.com \
--cc=julien@xen.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.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 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.