From nobody Fri Mar 18 23:47:04 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 BA60E1A1EDB5 for ; Fri, 18 Mar 2022 23:47:14 +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 4KL0zj5klmz4rT6 for ; Fri, 18 Mar 2022 23:47:13 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id VKSEnMEde43SgVMJGnWEnF; Fri, 18 Mar 2022 23:47:06 +0000 Received: from spqr.komquats.com ([70.66.148.124]) by cmsmtp with ESMTPA id VMJFnXN42159UVMJGnIcdC; Fri, 18 Mar 2022 23:47:06 +0000 X-Authority-Analysis: v=2.4 cv=frTP2X0f c=1 sm=1 tr=0 ts=623519fa 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=dJq77ky0u75uFOt9mL4A:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 7C9D5382 for ; Fri, 18 Mar 2022 16:47:05 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 6C14AED; Fri, 18 Mar 2022 16:47:04 -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: DTrace Brokenness 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 16:47:04 -0700 Message-Id: <20220318234704.6C14AED@slippy.cwsent.com> X-CMAE-Envelope: MS4xfNZcnj3KtIFux1Q4sQkmToMJc6RxMLm8KsnLK1+u0HrwgytCEpt80eLNGr225D71Kf64RCmTIh4MpRquslFO5kO3ZHXcJ61wEIbNV7DpcyVc+4z2GJWI ji5Zd8mwRpmvtXN7B8FkvziSBa2jlF7Io/dxnrlSlZE7V6kpK5j6lyx5YL/huCB3EoU0wCiNro9qAfL6vxx7fk4LxFU+djPUk9g= X-Rspamd-Queue-Id: 4KL0zj5klmz4rT6 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 [0.07 / 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)[]; RCVD_IN_DNSWL_LOW(-0.10)[3.97.99.32:from]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.77)[0.772]; 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 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.