Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Oct 2011 09:57:56 +0300
From:      Nikolay Denev <ndenev@gmail.com>
To:        Arnaud Lacombe <lacombar@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: [RFC] Prepend timestamp in msgbuf
Message-ID:  <45812C38-5FD2-43C4-825E-94B0E03A7AA6@gmail.com>
In-Reply-To: <CACqU3MWxn0rvbL5d7Vot35A%2BpfMDMEQdqmDgAaUABwzTxoH41Q@mail.gmail.com>
References:  <4e972734.52b1e00a.15ed.ffffd873@mx.google.com> <CACqU3MWxn0rvbL5d7Vot35A%2BpfMDMEQdqmDgAaUABwzTxoH41Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Oct 13, 2011, at 9:40 PM, Arnaud Lacombe wrote:

> Hi,
>=20
> On Thu, Oct 13, 2011 at 2:00 PM,  <lacombar@gmail.com> wrote:
>> From: Arnaud Lacombe <lacombar@gmail.com>
>>=20
>> Hi folks,
>>=20
>> There is many case recently when I really wished timestamp were =
present in the
>> post-mortem msgbuf. Such situation could be when userland application =
segfault
>> potentially triggering a panic/crash, or have information about the =
time-wise
>> location of a given message (kernel or userland).
>>=20
>> Attached patch is available in the git repository at:
>>  git://github.com/lacombar/freebsd.git master/topic/msgbuf-timestamp
>>=20
>> Arnaud Lacombe (3):
>>      msgbuf(4): convert `msg_needsnl' to a bit flag
>>      msgbuf(4): add logic to prepend timestamp on new line
>>      msgbuf(4): add a sysctl to toggle timestamp prepend
>>=20
>>  sys/kern/subr_msgbuf.c |   53 =
++++++++++++++++++++++++++++++++++++++++-------
>>  sys/sys/msgbuf.h       |    4 ++-
>>  2 files changed, 48 insertions(+), 9 deletions(-)
>>=20

Cool!

I've dreamt for something like this for a long time, it can be very =
useful.

Regards,
Nikolay




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45812C38-5FD2-43C4-825E-94B0E03A7AA6>