Re: [RFC] Prepend timestamp in msgbuf

2011-10-17 Thread Alexander Best
On Fri Oct 14 11, Arnaud Lacombe wrote: Hi, On Fri, Oct 14, 2011 at 8:52 AM, Nali Toja nalit...@gmail.com wrote: Alexander Best arun...@freebsd.org writes: On Fri Oct 14 11, Poul-Henning Kamp wrote: In message 20111014085609.ga3...@freebsd.org, Alexander Best writes: 1) would it

Re: [RFC] Prepend timestamp in msgbuf

2011-10-17 Thread Arnaud Lacombe
Hi, On Mon, Oct 17, 2011 at 2:01 PM, Alexander Best arun...@freebsd.org wrote: On Fri Oct 14 11, Arnaud Lacombe wrote: Hi, On Fri, Oct 14, 2011 at 8:52 AM, Nali Toja nalit...@gmail.com wrote: Alexander Best arun...@freebsd.org writes: On Fri Oct 14 11, Poul-Henning Kamp wrote: In

Re: [RFC] Prepend timestamp in msgbuf

2011-10-17 Thread Garrett Cooper
On Mon, Oct 17, 2011 at 12:27 PM, Arnaud Lacombe lacom...@gmail.com wrote: Hi, On Mon, Oct 17, 2011 at 2:01 PM, Alexander Best arun...@freebsd.org wrote: On Fri Oct 14 11, Arnaud Lacombe wrote: Hi, On Fri, Oct 14, 2011 at 8:52 AM, Nali Toja nalit...@gmail.com wrote: Alexander Best

Re: [RFC] Prepend timestamp in msgbuf

2011-10-17 Thread Alexander Best
On Mon Oct 17 11, Arnaud Lacombe wrote: Hi, On Mon, Oct 17, 2011 at 2:01 PM, Alexander Best arun...@freebsd.org wrote: On Fri Oct 14 11, Arnaud Lacombe wrote: Hi, On Fri, Oct 14, 2011 at 8:52 AM, Nali Toja nalit...@gmail.com wrote: Alexander Best arun...@freebsd.org writes: On

Re: [RFC] Prepend timestamp in msgbuf

2011-10-17 Thread Arnaud Lacombe
Hi, On Mon, Oct 17, 2011 at 3:44 PM, Alexander Best arun...@freebsd.org wrote: On Mon Oct 17 11, Arnaud Lacombe wrote: Hi, On Mon, Oct 17, 2011 at 2:01 PM, Alexander Best arun...@freebsd.org wrote: On Fri Oct 14 11, Arnaud Lacombe wrote: Hi, On Fri, Oct 14, 2011 at 8:52 AM, Nali Toja

Re: [RFC] Prepend timestamp in msgbuf

2011-10-17 Thread Arnaud Lacombe
Hi, On Mon, Oct 17, 2011 at 3:38 PM, Garrett Cooper yaneg...@gmail.com wrote: On Mon, Oct 17, 2011 at 12:27 PM, Arnaud Lacombe lacom...@gmail.com wrote: Hi, On Mon, Oct 17, 2011 at 2:01 PM, Alexander Best arun...@freebsd.org wrote: On Fri Oct 14 11, Arnaud Lacombe wrote: [...] cc -c -O

Re: [RFC] Prepend timestamp in msgbuf

2011-10-17 Thread Alexander Best
On Mon Oct 17 11, Arnaud Lacombe wrote: Hi, On Mon, Oct 17, 2011 at 3:44 PM, Alexander Best arun...@freebsd.org wrote: On Mon Oct 17 11, Arnaud Lacombe wrote: Hi, On Mon, Oct 17, 2011 at 2:01 PM, Alexander Best arun...@freebsd.org wrote: On Fri Oct 14 11, Arnaud Lacombe wrote:

Re: [RFC] Prepend timestamp in msgbuf

2011-10-17 Thread Ed Schouten
* Garrett Cooper yaneg...@gmail.com, 20111017 21:38: time_t maps to int32_t on i386 and int64_t on amd64 (at least), so you should be able to use %zd in the format string as the type is variable width depending on the architecture. Yuck. Why not cast it to intmax_t and print it using %jd?

Re: [RFC] Prepend timestamp in msgbuf

