WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Log qemu-dm's message with date, time and pid withou

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Log qemu-dm's message with date, time and pid without using an external tool.
From: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Date: Tue, 08 Jul 2008 17:53:14 +0900
Delivery-date: Tue, 08 Jul 2008 01:54:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
The qemu-dm's log message doesn't have date, time, and pid. It is
difficult to find out the message we want.

When we use guest domain for several months, date and time are necessary
to analyse the log file. pid is also useful for analysing the log file
with other component's log file.

This patch solves the problem without changing the codes which write
messages. Also without using an external tool.

qemu-dm creates a pipe and starts new thread for logging. qemu-dm
associates a stream with the pipe, and sets the stream to existing
"logfile" variable. When qemu-dm writes a message to "logfile", the
thread receives it through the pipe and outputs it with date, time
and pid to the actual log file.

When CONFIG_STUBDOM is defined, we can't use pthread function so far.
So I will remove
#ifndef CONFIG_STUBDOM
statement after pthread function is supported in stubdom.

Thanks.

Signed-off-by: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>

--
Yuji Shimada

Attachment: ioemu-logging-080708-05.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Log qemu-dm's message with date, time and pid without using an external tool., Yuji Shimada <=