From owner-freebsd-dtrace@FreeBSD.ORG Sun Aug 24 07:00:53 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E04C62A3 for ; Sun, 24 Aug 2014 07:00:52 +0000 (UTC) Received: from o4.email.wpengine.com (o4.email.wpengine.com [167.89.4.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F6AA3E71 for ; Sun, 24 Aug 2014 07:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=email.wpengine.com; h=to:subject:from:reply-to:mime-version:content-transfer-encoding:content-type; s=smtpapi; bh=YaQWtQMGYxgVoZekapcc1/vKCOU=; b=WCRq86SuJmk36QgvhA 6Es5gZVosm2j9Ni/tVjvtW/nOBPNjqaHT9xcyPLB9GtbxAny1rI7jhrWS4MDbvrZ fNhRVr8nOZLtvCmA0rzxfsPlUESLc/KEC+SV6T2ZYrcahfnTMFDQW/q937jnC6Q4 MlpkjDbsBAmYa/O8MucKlmBfk= Received: by mf158.sendgrid.net with SMTP id mf158.3850.53F98D9B12 2014-08-24 07:00:43.387654545 +0000 UTC Received: from pod-2745 (li170-216.members.linode.com [173.230.130.216]) by ismtpd-010.iad1.sendgrid.net (SG) with ESMTP id 14806d12675.4075.38dd5c for ; Sun, 24 Aug 2014 07:00:43 +0000 (GMT) X-SendGrid-User: wpengine-pod-2745 Received: by pod-2745 (Postfix, from userid 33) id 1A45555034; Sun, 24 Aug 2014 07:00:43 +0000 (UTC) To: freebsd-dtrace@freebsd.org Subject: =?UTF-8?Q?Account_Blocked?= X-PHP-Originating-Script: 33:index.php Date: Sun, 24 Aug 2014 07:00:43 +0000 From: =?UTF-8?Q?Support?= Message-ID: <816e1f4798d6187ce41f2683501a265d@souhail.wpengine.com> X-Priority: 1 X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version ] X-SG-EID: 2gBxnW1rbk5uT2ZHwhCdfhFx329Uhsgc0XJI14SPS2V3FNz0j5JggPdo5r+ruy3jWz5xKjCCA7p38lTKCjIAz7DviNp2sQKlWH+742EjciJdg4i7biPAaJKW3ftbdrERZrHp7Ybko99O/fpalfYjCnP0pwAXcRdiHxWfuFdx1ks= MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2014 07:00:53 -0000 Dear costumer, You have received this email because our system has noticed some suspicious activities with AÏÏle ID. All what you need to keep enjoying all the benefits of your id is to confirm your identity , follow the link below to start this process . [1]Confirm Now > Wondering why you got this email? Some massive failed login attempts were been made from unknown location that didnt match with your usual one , as a result we decided to suspend your account temporarily in order to protect it . This is an automated message. Please do not reply to this email. Thanks,  Customer. TM and copyright © 2014  Inc. 1 Infinite Loop, MS 96-DM, Cupertino, CA 95014. All Rights Reserved / Keep Informed / Privacy Policy / My ID References 1. http://goo.gl/IsbNDo From owner-freebsd-dtrace@FreeBSD.ORG Thu Aug 28 15:17:59 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A496872B for ; Thu, 28 Aug 2014 15:17:59 +0000 (UTC) Received: from mailuogwhop.emc.com (mailuogwhop.emc.com [168.159.213.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mailuogwprd01.lss.emc.com", Issuer "RSA Corporate Server CA v2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5585B1443 for ; Thu, 28 Aug 2014 15:17:58 +0000 (UTC) Received: from maildlpprd06.lss.emc.com (maildlpprd06.lss.emc.com [10.253.24.38]) by mailuogwprd03.lss.emc.com (Sentrion-MTA-4.3.0/Sentrion-MTA-4.3.0) with ESMTP id s7SEpT6f022963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 28 Aug 2014 10:51:30 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com s7SEpT6f022963 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=emc.com; s=jan2013; t=1409237490; bh=GhbnDDR2D/txf4uZitTVJSuHQtk=; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; b=ercyiEIZOoQxcHwHwYDZDf/RKdJSZS1uxhmWB+gz5Zhi2RpXPkSPFp5pty1JO9MEF hOj7aiGECoXEAf0C4OSxWxKP/ObvqcuhGR9GyjJ772Jp4sVGLabgLQYXx6j43/j2gj c4fBznlsMc6U6LyCoE2Ud0WpMtw/uTqXdAvcKaPo= X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com s7SEpT6f022963 Received: from mailusrhubprd52.lss.emc.com (mailusrhubprd52.lss.emc.com [10.106.48.25]) by maildlpprd06.lss.emc.com (RSA Interceptor) for ; Thu, 28 Aug 2014 10:50:58 -0400 Received: from mxhub35.corp.emc.com (mxhub35.corp.emc.com [10.254.93.83]) by mailusrhubprd52.lss.emc.com (Sentrion-MTA-4.3.0/Sentrion-MTA-4.3.0) with ESMTP id s7SEp0kM031889 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 28 Aug 2014 10:51:11 -0400 Received: from mx30a.corp.emc.com ([169.254.1.101]) by mxhub35.corp.emc.com ([::1]) with mapi; Thu, 28 Aug 2014 10:51:08 -0400 From: "Kendrick, Stuart" To: "freebsd-dtrace@freebsd.org" Date: Thu, 28 Aug 2014 10:52:54 -0400 Subject: printing time Thread-Topic: printing time Thread-Index: Ac/Cz3/7GHTm1IdHSButHaRdm4GXGw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.3.140616 acceptlanguage: en-US MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd52.lss.emc.com X-RSA-Classifications: public Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 15:17:59 -0000 How else might I print a timestamp, other than using =91printf =85 walltime= stamp=92? I=92m running dtrace on a platform (modified version of FreeBSD 7) where = =91printf %Y=92 only ever returns the one timestamp: 1969 Dec 31 18:00:00 So I=92m casting around for another approach: suggestions? My script =91watch-file.d=92: # pragma D option quiet BEGIN { printf("\n Timestamp gid uid pid ppid execname function\= n\n"); } syscall::open*:entry, syscall::unlink:entry, syscall::rename:entry /strstr(stringof(copyinstr(arg0)), $1) !=3D NULL/ { printf("%Y %5d %5d %5d %5d %-12s %-10s %s\n", walltimestamp, gid, uid, pid, ppid, execname, probefunc, string= of(copyinstr(arg0))); } Typically run as follows: ./watch-file.d =91=93/etc/foo=94=92 | tee /var/tmp/foo.log where /etc/foo is the file I want to watch =97 i.e. something is updating t= his file at awkward moments, and I want to identify what process does this. [...] 1969 Dec 31 18:00:00 0 0 2739 1 isi_rpc_d open /etc/ifs/lo= cal.xml 1969 Dec 31 18:00:00 0 0 2739 1 isi_rpc_d open /etc/ifs/lo= cal.xml 1969 Dec 31 18:00:00 0 0 2739 1 isi_rpc_d open /etc/ifs/lo= cal.xml 1969 Dec 31 18:00:00 0 0 3131 1 isi_celog_monitor open /et= c/ifs/local.xml 1969 Dec 31 18:00:00 0 0 3131 1 isi_celog_monitor open /et= c/ifs/local.xml 1969 Dec 31 18:00:00 0 0 3131 1 isi_celog_monitor open /et= c/ifs/local.xml 1969 Dec 31 18:00:00 0 0 3099 1 isi_celog_coalescer open /et= c/ifs/local.xml 1969 Dec 31 18:00:00 0 0 3099 1 isi_celog_coalescer open /et= c/ifs/local.xml 1969 Dec 31 18:00:00 0 0 3099 1 isi_celog_coalescer open /et= c/ifs/local.xml 1969 Dec 31 18:00:00 0 0 3099 1 isi_celog_coalescer open /et= c/ifs/local.xml ~ =97sk Stuart Kendrick EMC Isilon From owner-freebsd-dtrace@FreeBSD.ORG Thu Aug 28 15:24:51 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E7085A3F for ; Thu, 28 Aug 2014 15:24:51 +0000 (UTC) Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [IPv6:2607:f8b0:400e:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B4FC0156E for ; Thu, 28 Aug 2014 15:24:51 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id ey11so2972305pad.35 for ; Thu, 28 Aug 2014 08:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=delphix.com; s=google; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=xLldZ3tuKKldoKMOP78LlTuEMAn17BlHd+ywiFmUcUI=; b=Int7407XFI3RobP40mUBBbB7W9buxuL8LEylqIrLIqAmHi3C9H9ttSsqZraUmPJsWF ASvm+++4jENNYHANi6kEhJDZ1Bh0vL/tY1FiyFgpejlB+zgmYjL+VAAvcsHEOuvMuKLq qEmnJjzoq6TXtpXSY0W/zeGNtX+IkoMBTZWr0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=xLldZ3tuKKldoKMOP78LlTuEMAn17BlHd+ywiFmUcUI=; b=Kw3F9SbI2kRl8LcG+nDWP1hcUlG/NRKj8UNVsO2CCTKAaNxbma7UpPPXjahcjN5qFq KMSntBoBya5zYPWLLUYpQiLWOz1RY2ZkuC5tv0C9oLFpk00BbzfrRFnlVZ00A3h2tB+9 16A0EZCSm+SB+ENuANxMkMp7LA0Dx8T+crPMtTPEWMM50y/d7hVHxTCV40vBi9xb5H5z 8U6WYIUY3MjmDfYIQmrXv5YSC+r2frV+C8AKUiUedySM0i8TQXBtauO0UODf6SMf+8NL s29qBbPrknlh4Zc9yJf7SVU0BEw0UifNcv1IT1A3ftJvC9pga8cE2zWXYqNu7deQ2VRi qusA== X-Gm-Message-State: ALoCoQma0NaI2k6NqOxOQ8WVZ3ZawRld0C2lECC5nTMVw0ELWCE6Tvslpn/N162OPgvrOlXQZmYz X-Received: by 10.68.242.202 with SMTP id ws10mr7056315pbc.32.1409239489069; Thu, 28 Aug 2014 08:24:49 -0700 (PDT) Received: from [10.151.51.69] (mobile-166-171-249-235.mycingular.net. [166.171.249.235]) by mx.google.com with ESMTPSA id wi10sm3815364pbc.95.2014.08.28.08.24.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 08:24:48 -0700 (PDT) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: X-Mailer: iPhone Mail (10B143) From: Adam Leventhal Subject: Re: printing time Date: Thu, 28 Aug 2014 08:24:43 -0700 To: "Kendrick, Stuart" Cc: "freebsd-dtrace@freebsd.org" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 15:24:52 -0000 Hi Stuart Is walltimestamp always 0? Could you use timestamp as an alternative (you co= uld do some math to convert it to wall time). Adam -- Adam Leventhal CTO, Delphix Sent from my mobile On Aug 28, 2014, at 7:52 AM, "Kendrick, Stuart" wr= ote: > How else might I print a timestamp, other than using =E2=80=98printf =E2=80= =A6 walltimestamp=E2=80=99? >=20 > I=E2=80=99m running dtrace on a platform (modified version of FreeBSD 7) w= here =E2=80=98printf %Y=E2=80=99 only ever returns the one timestamp: 1969 D= ec 31 18:00:00 >=20 > So I=E2=80=99m casting around for another approach: suggestions? >=20 > My script =E2=80=98watch-file.d=E2=80=99: >=20 >=20 > # pragma D option quiet >=20 >=20 > BEGIN >=20 > { >=20 > printf("\n Timestamp gid uid pid ppid execname function= \n\n"); >=20 > } >=20 >=20 > syscall::open*:entry, syscall::unlink:entry, syscall::rename:entry >=20 > /strstr(stringof(copyinstr(arg0)), $1) !=3D NULL/ >=20 > { >=20 > printf("%Y %5d %5d %5d %5d %-12s %-10s %s\n", >=20 > walltimestamp, gid, uid, pid, ppid, execname, probefunc, string= of(copyinstr(arg0))); >=20 > } >=20 > Typically run as follows: > ./watch-file.d =E2=80=98=E2=80=9C/etc/foo=E2=80=9D=E2=80=99 | tee /var/tmp= /foo.log > where /etc/foo is the file I want to watch =E2=80=94 i.e. something is upd= ating this file at awkward moments, and I want to identify what process does= this. >=20 >=20 >=20 > [...] >=20 > 1969 Dec 31 18:00:00 0 0 2739 1 isi_rpc_d open /etc/ifs/l= ocal.xml > 1969 Dec 31 18:00:00 0 0 2739 1 isi_rpc_d open /etc/ifs/l= ocal.xml > 1969 Dec 31 18:00:00 0 0 2739 1 isi_rpc_d open /etc/ifs/l= ocal.xml > 1969 Dec 31 18:00:00 0 0 3131 1 isi_celog_monitor open /e= tc/ifs/local.xml > 1969 Dec 31 18:00:00 0 0 3131 1 isi_celog_monitor open /e= tc/ifs/local.xml > 1969 Dec 31 18:00:00 0 0 3131 1 isi_celog_monitor open /e= tc/ifs/local.xml > 1969 Dec 31 18:00:00 0 0 3099 1 isi_celog_coalescer open /e= tc/ifs/local.xml > 1969 Dec 31 18:00:00 0 0 3099 1 isi_celog_coalescer open /e= tc/ifs/local.xml > 1969 Dec 31 18:00:00 0 0 3099 1 isi_celog_coalescer open /e= tc/ifs/local.xml > 1969 Dec 31 18:00:00 0 0 3099 1 isi_celog_coalescer open /e= tc/ifs/local.xml > ~ >=20 >=20 > =E2=80=94sk >=20 > Stuart Kendrick > EMC Isilon > _______________________________________________ > freebsd-dtrace@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace > To unsubscribe, send any mail to "freebsd-dtrace-unsubscribe@freebsd.org" From owner-freebsd-dtrace@FreeBSD.ORG Thu Aug 28 16:56:59 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BDA4F9ED for ; Thu, 28 Aug 2014 16:56:59 +0000 (UTC) Received: from mail-oa0-x22f.google.com (mail-oa0-x22f.google.com [IPv6:2607:f8b0:4003:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89080114B for ; Thu, 28 Aug 2014 16:56:59 +0000 (UTC) Received: by mail-oa0-f47.google.com with SMTP id i7so830370oag.20 for ; Thu, 28 Aug 2014 09:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=6mPBJ75CVSXSb6xOcYRhBRDjulY820YIJPFKkuG+vC8=; b=woM8fruUjq5k94PF7ULVenKfDMILykaW3CPqN3fxkJNLWrJhghvyl80RxZPcaTtV+Z v/NgPjTbD2cqsE4xZpoGDMTCeFPzvCtM/5B8rkiq5HlQvtFtqBi+f/DaLD9XXuxcY8Ns I8Xz4+Oio4/cE/6J7GtfGswh6+GvRnnFcD/fz7mX8HKrYvmrvZGjLQVpf2Mp9kWXdpXk Ryb2tnzK16nnXnley7WYQMGN7ufx8KCUJmTYfXc4m2WGTpPfqNeNMSr2qvoj635WN5uy YlerVhKHnnUi2fx1rPOXDS+tNLpcf5DcujCfDmmyMylfJdhK81FZz4km9DtI3T+ankyN A1zA== MIME-Version: 1.0 X-Received: by 10.182.236.65 with SMTP id us1mr4990870obc.38.1409245018862; Thu, 28 Aug 2014 09:56:58 -0700 (PDT) Received: by 10.76.10.200 with HTTP; Thu, 28 Aug 2014 09:56:58 -0700 (PDT) In-Reply-To: References: Date: Thu, 28 Aug 2014 12:56:58 -0400 Message-ID: Subject: Re: printing time From: Ryan Stone To: "Kendrick, Stuart" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-dtrace@freebsd.org" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 16:56:59 -0000 On Thu, Aug 28, 2014 at 10:52 AM, Kendrick, Stuart wrote: > How else might I print a timestamp, other than using =E2=80=98printf =E2= =80=A6 walltimestamp=E2=80=99? > > I=E2=80=99m running dtrace on a platform (modified version of FreeBSD 7) = where =E2=80=98printf %Y=E2=80=99 only ever returns the one timestamp: 196= 9 Dec 31 18:00:00 > > So I=E2=80=99m casting around for another approach: suggestions? Do you need wall clock time, or do you just need relative timestamps to other dtrace prints? timestamp works in all FreeBSD versions and you can print it as a simple int. The counter is given in nanoseconds (I believe that it's specifically the number of nanoseconds since boot, but don't quote me on that). Alternatively, the code to implement walltimestamp was quite simple, so you could investigate back-porting that: http://svn.freebsd.org/changeset/base/238537 From owner-freebsd-dtrace@FreeBSD.ORG Thu Aug 28 20:19:42 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B7E1A4E for ; Thu, 28 Aug 2014 20:19:42 +0000 (UTC) Received: from mailuogwdur.emc.com (mailuogwdur.emc.com [128.221.224.79]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mailuogwprd51.lss.emc.com", Issuer "RSA Corporate Server CA v2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DF8191B9E for ; Thu, 28 Aug 2014 20:19:41 +0000 (UTC) Received: from maildlpprd55.lss.emc.com (maildlpprd55.lss.emc.com [10.106.48.159]) by mailuogwprd53.lss.emc.com (Sentrion-MTA-4.3.0/Sentrion-MTA-4.3.0) with ESMTP id s7SKJcjX009295 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 28 Aug 2014 16:19:39 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd53.lss.emc.com s7SKJcjX009295 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=emc.com; s=jan2013; t=1409257179; bh=NgFHfSn6AQfQbVqTdqEOrdTyE9Q=; h=From:To:CC:Date:Subject:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=O/FHjQSHIG7F1MZFDwQgSqVnn5YOTNiTvjP051N65shmSP59FGW0+g2q3Fu50sYAJ MAiEz1Ya3OUrBFMHO/Eo3+0r8vFEqVzonU7HQP/MoQ1BVV2Vhkv1Ql5rwUCMiXUQGZ Na16Y7Jdi/Dh4dLQy+0ge7v4L9Y/ZiBh3/RaOPlw= X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd53.lss.emc.com s7SKJcjX009295 Received: from mailusrhubprd03.lss.emc.com (mailusrhubprd03.lss.emc.com [10.253.24.21]) by maildlpprd55.lss.emc.com (RSA Interceptor); Thu, 28 Aug 2014 16:19:15 -0400 Received: from mxhub16.corp.emc.com (mxhub16.corp.emc.com [128.222.70.237]) by mailusrhubprd03.lss.emc.com (Sentrion-MTA-4.3.0/Sentrion-MTA-4.3.0) with ESMTP id s7SKJMK9030433 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 28 Aug 2014 16:19:23 -0400 Received: from mx30a.corp.emc.com ([169.254.1.101]) by mxhub16.corp.emc.com ([128.222.70.237]) with mapi; Thu, 28 Aug 2014 16:19:22 -0400 From: "Kendrick, Stuart" To: Ryan Stone Date: Thu, 28 Aug 2014 16:21:10 -0400 Subject: Re: printing time Thread-Topic: printing time Thread-Index: Ac/C/VrDxosuYg5lR/KtfA+rmFNZAw== Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.3.140616 acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd03.lss.emc.com X-RSA-Classifications: DLM_1, public Cc: "freebsd-dtrace@freebsd.org" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 20:19:42 -0000 In fact, printf(=B3%Y =8A\n=B2, timestamp =8A.); will give me a timestamp w= hich looks like 1970 Jan 1 + uptime, and that will meet my needs for the moment. Thank you for the idea. =8Bsk > >Do you need wall clock time, or do you just need relative timestamps >to other dtrace prints? timestamp works in all FreeBSD versions and >you can print it as a simple int. The counter is given in nanoseconds >(I believe that it's specifically the number of nanoseconds since >boot, but don't quote me on that). > >