2011-10-14 Thread Nikolay Denev
On Oct 13, 2011, at 9:40 PM, Arnaud Lacombe wrote: Hi, On Thu, Oct 13, 2011 at 2:00 PM, lacom...@gmail.com wrote: From: Arnaud Lacombe lacom...@gmail.com Hi folks, There is many case recently when I really wished timestamp were present in the post-mortem msgbuf. Such situation

Re: [RFC] Prepend timestamp in msgbuf

2011-10-14 Thread Alexander Best
On Fri Oct 14 11, Nikolay Denev wrote: On Oct 13, 2011, at 9:40 PM, Arnaud Lacombe wrote: Hi, On Thu, Oct 13, 2011 at 2:00 PM, lacom...@gmail.com wrote: From: Arnaud Lacombe lacom...@gmail.com Hi folks, There is many case recently when I really wished timestamp were

Re: [RFC] Prepend timestamp in msgbuf

2011-10-14 Thread Poul-Henning Kamp
In message 20111014085609.ga3...@freebsd.org, Alexander Best writes: 1) would it be possible to prepend those timestamps to the actual console output and not only to the output of demsg? maybe via a sysctl toggle? The kernel does not know enough about timezones to emit anything but UTC

Re: [RFC] Prepend timestamp in msgbuf

2011-10-14 Thread Alexander Best
On Fri Oct 14 11, Poul-Henning Kamp wrote: In message 20111014085609.ga3...@freebsd.org, Alexander Best writes: 1) would it be possible to prepend those timestamps to the actual console output and not only to the output of demsg? maybe via a sysctl toggle? The kernel does not know enough

Re: [RFC] Prepend timestamp in msgbuf

2011-10-14 Thread Alexander Best
On Fri Oct 14 11, Alexander Best wrote: On Fri Oct 14 11, Poul-Henning Kamp wrote: In message 20111014085609.ga3...@freebsd.org, Alexander Best writes: 1) would it be possible to prepend those timestamps to the actual console output and not only to the output of demsg? maybe via a sysctl

Re: [RFC] Prepend timestamp in msgbuf

2011-10-14 Thread Alexander Best
On Fri Oct 14 11, Alexander Best wrote: On Fri Oct 14 11, Poul-Henning Kamp wrote: In message 20111014085609.ga3...@freebsd.org, Alexander Best writes: 1) would it be possible to prepend those timestamps to the actual console output and not only to the output of demsg? maybe via a sysctl

Re: [RFC] Prepend timestamp in msgbuf

2011-10-14 Thread Nali Toja
Alexander Best arun...@freebsd.org writes: On Fri Oct 14 11, Poul-Henning Kamp wrote: In message 20111014085609.ga3...@freebsd.org, Alexander Best writes: 1) would it be possible to prepend those timestamps to the actual console output and not only to the output of demsg? maybe via a

Re: [RFC] Prepend timestamp in msgbuf

2011-10-14 Thread Arnaud Lacombe
Hi, On Fri, Oct 14, 2011 at 8:52 AM, Nali Toja nalit...@gmail.com wrote: Alexander Best arun...@freebsd.org writes: On Fri Oct 14 11, Poul-Henning Kamp wrote: In message 20111014085609.ga3...@freebsd.org, Alexander Best writes: 1) would it be possible to prepend those timestamps to the

[RFC] Prepend timestamp in msgbuf

2011-10-13 Thread lacombar
From: Arnaud Lacombe lacom...@gmail.com Hi folks, 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

Re: [RFC] Prepend timestamp in msgbuf

2011-10-13 Thread Arnaud Lacombe
Hi, On Thu, Oct 13, 2011 at 2:00 PM, lacom...@gmail.com wrote: From: Arnaud Lacombe lacom...@gmail.com Hi folks, 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

Re: [RFC] Prepend timestamp in msgbuf

2011-10-13 Thread Adrian Chadd
On 14 October 2011 02:40, Arnaud Lacombe lacom...@gmail.com wrote: Hi, On Thu, Oct 13, 2011 at 2:00 PM,  lacom...@gmail.com wrote: From: Arnaud Lacombe lacom...@gmail.com Hi folks, There is many case recently when I really wished timestamp were present in the post-mortem msgbuf. Such