From owner-freebsd-current@FreeBSD.ORG Sun Aug 21 22:49:20 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9974B1065673 for ; Sun, 21 Aug 2011 22:49:20 +0000 (UTC) (envelope-from ashley.wil@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5A4CE8FC12 for ; Sun, 21 Aug 2011 22:49:19 +0000 (UTC) Received: by vxh11 with SMTP id 11so4889002vxh.13 for ; Sun, 21 Aug 2011 15:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=KdCahWVEny4eWWjPGmxLa2JQBePFaHX8aSu0Q1/NOgo=; b=G2quUpiNVwuEoFJwWUdb3Tah3zPk+t6CSXOFL6RIh/Df72Sao6e7Q179jbWanJ/qkE wFxkBN5dUS1141OBC48xYggLeoLGfMTdrHYCrXJKiXXi00wZGPVvLwo0XpevqfaXfVR3 c7F1bT/dJX5WBheau6m4QWLQj0VcBg460PS0I= MIME-Version: 1.0 Received: by 10.52.66.40 with SMTP id c8mr1578668vdt.21.1313966959365; Sun, 21 Aug 2011 15:49:19 -0700 (PDT) Received: by 10.52.111.10 with HTTP; Sun, 21 Aug 2011 15:49:19 -0700 (PDT) In-Reply-To: <20110820230510.4363cefc@fabiankeil.de> References: <20110820230510.4363cefc@fabiankeil.de> Date: Mon, 22 Aug 2011 08:49:19 +1000 Message-ID: From: Ashley Williams To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: dtrace walltimestamp X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2011 22:49:20 -0000 On Sun, Aug 21, 2011 at 7:05 AM, Fabian Keil wrote: > > Ashley Williams 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.