Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jun 2008 15:13:18 +0300
From:      "Niki Denev" <nike_d@cytexbg.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: timestamping for kernel messages (like Solaris and Linux)
Message-ID:  <2e77fc10806080513wa73444ep50162e1d5f45f15@mail.gmail.com>
In-Reply-To: <20080608115919.GE67629@server.vk2pj.dyndns.org>
References:  <2e77fc10806080024s19951abbnf31913d5579f4535@mail.gmail.com> <20080608115919.GE67629@server.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 8, 2008 at 2:59 PM, Peter Jeremy
<peterjeremy@optushome.com.au> wrote:
> On 2008-Jun-08 10:24:53 +0300, Niki Denev <ndenev@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e77fc10806080513wa73444ep50162e1d5f45f15>