Skip to content

put xen console message into syslog

MINAI Katsuhito xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5put xen console message into syslogxen/common/sysctl.c xen/drivers/char/console.c xen/include/public/sysctl.h +1 more+40 -40 replies
2/5put xen console message into syslogtools/misc/Makefile tools/misc/xenlogd.c+309 -25 replies
3/5put xen console message into syslogtools/misc/xend+9 -20 replies
4/5put xen console message into syslogtools/libxc/xc_misc.c+30 -00 replies
5/5put xen console message into syslogtools/misc/xenlogd.README+13 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH] [0/5] put xen console message into syslog

Hi Keir,

I am sorry for the delayed response.
This is the patch reflecting yourI'd like to post the patch that reflects your advice in the mail below.

http://lists.xensource.com/archives/html/xen-devel/2006-07/msg00307.html

It becomes possible to put Xen console message into syslog and to know the time stamp.

Quoted 7 lines

Yes, that is an out-of-range input index gets 'rounded up' to the first in-range index. I think that seems a sensible method for bootstrapping a caller with no knowledge about current ring indexes -- they'd pass zero as input and then get back information about the first valid index. Another way would be to have an input flag or unique input index value that means 'just get me characters from the first valid index'. I somewhat prefer the method I already described though.

You are right.
If the index that specified by the caller program is older than the oldest readable character index, Xen returns the current oldest index in this patch.

The policy of the change is as follows.
1. The existing library interface is not changed
except "xen_sysctl_readconsole" structure.
2. A new library interface is designed to hand over the index managed by the program that reads console messages.
3. "xen_sysctl_readconsole" structure is changed as follows:
- The type of "clear" menber is moved to int32_t.
- "cindex" member is added.

Best Regards,
Katsuhito Minai