From nobody Sat Mar 19 04:28:22 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A444E1A1722A for ; Sat, 19 Mar 2022 04:28:25 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KL7D85D5Qz4mT0 for ; Sat, 19 Mar 2022 04:28:24 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id VQPwnMVKh43SgVQhUnWn1b; Sat, 19 Mar 2022 04:28:24 +0000 Received: from spqr.komquats.com ([70.66.148.124]) by cmsmtp with ESMTPA id VQhTnPqyXQV6mVQhUn2cO2; Sat, 19 Mar 2022 04:28:24 +0000 X-Authority-Analysis: v=2.4 cv=PbTsOwtd c=1 sm=1 tr=0 ts=62355be8 a=Cwc3rblV8FOMdVN/wOAqyQ==:117 a=Cwc3rblV8FOMdVN/wOAqyQ==:17 a=kj9zAlcOel0A:10 a=o8Y5sQTvuykA:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=VxmjJ2MpAAAA:8 a=TbKV5qd_dphDPWYV2MIA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 a=7gXAzLPJhVmCkEl4_tsf:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 01C49153 for ; Fri, 18 Mar 2022 21:28:23 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 7219B10F; Fri, 18 Mar 2022 21:28:22 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: freebsd-current@freebsd.org Subject: Re: DTrace Brokenness [Solved] In-reply-to: <20220318234704.6C14AED@slippy.cwsent.com> References: <20220318234704.6C14AED@slippy.cwsent.com> Comments: In-reply-to Cy Schubert message dated "Fri, 18 Mar 2022 16:47:04 -0700." List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 18 Mar 2022 21:28:22 -0700 Message-Id: <20220319042822.7219B10F@slippy.cwsent.com> X-CMAE-Envelope: MS4xfPG6yYwhxVRX/ZpuNkzs2ShzOygJtortaND9KiEdxbhVHBosIyAUdSuszGU+crtzfLz4cr/3iMs8oQ9TjB5cWLWp/j+fB9WOTgR78b/IMfJPjeNfJvmn RNG8pOhuq8Be8KMdh52A4MhtPzmarBlb6+F8Em9NRPeZEZxxelN4xVHTY1moPqOtpyjJSY2NnV5PKsOjb7TwEzBB+J+3nFBPsEs= X-Rspamd-Queue-Id: 4KL7D85D5Qz4mT0 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 3.97.99.32) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-1.60 / 15.00]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[70.66.148.124:received]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_LOW(-0.10)[3.97.99.32:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.90)[-0.900]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[cschubert.com: no valid DMARC record]; MLMMJ_DEST(0.00)[freebsd-current]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[3.97.99.32:from] X-ThisMailContainsUnwantedMimeParts: N A full clean build resolved the problem. It was likely some incompatible CTF or possibly some other patch that touched DTrace that left my obj tree in an inconsistent state. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org The need of the many outweighs the greed of the few. In message <20220318234704.6C14AED@slippy.cwsent.com>, Cy Schubert writes: > It's been a while (~ 4-6 months) since I've last used dtrace. Needing to > use it again today scripts that worked before fail to. > > A first example: > > cwfw# cat dt10.d > #!/usr/sbin/dtrace -s > > fbt::ipf_check:entry { > parintf("%x\n", (void) arg[1]); > } > > cwfw# > > Results in this error: > > cwfw# ./dt10.d > dtrace: failed to compile script ./dt10.d: "/usr/lib/dtrace/psinfo.d", line > 1: cannot translate from "struct thread *" to "lwpsinfo_t *" > cwfw# > > Another example, > > slippy# cat dtrace.d > #!/usr/sbin/dtrace -s > > fbt::uma_reclaim:entry { > printf("in uma_reclaim\n"); > } > slippy# > > Results in the same error: > > slippy# ./dtrace.d > dtrace: failed to compile script ./dtrace.d: "/usr/lib/dtrace/psinfo.d", > line 1: cannot translate from "struct thread *" to "lwpsinfo_t *" > slippy# > > > A variation of the second example, > > slippy# cat dtrace.sh > #!/bin/sh - > dtrace -n 'fbt::uma_reclaim:entry { printf("in uma_reclaim\n"); }' > slippy# > > Results in two errors, the first being that the -n option results in an > invalid probe specified and the second being the struct thread * error. > > slippy# ./dtrace.sh > dtrace: invalid probe specifier fbt::uma_reclaim:entry { printf("in > uma_reclaim\n"); }: "/usr/lib/dtrace/psinfo.d", line 1: cannot translate > from "struct thread *" to "lwpsinfo_t *" > slippy# > > I'm not sure if this is related to 2d5d2a986ce or something else. > > > -- > Cheers, > Cy Schubert > FreeBSD UNIX: Web: https://FreeBSD.org > NTP: Web: https://nwtime.org > > The need of the many outweighs the greed of the few. > > >