Hi folks,
You'll find hereafter a new version of the patch to add timestamp to msgbuf.
Broken out patches are available in the git repository at:
git://github.com/lacombar/freebsd.git master/topic/msgbuf-timestamp
Diff since RFC:
- build should be fixed on LP64
- micro-second field is now
Hi Arnaud!
* Arnaud Lacombe lacom...@gmail.com, 20111017 22:41:
+ buf[0] = '\0';
+ getnanouptime(ts);
+ err = snprintf(buf, sizeof buf, [%zd.%.6ld] ,
+ ts.tv_sec, ts.tv_nsec / 1000);
What's the use of buf[0] = '\0'? snprintf() will
Ah, missed something.
+ getnanouptime(ts);
+ err = snprintf(buf, sizeof buf, [%zd.%.6ld] ,
+ ts.tv_sec, ts.tv_nsec / 1000);
It seems we also have a getmicrouptime(), which returns a struct
timeval. Also a more general question: is it actually safe to
Hi,
On Mon, Oct 17, 2011 at 6:19 PM, Ed Schouten e...@80386.nl wrote:
Hi Arnaud!
* Arnaud Lacombe lacom...@gmail.com, 20111017 22:41:
+ buf[0] = '\0';
+ getnanouptime(ts);
+ err = snprintf(buf, sizeof buf, [%zd.%.6ld] ,
+ ts.tv_sec,
Hi,
On Mon, Oct 17, 2011 at 6:22 PM, Ed Schouten e...@80386.nl wrote:
Ah, missed something.
+ getnanouptime(ts);
+ err = snprintf(buf, sizeof buf, [%zd.%.6ld] ,
+ ts.tv_sec, ts.tv_nsec / 1000);
It seems we also have a getmicrouptime(), which returns
On Mon, Oct 17, 2011 at 5:18 PM, Arnaud Lacombe lacom...@gmail.com wrote:
Hi,
On Mon, Oct 17, 2011 at 6:22 PM, Ed Schouten e...@80386.nl wrote:
Ah, missed something.
+ getnanouptime(ts);
+ err = snprintf(buf, sizeof buf, [%zd.%.6ld] ,
+ ts.tv_sec,