* [PATCH] xenstored: print domain id in traces
@ 2023-11-16 20:56 Volodymyr Babchuk
2023-11-17 7:20 ` Juergen Gross
2023-11-17 10:06 ` Julien Grall
0 siblings, 2 replies; 5+ messages in thread
From: Volodymyr Babchuk @ 2023-11-16 20:56 UTC (permalink / raw)
To: xen-devel@lists.xenproject.org
Cc: Volodymyr Babchuk, Wei Liu, Juergen Gross, Julien Grall,
Anthony PERARD
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] xenstored: print domain id in traces
2023-11-16 20:56 [PATCH] xenstored: print domain id in traces Volodymyr Babchuk
@ 2023-11-17 7:20 ` Juergen Gross
2023-11-17 10:06 ` Julien Grall
1 sibling, 0 replies; 5+ messages in thread
From: Juergen Gross @ 2023-11-17 7:20 UTC (permalink / raw)
To: Volodymyr Babchuk, xen-devel@lists.xenproject.org
Cc: Wei Liu, Julien Grall, Anthony PERARD
[-- Attachment #1.1.1: Type: text/plain, Size: 340 bytes --]
On 16.11.23 21:56, Volodymyr Babchuk wrote:
> 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>
Reviewed-by: Juergen Gross <jgross@suse.com>
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] xenstored: print domain id in traces
2023-11-16 20:56 [PATCH] xenstored: print domain id in traces Volodymyr Babchuk
2023-11-17 7:20 ` Juergen Gross
@ 2023-11-17 10:06 ` Julien Grall
2023-11-20 12:28 ` Volodymyr Babchuk
1 sibling, 1 reply; 5+ messages in thread
From: Julien Grall @ 2023-11-17 10:06 UTC (permalink / raw)
To: Volodymyr Babchuk, xen-devel@lists.xenproject.org
Cc: Wei Liu, Juergen Gross, Anthony PERARD
Hi Volodymyr,
On 16/11/2023 20:56, Volodymyr Babchuk wrote:
> 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 (",
AFAICT conn->id is an unsigned int. So it should be d%u. This can be
dealt on commit.
Cheers,
--
Julien Grall
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] xenstored: print domain id in traces
2023-11-17 10:06 ` Julien Grall
@ 2023-11-20 12:28 ` Volodymyr Babchuk
2023-11-20 13:54 ` Julien Grall
0 siblings, 1 reply; 5+ messages in thread
From: Volodymyr Babchuk @ 2023-11-20 12:28 UTC (permalink / raw)
To: Julien Grall
Cc: xen-devel@lists.xenproject.org, Wei Liu, Juergen Gross,
Anthony PERARD
Hi Julien,
Julien Grall <julien@xen.org> writes:
> Hi Volodymyr,
>
> On 16/11/2023 20:56, Volodymyr Babchuk wrote:
>> 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 (",
>
> AFAICT conn->id is an unsigned int. So it should be d%u. This can be
> dealt on commit.
>
Yes, I missed this part. I have noticed that you already committed this
change and even mentioned %u in the commit message. But in the diff [1] I am
seeing %d. Should I sent another another patch that fixes this?
[1] https://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=97f8555acbf3da013ed713ca0bbe739d41c48da9
--
WBR, Volodymyr
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] xenstored: print domain id in traces
2023-11-20 12:28 ` Volodymyr Babchuk
@ 2023-11-20 13:54 ` Julien Grall
0 siblings, 0 replies; 5+ messages in thread
From: Julien Grall @ 2023-11-20 13:54 UTC (permalink / raw)
To: Volodymyr Babchuk
Cc: xen-devel@lists.xenproject.org, Wei Liu, Juergen Gross,
Anthony PERARD
Hi Volodymyr,
On 20/11/2023 12:28, Volodymyr Babchuk wrote:
> Julien Grall <julien@xen.org> writes:
>
>> Hi Volodymyr,
>>
>> On 16/11/2023 20:56, Volodymyr Babchuk wrote:
>>> 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 (",
>>
>> AFAICT conn->id is an unsigned int. So it should be d%u. This can be
>> dealt on commit.
>>
>
> Yes, I missed this part. I have noticed that you already committed this
> change and even mentioned %u in the commit message. But in the diff [1] I am
> seeing %d. Should I sent another another patch that fixes this?
:(. I keep forgetting that "git commit --amend" only ammend the commit
message. If you don't mind, can you send a follow-up?
Sorry for the inconvenience.
Cheers,
--
Julien Grall
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-11-20 13:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-16 20:56 [PATCH] xenstored: print domain id in traces Volodymyr Babchuk
2023-11-17 7:20 ` Juergen Gross
2023-11-17 10:06 ` Julien Grall
2023-11-20 12:28 ` Volodymyr Babchuk
2023-11-20 13:54 ` Julien Grall
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.