Date: Mon, 22 Aug 2011 08:49:19 +1000 From: Ashley Williams <ashley.wil@gmail.com> To: freebsd-current@freebsd.org Subject: Re: dtrace walltimestamp Message-ID: <CAHTXkPJqApgXdgQUOkzgu-XCoJgXExLut83=u-1ncMgb_AoU-A@mail.gmail.com> In-Reply-To: <20110820230510.4363cefc@fabiankeil.de> References: <CAHTXkP%2BX=tR44QNMOzKq1bd0HhXfHoQSzOmK_CzpzksmPnT7Yg@mail.gmail.com> <20110820230510.4363cefc@fabiankeil.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 21, 2011 at 7:05 AM, Fabian Keil <freebsd-listen@fabiankeil.de> wrote: > > Ashley Williams <ashley.wil@gmail.com> wrote: > > > walltimestamp and timestamp don't appear to be right in BETA-1: > > > > > > # dtrace -qn 'syscall::exec*:return { printf("%Y > > %s\n",walltimestamp,curpsinfo->pr_psargs); }' > > 1970 Jan =A01 10:00:00 date > > 1970 Jan =A01 10:00:00 ping > > 1970 Jan =A01 10:00:00 ls > > I can reproduce this on amd64 with a recent HEAD, walltimestamp > is always 0, which together with the dmesg warnings seems to indicate > that it's not supported (yet). Bug report has been filed - thanks for testing. PR -=A0159612 for those interested. > > > # dtrace -qn 'syscall::exec*:return { printf("%Y > > %s\n",timestamp,curpsinfo->pr_psargs); }' > > 1970 Jan =A06 12:02:27 ping > > 1970 Jan =A06 12:02:29 ls > > 1970 Jan =A06 12:02:31 dtrace > > Note that the timestamp value is relative to the time > the system is booted (I think), and not to midnight, > January 1, 1970. > > Assuming your system has been running for a few days > and the offsets are right as well, the output seems fine. Thanks for that - I did some testing on Solaris 11 and it's evident I have misunderstood the usage of the timestamp function.=A0The output above, as you said, is definitely correct.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHTXkPJqApgXdgQUOkzgu-XCoJgXExLut83=u-1ncMgb_AoU-A>