Re: timestamping for kernel messages (like Solaris and Linux)

2008-06-09 Thread Ivan Voras
Niki Denev wrote:

 I'm looking at a Linux machine right now, and it looks like
 they use the time since boot (actually uptime) for the timestamps.

Debian or Ubuntu, right? I think RedHat uses absolute time (hh:mm:ss).

 Anyways, does this sound like something that FreeBSD should have?
 It could be useful in some situations, like embedded applications
 without running syslog,
 full /var partitions, etc.

If it's only available when explicitly turned on, sure.



signature.asc
Description: OpenPGP digital signature


Re: timestamping for kernel messages (like Solaris and Linux)

2008-06-08 Thread Peter Jeremy
On 2008-Jun-08 10:24:53 +0300, Niki Denev [EMAIL PROTECTED] wrote:
Has anyone thought about implementing an option
to prepend all kernel console messages with timestamps,
like Linux and Solaris do?

The only time I've seen Solaris do this is when the console message
is syslog'd - which FreeBSD also does.

Is it just a matter of hacking up the kernel printf() implementation?

Pretty much.

Any possible caveats?

The kernel works in UTC only and has only a very restricted ability
to translate between epoch seconds and a human-readable date/time
(it's currently only used to talk to the RTC).

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.


pgpvxVbhYKCp4.pgp
Description: PGP signature


Re: timestamping for kernel messages (like Solaris and Linux)

2008-06-08 Thread Niki Denev
On Sun, Jun 8, 2008 at 2:59 PM, Peter Jeremy
[EMAIL PROTECTED] wrote:
 On 2008-Jun-08 10:24:53 +0300, Niki Denev [EMAIL PROTECTED] wrote:
Has anyone thought about implementing an option
to prepend all kernel console messages with timestamps,
like Linux and Solaris do?

 The only time I've seen Solaris do this is when the console message
 is syslog'd - which FreeBSD also does.

Is it just a matter of hacking up the kernel printf() implementation?

 Pretty much.

Any possible caveats?

 The kernel works in UTC only and has only a very restricted ability
 to translate between epoch seconds and a human-readable date/time
 (it's currently only used to talk to the RTC).


I'm looking at a Linux machine right now, and it looks like
they use the time since boot (actually uptime) for the timestamps.

Anyways, does this sound like something that FreeBSD should have?
It could be useful in some situations, like embedded applications
without running syslog,
full /var partitions, etc.

--
Niki
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]