[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] xenstored: print domain id in traces



commit 97f8555acbf3da013ed713ca0bbe739d41c48da9
Author:     Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
AuthorDate: Thu Nov 16 20:56:45 2023 +0000
Commit:     Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Fri Nov 17 18:34:19 2023 +0000

    xenstored: print domain id in traces
    
    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@xxxxxxxx>
    Reviewed-by: Juergen Gross <jgross@xxxxxxxx>
    [jgrall: Use %u rather than %d]
    Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
---
 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));
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.