From nobody Wed Dec 1 23:12:49 2021 X-Original-To: dtrace@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 D843518C0D67 for ; Wed, 1 Dec 2021 23:12:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4FHP42czz4l0d for ; Wed, 1 Dec 2021 23:12:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6C38512B42 for ; Wed, 1 Dec 2021 23:12:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1B1NCn2B033016 for ; Wed, 1 Dec 2021 23:12:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B1NCnX8033015 for dtrace@FreeBSD.org; Wed, 1 Dec 2021 23:12:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Wed, 01 Dec 2021 23:12:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638400369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3V28uLtBS86J/mMp98GxLmjbX9ufOe5MEZ4G7HEXoEc=; b=h0fRaM/Xmzg24A/SbCx7xofUSZQ1WyRGR5zqB5m5+GJeXc/IU00b5rsmjNveeZf/EHfZoj 2JvBeCpeDXWXlIM30KmgQtuaaPmvCnAlwCJM3PZPGC/PqexFZMHYcmsuOgGaRuFPBfUV7w DwPeXoKM7vCwKBGEHFg5W7Yy7gsWDQwKHBGUsoKldBCeyBMxOHXbSeNpGAuiOsmAr6McpW a95BntLcR/GHjn6j+dZ8QLFSkcfiLLOFcIa58FG2QBnwFAB4WidEoIxxKG8ibDe+ieykfZ 6Uo+Wl2F7KounOOJYTp9WDWFmnkHCTH+qxOitkYX/sf4FCuyvB7vQB6172PIyA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638400369; a=rsa-sha256; cv=none; b=RWyZ/r8+/Xd4rsgykBwHgT2LXya+zUUl16dSxPbYX89l/pBaYh2DRlKpy2OC5zu+Q1jwDb XUnIYha85/dU+28THDdWAEVuhEDfGAS0FW5PaKxuVEy5PIRNuw0eQ5RuPxyvSzcpKWcIpa 2U9gK/TQ1r+Dv2pbLC+vdbygDXtbNDMvfod0HAf1DtoAG0Fpy555dcOKlCS7AzeMCUVzBP nXzZ8AGnTyZ2+iDj7A6RQuNfqmrJoNZANWDs0UnNEJo+3m9ph+vjf/PDdURw4nCfb+a4bw d4Xx3kTa9NX6fl8vNxStr/gMVBDUbF/GBhAOoLI7RLrw3kXQNhrsky8Wo5xofQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 --- Comment #40 from Kubilay Kocak --- @Mark Is there anything we can do, tests or otherwise, to make these build (ideally) or test (CI) time failures, so as to pick them up early and/or re= duce or otherwise preclude false positives or user/environment specific build issues? --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Fri Dec 3 14:57:50 2021 X-Original-To: dtrace@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 F083D18C31A3 for ; Fri, 3 Dec 2021 14:57:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J5GCL5lHTz5446 for ; Fri, 3 Dec 2021 14:57:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A6F1E12E16 for ; Fri, 3 Dec 2021 14:57:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1B3Evo8T035235 for ; Fri, 3 Dec 2021 14:57:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B3Evo1R035234 for dtrace@FreeBSD.org; Fri, 3 Dec 2021 14:57:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Fri, 03 Dec 2021 14:57:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638543470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=exQBYwtn3rui7YPNQJXWv3wA8HkAmR5OnUtDR1Q/RWQ=; b=kvcxxdNUYHl/IbsDPNRKOFpN21O3lpFna2murdsHEM7R98PNPdToyMS8D1MsxflKAcE6zP jk+l6PG+TEzY3d0/N+2LyEsH/4kyzGticLV+uY+651cJ3YttTYfEJIKEvLifX9v/OlxvJ3 ahWoPacY9jkkPFGhjusptGfjRiSxVfTrTSVhH1bHWYmffjbTR2s6V0j2IDAfB+57uci2Nj fAP0BgPbj5kUrnLin0Uve30tGnGgtni5IeTCVvExQ/IVSbHuRXnmmHmWOVLG8kgziEZ1Cc RsN+zUigaYwun9VuOWFw9xnaRJTsja0IbY0S2BDtijlLGv+ptu8qK17oczlQNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638543470; a=rsa-sha256; cv=none; b=ntINpS/WyzVOcHx5KxSpZ4KESPumBPnEWBhGLATvqcmiopT/PskDnLy8vTS1+rJzwzAwgR 73fLcsciunWHqfaO2xU81yHLqBPXCYiyWt5oDWGeF4Wzk59k/MvSKHEjhTDPOVBI67ZRnu FGw4w8HD+z7zOiQaNnjtcATcf8F4R0tCMg6Cl6t8ruHn4BIK8jHEETNpSllbOOZi3Qf0MR H/CBE88VTvCIhsoiQ2a4N0nepA+2HeuT/4wgnH7W5hs17HoQcwqz+qFi7lmFjc4fxOguXr 2JGCvXdYIDrRZWcViaDZfyWrJvPwavU9n33szywrc4zQvpe6KQH9E2+qPGCrGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 --- Comment #41 from Mark Johnston --- (In reply to Kubilay Kocak from comment #40) Certainly it'd be useful to add dtrace tests for new SDT providers, like we have for ip, tcp, sctp, etc.. --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Fri Dec 24 11:34:28 2021 X-Original-To: freebsd-dtrace@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 4405419041C1 for ; Fri, 24 Dec 2021 11:34:31 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JL4j30t55z3Kq6 for ; Fri, 24 Dec 2021 11:34:31 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id AF20A279E4 for ; Fri, 24 Dec 2021 11:34:30 +0000 (UTC) (envelope-from avg@FreeBSD.org) Message-ID: Date: Fri, 24 Dec 2021 13:34:28 +0200 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.4.1 From: Andriy Gapon Subject: dtrace: two buffers for ring and fill policies? To: freebsd-dtrace@freebsd.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640345671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JBBopVDEwt/FYIuTLevuSMpZZQ+icSkRwEty0RRp+HM=; b=LxGnh+1fjF1Ynerpu5p+BX1rYP4RKY6P4r8ZECL5BnYYlFvep7KoJ7qjQQcKlvOtTTeuEN JIB1WdsGlaXLHjj2mJphI/qLT/90itYp54+4GmcXx90nCZXLhr8TWcRIhmDwPTc5mPGmla uwvZUej8lNgz5TCSxzkM8K7WOTaxN/tTH3vk6RBgTu4r5kR/TSi3vKQPyi36c0fb/wM76m qIe2ZOWhMn15c/mYcs611gR8us3RII1GrnFNmCTfBJq4L3TJlwU0aiMg9pimevavZHZzbz SmYnIzjg6kUfTq/U1HRmanlPUzitBMttekmL7K3WAG/bfTjH8hP2OYphrumOZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640345671; a=rsa-sha256; cv=none; b=IxcOiIwbf9GAWuGiBGBW+u0Uks4IMD3EInXnV5IKZ46U3pS6ItAYd2g6Wo0AGar+oi9hFq 7tw8kYPHsyorw2ncxfXJBvtN5DgqxM16n6DgM7XvOH/ebosPBVF31CL5JhSNsqf0opYGfS kBjnBm8/T+Y80TG8NuuU63EQBa9Oy95eq1VetVml9aF3IBxTFElvW8fI45mzILb6bJzZza lBg80CnbtAp82abfazbA0FG/6TXGRTk2gWD12sxY0+bOz0Swc+YofItt9OMVFMzPs84Vhg t+bvFdyczpu6/yaTMupEL/gTApsqEyQEU5h9UZ42WgFKMM/PjqORBKZB29kydQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N I've just noticed that DTrace allocates two per-CPU principal buffers even when a bufpolicy of ring or fill is used. I believe that the second buffer is never used in those cases. This is the code: if (flags & DTRACEBUF_NOSWITCH) continue; if ((buf->dtb_xamot = kmem_zalloc(size, KM_NOSLEEP | KM_NORMALPRI)) == NULL) goto err; As far as I can see, DTRACEBUF_NOSWITCH is not implied by DTRACEBUF_RING or DTRACEBUF_FILL. Maybe it should be? -- Andriy Gapon From nobody Sat Jan 8 14:37:11 2022 X-Original-To: dtrace@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 6EB2519380F5 for ; Sat, 8 Jan 2022 14:37:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JWN2w1zX0z4VcL for ; Sat, 8 Jan 2022 14:37:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 24D8E20614 for ; Sat, 8 Jan 2022 14:37:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 208EbCxe072628 for ; Sat, 8 Jan 2022 14:37:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 208EbC0b072627 for dtrace@FreeBSD.org; Sat, 8 Jan 2022 14:37:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Sat, 08 Jan 2022 14:37:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: i.dani@outlook.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641652632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u6WNSAMeL+bwcOkssZOHEO8M5qCyapjtsNiC/eSudps=; b=t/T/BlN568jSB/ib79c5DHiEZVoQcM63toD7H31FD8wwnPFFZrzs8cmzxo92wJntgrwOt6 RpjsELB4jc3iahII+LGFcQCx/EzVJO5sLTSjGUqx35jeP3Djho+mnuMeVbTW5XrPBAj3w6 VL4AvHCv5yhb+mpeb1b9TeIj5Wl0SSFbiNnrAkUCLpJkx/vKQxgtlds/D4/Vk+a37lUuBn m0tJaEz0URoBMrJCfEYQwb1uaqmQXWPGJ4vMln2ujD5FR1Ud8vLr+dD0z4OPdziyJkTZEk un5iP7/ys2FbsjkQhONO/xrx3I46hPMV3ecz5ZTkAh0wVyY1GNHW0vw38koblA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641652632; a=rsa-sha256; cv=none; b=fABOTDyxLniMkVJ+di1v/WuSgb7mHk9S6YLBvTpu07IIh9Ri0O8Qf9p3YL5R88qrUQNdbB LZFxPn9LZVJy0zUqBH0xjGlmMl+ooEqHN7euvfTvnV9z03cKMPtYIEPkK3u5o+8Egi8K+W 7P7AkqgiKN0C9S3J1ACj4KHYfXtgM4qI5vffF2KgVZv7vUcWlLKOzXfyukleh6OKH90zE4 D6Fh3qStM59L2saPNtMUyrluT8BPyBlvQoqm5R/Q58HvOQ381pI7CONMDOLnDmNc25Q2GH eqkrgUARvUzBd1SRzjd6v2B6X2Ri0oCaDwnpDguxdXOU+9brk3K1I/5I69WVKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 Dani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |i.dani@outlook.com --- Comment #42 from Dani --- We are hitting the same bug after upgrading from 12.2 to 12.3 (same custom kernelconfig). Nothing else has changed from our side. Guess that has to do with the additional stuff that came to GENERIC with the update to 12.3. Is there a consistent resolution yet..? - CTF Statistics ----------------------------------------------------------= --- total number of data objects =3D 31625 total number of functions =3D 35289 total number of function arguments =3D 85628 maximum argument list length =3D 22 average argument list length =3D 2.43 total number of types =3D 33462 total number of integers =3D 77 total number of floats =3D 0 total number of pointers =3D 8270 total number of arrays =3D 3473 total number of func types =3D 2341 total number of structs =3D 11377 total number of unions =3D 661 total number of enums =3D 954 total number of forward tags =3D 52 total number of typedefs =3D 5439 total number of volatile types =3D 58 total number of const types =3D 621 total number of restrict types =3D 0 total number of unknowns (holes) =3D 139 total number of struct members =3D 85074 maximum number of struct members =3D 248 total size of all structs =3D 23518133 maximum size of a struct =3D 2971720 average number of struct members =3D 7.48 average size of a struct =3D 2067.16 total number of union members =3D 2295 maximum number of union members =3D 90 total size of all unions =3D 137260 maximum size of a union =3D 41576 average number of union members =3D 3.47 average size of a union =3D 207.66 total number of enum members =3D 9414 maximum number of enum members =3D 1023 average number of enum members =3D 9.87 total number of unique strings =3D 70178 bytes of string data =3D 1017606 maximum string length =3D 81 average string length =3D 14.50 --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Sat Jan 8 14:39:34 2022 X-Original-To: dtrace@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 5FC5C1939825 for ; Sat, 8 Jan 2022 14:39:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JWN5g1N4xz4Wg8 for ; Sat, 8 Jan 2022 14:39:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0602F20738 for ; Sat, 8 Jan 2022 14:39:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 208EdYZN072983 for ; Sat, 8 Jan 2022 14:39:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 208EdYlr072982 for dtrace@FreeBSD.org; Sat, 8 Jan 2022 14:39:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Sat, 08 Jan 2022 14:39:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: i.dani@outlook.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641652775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UCnCSVhcsibzF0cExEg6BDPb5eBq2cr6Ei50VMLhL7c=; b=CuvNEIezJVjtWeE1iAtEGiYC7fTqt86h9nZ8L2BsYgltpGt3z0BixUoajFS/7//hizQvZ7 9FjCaU54XuwGi3yWH/SYt8O5qXDn+JT74CvvoGc1SPL8pn5HOO9fD0QB+GROWPnLNP10B/ hcWYyScBBAdfR67pZYJ/C6OTYkhOikZfONVlHWm3L2MqPg07Mwyzoezuv2YyiCjsHDpBV4 q3a67EmUv6MEnqPUaAQfMqH7HQ0dsf202YRHBbEvmsQeu0ReHG35v1J/ZyPUR/kGK/mPwh Vc4qzdyVF1RwhXHyO5MJh/QnzRslKD8uersnyJyERuOVIht+/22wWaqPYHqU7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641652775; a=rsa-sha256; cv=none; b=whNFbSvD2H7Od/EFfwBT7QRsJXx1o88VESmtvvr0xt+kvVPSkWxTEG1zsMyK3lYgf/Zamp 62o0AOCM/YgGns31wMyLGSiCmocpqxYSDdnZ9Jq6cLkoZWfRq5iU17QbiWLR7WUSUkRbbx 6+Daa9zzG38425wn142da0VPwAVIc3CW51Ep2haEzlCJ+/AqlsD2n+QxwKH/iaidTubC+b Ze6VSpJbcBuxglV6dll4toSq42SumcdzGzs2p9e6PVcY18Ayh/J83n6nfBU3Ip+w8AtLrB +ltNpc2/fxNCim1UpQVoaj/GvnlT9XQXJCdleLXu/9JX3uDl7KbpO0FrlQszDg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 --- Comment #43 from Dani --- If helpfull: Here are the stats from the same custom kernelconfig with FBSD 12.2: - CTF Statistics ----------------------------------------------------------= --- total number of data objects =3D 31042 total number of functions =3D 33926 total number of function arguments =3D 82409 maximum argument list length =3D 22 average argument list length =3D 2.43 total number of types =3D 31478 total number of integers =3D 77 total number of floats =3D 0 total number of pointers =3D 7668 total number of arrays =3D 3340 total number of func types =3D 2091 total number of structs =3D 10738 total number of unions =3D 621 total number of enums =3D 886 total number of forward tags =3D 51 total number of typedefs =3D 5251 total number of volatile types =3D 55 total number of const types =3D 580 total number of restrict types =3D 0 total number of unknowns (holes) =3D 120 total number of struct members =3D 79250 maximum number of struct members =3D 248 total size of all structs =3D 19349614 maximum size of a struct =3D 2971720 average number of struct members =3D 7.38 average size of a struct =3D 1801.98 total number of union members =3D 2151 maximum number of union members =3D 90 total size of all unions =3D 133604 maximum size of a union =3D 41576 average number of union members =3D 3.46 average size of a union =3D 215.14 total number of enum members =3D 9025 maximum number of enum members =3D 1023 average number of enum members =3D 10.19 total number of unique strings =3D 67943 bytes of string data =3D 982977 maximum string length =3D 81 average string length =3D 14.47 Here's the kernelconfig (yes some stuff is double with GENERIC, we just wan= t to make sure these options are set): include GENERIC ident CUSTOM options DDB options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=3D5 options IPFIREWALL_DEFAULT_TO_ACCEPT options IPDIVERT device pf device pflog device pfsync device enc device cpuctl device tuntap --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Thu Feb 3 01:04:53 2022 X-Original-To: freebsd-dtrace@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 0CE45198FDE2 for ; Thu, 3 Feb 2022 01:05:01 +0000 (UTC) (envelope-from chuq@chuq.com) Received: from vc.chuq.com (vc.chuq.com [166.84.7.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "Chuck Silvers", Issuer "Chuck Silvers" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jq0nm2KQZz3CJW for ; Thu, 3 Feb 2022 01:05:00 +0000 (UTC) (envelope-from chuq@chuq.com) Received: from spathi.chuq.com (spathi.chuq.com [98.51.95.93]) by vc169.vc.panix.com (Postfix) with ESMTPS id ED2793B5DA7 for ; Wed, 2 Feb 2022 17:04:53 -0800 (PST) (envelope-from chuq@chuq.com) Received: by spathi.chuq.com (Postfix, from userid 1022) id 3F45F3CFFA24; Wed, 2 Feb 2022 17:04:53 -0800 (PST) Date: Wed, 2 Feb 2022 17:04:53 -0800 From: Chuck Silvers To: freebsd-dtrace@freebsd.org Subject: dtrace output performance Message-ID: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4Jq0nm2KQZz3CJW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of chuq@chuq.com designates 166.84.7.169 as permitted sender) smtp.mailfrom=chuq@chuq.com X-Spamd-Result: default: False [-2.76 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.91)[-0.909]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.97)[-0.967]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_HAM_SHORT(-0.59)[-0.587]; DMARC_NA(0.00)[chuq.com]; MLMMJ_DEST(0.00)[freebsd-dtrace]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N I've got a dtrace script that logs a bunch of output, so much that the dtrace process can't keep up with the data produced by the kernel and so a bunch of output is dropped. I noticed that the dtrace process is doing tiny little writes to the output file, which I traced back to this call to fflush() in dt_printf(): va_copy(ap2, ap); n = vfprintf(fp, format, ap2); fflush(fp); va_end(ap2); This fflush() call was never in solaris, it was added to freebsd in this commit: commit b29602e4d83ed64fedb0cd0b0b7f257c35f8363c Author: John Birrell Date: Sat Apr 26 04:33:15 2008 +0000 * Get the maximum number of CPUs via a sysctl. * Handle the different ioctl design. * Support the freopen() changes. * Use functions in FreeBSD's process library rather than the CDDL library that Solaris has which sits on top of their process file system and is therefore unsuitable for use on FreeBSD. The libproc API for FreeBSD is deliberately different to that on Solaris because Sun wouldn't release the libproc.h header under a BSD license. It's not at all obvious from that description why the fflush() might be needed, possibly it's related to the freopen thing? If it's not that then I suspect that it's not actually necessary and probably just a debugging leftover, and I'd like to remove it. Does anyone know of any reason to keep this fflush()? Removing this fflush() reduces the dtrace process CPU usage in my test from 100% down to 13%, and no more trace output is lost. -Chuck From nobody Thu Feb 10 13:36:30 2022 X-Original-To: dtrace@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 7308919ACABA; Thu, 10 Feb 2022 13:44:35 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JvdJy2tkPz4cCb; Thu, 10 Feb 2022 13:44:34 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-ed1-f52.google.com with SMTP id b13so11164261edn.0; Thu, 10 Feb 2022 05:44:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:references:cc:from:subject:in-reply-to :content-transfer-encoding; bh=inyusO9agK9s8yO4AopZPLkYqhan9BWAxt0GutBlyC8=; b=50yn5P4XUid79jlK7wtLij4/K01m+jxwelXARHf3DquRSh8PVYpiG6JzhisvUQWYXY B8fikRJ09O6YnXLV0bPCy8gAjSjij3FXatvzf6pJO1ytM4GqiQAgMSrBzZJzSUYSO99J Wq78KqkgVLKNpeGVgLJQK5Vgu7P5rXUnCkAyq06bIYZ81ycqIHsdN148pWctKZx8ZSgZ x8CANiFEADOBIrrE/3Vbcotb80JxRvB079Zsre4HGestVk0nWAoKUejur41aiaYVu8YH 1N7h3Nc4Lr5iCabdk+49bBB2Bf9rDhw/jnajKWwIgnk/lzPM4zkxaRQTg/Jw0RtVDLVQ QusA== X-Gm-Message-State: AOAM531l8Wj7FkEqKHT/Zsf1FLn3fBfDJn9UD5xDs6qtZ1eM+CVIWoEV 9QnfCuYUcTLvPK25KxUMfHBFKyQG8l/5fg== X-Google-Smtp-Source: ABdhPJwjOxCrq+miLysDc1Y2ONHEjPZgCvEJvXr1XHd3Jyj1TH8R7Ore/z5qDu9+XBAAS9RC2h6+9Q== X-Received: by 2002:a17:907:9812:: with SMTP id ji18mr6580930ejc.200.1644500192239; Thu, 10 Feb 2022 05:36:32 -0800 (PST) Received: from [192.168.0.104] (ip5f5bd4cf.dynamic.kabel-deutschland.de. [95.91.212.207]) by smtp.gmail.com with ESMTPSA id c25sm9568623edu.103.2022.02.10.05.36.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 05:36:31 -0800 (PST) Message-ID: <50175512-5528-f93f-33cf-90f92f2e41b1@FreeBSD.org> Date: Thu, 10 Feb 2022 14:36:30 +0100 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Content-Language: en-US To: Chuck Silvers , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202202100248.21A2mMWw070398@gitrepo.freebsd.org> Cc: dtrace@freebsd.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: Re: git: f339a3ef6369 - main - dtrace: remove unnecessary fflush() In-Reply-To: <202202100248.21A2mMWw070398@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4JvdJy2tkPz4cCb X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mpp302@gmail.com designates 209.85.208.52 as permitted sender) smtp.mailfrom=mpp302@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[FreeBSD.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.52:from]; MLMMJ_DEST(0.00)[dev-commits-src-all,dev-commits-src-main,dtrace]; FORGED_SENDER(0.30)[0mp@FreeBSD.org,mpp302@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.52:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[0mp@FreeBSD.org,mpp302@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[95.91.212.207:received] X-ThisMailContainsUnwantedMimeParts: N Hello everyone, On 10/02/2022 03:48, Chuck Silvers wrote: > The branch main has been updated by chs: > > URL: https://cgit.FreeBSD.org/src/commit/?id=f339a3ef6369b368f3a2455792a7a3a4c28f92c4 > > commit f339a3ef6369b368f3a2455792a7a3a4c28f92c4 > Author: Chuck Silvers > AuthorDate: 2022-02-10 01:09:26 +0000 > Commit: Chuck Silvers > CommitDate: 2022-02-10 01:09:26 +0000 > > dtrace: remove unnecessary fflush() > > This call was added back in the early days of dtrace porting and > no one knows why anymore. The extra flushing causes lots of > unnecessary CPU overhead when a script produces lots of output, > as well as easily losing output because the command can't keep up. Did you have some specific way to measure the CPU overhead of DTrace here? I'm interested in this kind of performance measurements and I wonder if anything more sophisticated than observing top(1) was used to test this change. Thanks! Best, Mateusz Piotrowski From nobody Thu Feb 10 19:32:36 2022 X-Original-To: dtrace@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 ACDA519C37D9; Thu, 10 Feb 2022 19:32:43 +0000 (UTC) (envelope-from chuq@chuq.com) Received: from vc.chuq.com (vc.chuq.com [166.84.7.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "Chuck Silvers", Issuer "Chuck Silvers" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jvn2g2nlWz3CM1; Thu, 10 Feb 2022 19:32:43 +0000 (UTC) (envelope-from chuq@chuq.com) Received: from spathi.chuq.com (spathi.chuq.com [98.51.95.93]) by vc169.vc.panix.com (Postfix) with ESMTPS id 4D6523B5D86; Thu, 10 Feb 2022 11:32:37 -0800 (PST) (envelope-from chuq@chuq.com) Received: by spathi.chuq.com (Postfix, from userid 1022) id 97A8A3CFFA24; Thu, 10 Feb 2022 11:32:36 -0800 (PST) Date: Thu, 10 Feb 2022 11:32:36 -0800 From: Chuck Silvers To: Mateusz Piotrowski <0mp@FreeBSD.org> Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org, dtrace@freebsd.org Subject: Re: git: f339a3ef6369 - main - dtrace: remove unnecessary fflush() Message-ID: References: <202202100248.21A2mMWw070398@gitrepo.freebsd.org> <50175512-5528-f93f-33cf-90f92f2e41b1@FreeBSD.org> List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50175512-5528-f93f-33cf-90f92f2e41b1@FreeBSD.org> X-Rspamd-Queue-Id: 4Jvn2g2nlWz3CM1 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, Feb 10, 2022 at 02:36:30PM +0100, Mateusz Piotrowski wrote: > Hello everyone, > > On 10/02/2022 03:48, Chuck Silvers wrote: > > The branch main has been updated by chs: > > > > URL: https://cgit.FreeBSD.org/src/commit/?id=f339a3ef6369b368f3a2455792a7a3a4c28f92c4 > > > > commit f339a3ef6369b368f3a2455792a7a3a4c28f92c4 > > Author: Chuck Silvers > > AuthorDate: 2022-02-10 01:09:26 +0000 > > Commit: Chuck Silvers > > CommitDate: 2022-02-10 01:09:26 +0000 > > > > dtrace: remove unnecessary fflush() > > This call was added back in the early days of dtrace porting and > > no one knows why anymore. The extra flushing causes lots of > > unnecessary CPU overhead when a script produces lots of output, > > as well as easily losing output because the command can't keep up. > > Did you have some specific way to measure the CPU overhead of DTrace here? > I'm interested in this kind of performance measurements and I wonder if > anything more sophisticated than observing top(1) was used to test this > change. Thanks! I just looked at top and saw that the CPU usage of the dtrace process dropped from 100% to around 13%. More importantly, when the fflush was present dtrace would report that millions of output records were being dropped, and after the fflush was removed then dtrace no longer reported any dropped output. -Chuck From nobody Fri Feb 11 12:31:49 2022 X-Original-To: dtrace@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 1A09A19ABBDB; Fri, 11 Feb 2022 12:31:56 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwCfh05sdz4qp2; Fri, 11 Feb 2022 12:31:56 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-ej1-f49.google.com with SMTP id p24so22637804ejo.1; Fri, 11 Feb 2022 04:31:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ST+rlAZwhGj2OQwfOy2vA3DZ1L8iYBTWu418zCO1R/M=; b=cO9AZL+8Ex/78IAvSjM1c+dmKB1irElzWOCs2uVqcRi7Df4dxVoST/4+8MvJL/f/KD O58U/M2RHLvKAGgH04QCXKqgqygZNBwk/PmR5GqC+nAFTnLtnxExW4jPf+9vkK95CuDK mgxDKlYJhr5xX47zPLNZC2YmMvzWzZbqFB5JSa0p4xJtUzqHpB0iu5jZmU1TF4f1HNAQ YLIvTX2xulWrOa2tjhTCCa9HVn2wdTsz8K7LDA1VOPaeN+kdcEHcJeVTqolTZ1hqg3hw 3jsnI6vYiFk4DyzyrglfrlT9JnGvpWUwOSqTQdDPoA4POGuecmKz6y0ItUGqKxpg0jYQ RQ2Q== X-Gm-Message-State: AOAM532C3Fbdx4fyDWVf7tCz+GCV4w2W9eaoOQRqpmgwjYb/LneMgEdc 5LHz5yXETHQEldH14dUJqOL2ZsL2lylFZucb X-Google-Smtp-Source: ABdhPJyasw1CD3XGz8U1t95LATFRF3XytArdoEYaFVWz7pokPv3uKgByD9W6iB1v9kjDh6lqZEuErw== X-Received: by 2002:a17:906:af63:: with SMTP id os3mr1233214ejb.204.1644582708578; Fri, 11 Feb 2022 04:31:48 -0800 (PST) Received: from [192.168.0.104] (ip5f5bd4cf.dynamic.kabel-deutschland.de. [95.91.212.207]) by smtp.gmail.com with ESMTPSA id i9sm9402327eda.35.2022.02.11.04.31.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Feb 2022 04:31:47 -0800 (PST) Message-ID: <38e73169-d322-4c8f-0781-ac60e67c66da@FreeBSD.org> Date: Fri, 11 Feb 2022 13:31:49 +0100 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: git: f339a3ef6369 - main - dtrace: remove unnecessary fflush() Content-Language: en-US To: Chuck Silvers Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org, dtrace@freebsd.org References: <202202100248.21A2mMWw070398@gitrepo.freebsd.org> <50175512-5528-f93f-33cf-90f92f2e41b1@FreeBSD.org> From: Mateusz Piotrowski <0mp@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4JwCfh05sdz4qp2 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/02/2022 20:32, Chuck Silvers wrote: > On Thu, Feb 10, 2022 at 02:36:30PM +0100, Mateusz Piotrowski wrote: >> >> Did you have some specific way to measure the CPU overhead of DTrace here? >> I'm interested in this kind of performance measurements and I wonder if >> anything more sophisticated than observing top(1) was used to test this >> change. Thanks! > I just looked at top and saw that the CPU usage of the dtrace process > dropped from 100% to around 13%. More importantly, when the fflush was > present dtrace would report that millions of output records were being > dropped, and after the fflush was removed then dtrace no longer reported > any dropped output. Thanks! Mateusz From nobody Fri Feb 11 14:10:30 2022 X-Original-To: dtrace@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 4829E19B94CB for ; Fri, 11 Feb 2022 14:10:41 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwFrc2q7lz4VDC for ; Fri, 11 Feb 2022 14:10:40 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id B1B3E8D4A156 for ; Fri, 11 Feb 2022 14:10:32 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 473B8E70880 for ; Fri, 11 Feb 2022 14:10:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 6L6vOGMseuKA for ; Fri, 11 Feb 2022 14:10:31 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 09AA6E70871 for ; Fri, 11 Feb 2022 14:10:30 +0000 (UTC) Date: Fri, 11 Feb 2022 14:10:30 +0000 (UTC) From: "Bjoern A. Zeeb" To: dtrace@freebsd.org Subject: DTrace, kernel loader, unknown probes, enable on load? Message-ID: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 4JwFrc2q7lz4VDC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net X-Spamd-Result: default: False [-2.30 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[dtrace@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_NA(0.00)[zabbadoz.net]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[dtrace]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi, one of the drawbacks of Dtrace (and other tracing frameworks out there on various OSes) is that they do need a list of probes upfront before they can enable. Say I want to trace a kernel module from the moment it is loaded, that is currently not possible. What I am wondering is how hard it would be to "ignore" unknown probes but enable them the moment on loading matching ones. I assume that will probably need a callback through user space to complicate things but it should not be impossible. In case anyone has some spare time to draft this up, I'll be happily a first tester; otherwise the idea is out at least for someone to find it one day ... Lots of health, /bz -- Bjoern A. Zeeb r15:7 From nobody Fri Feb 11 14:23:47 2022 X-Original-To: dtrace@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 37EA419BF72E for ; Fri, 11 Feb 2022 14:23:52 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwG7q02bVz4YqJ for ; Fri, 11 Feb 2022 14:23:51 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x835.google.com with SMTP id t1so9116438qtq.13 for ; Fri, 11 Feb 2022 06:23:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Fh6nHCnGo8mS7leg8JIHj21bdKABASYq087fQsIe7pY=; b=XMgOgdmmbRoEvwHniSmJeQh/jBCrqTUbPOJLluDhJKm0uX/Fo/UNJs1yvUV+kWsTtz 8YcUCy0NdM76WG4WPBXm+4UHZUbEyJB8CRYpUYJ+2gjdOV62fZguP+cNgYgBNjT7BbX1 TqCTZz9FKLekoysMysZW/kBWNGrSr1Za1iKGFh5xiccW8NgMWsXkvcvtPXyj6uCusVN4 P7UIy+farWoDfX7mgPFjUPgh/XID+zu74snmjfRaYDtEkwE0VLCFtUee2xngT6FvQt2x n2ws9OsaB4qBhl3UFSCmj1PZaMy/HhdbIGSgUoxRiy1/7ga9A8c3GJFCN/JzVl7+Cht4 fBBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=Fh6nHCnGo8mS7leg8JIHj21bdKABASYq087fQsIe7pY=; b=69tA02jHOQHOhU6snpJixfqc3koTxR/ChFjONa4F9v1KSVf/4qRwNhcqPL57W+/epq AcJl/eFlsiyPRAmk5hc/LAEpGW9uORopAjXFRG2eNfJ3PAu2WrBLD10Y2bpUSu+I9eXo SzHbCDeHJw7NobessPuQYLmh2gxYsyjdc5NSON6RP98r07gNf73q78/FbYp+ILeLE2Od mla+4GviO4prZRkKP8El6umTavrqsnLRBHqot7p6ymNiA9bO27df2arWI9hCxWOEh/5Z OPNoDp9DEMlh8S33hW7iIfs0rReYk+yPWnUlv3sPCT7ZqIUY/Sn2eUDxLT3b4i9rDxQh IZVg== X-Gm-Message-State: AOAM532l6MFzhlPaCXVKQl759PzSjWvDVWdaGkUmo4ig/jP0wqBB2P8K 5ALM4Zkf9L7ffd0A1fDY1VW/ArLsrfY= X-Google-Smtp-Source: ABdhPJyw1Pdcnj06D+60aR7OQuHBy0Y+o7Mry/aoCdgnE+cgK1ox6+y1XOHToizUpO+OEw6lKQlhIA== X-Received: by 2002:a05:622a:64e:: with SMTP id a14mr1209857qtb.212.1644589430356; Fri, 11 Feb 2022 06:23:50 -0800 (PST) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id h9sm12037803qkn.121.2022.02.11.06.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 06:23:49 -0800 (PST) Date: Fri, 11 Feb 2022 09:23:47 -0500 From: Mark Johnston To: "Bjoern A. Zeeb" Cc: dtrace@freebsd.org Subject: Re: DTrace, kernel loader, unknown probes, enable on load? Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4JwG7q02bVz4YqJ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=XMgOgdmm; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::835:from]; MLMMJ_DEST(0.00)[dtrace]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Feb 11, 2022 at 02:10:30PM +0000, Bjoern A. Zeeb wrote: > Hi, > > one of the drawbacks of Dtrace (and other tracing frameworks out there > on various OSes) is that they do need a list of probes upfront before > they can enable. The probes don't have to exist, add -Z to the dtrace(1) parameters. > Say I want to trace a kernel module from the moment it is loaded, that > is currently not possible. So something like: # dtrace -n 'fbt::coretemp_identify:entry {stack();}' -Z # kldload coretemp ought to work, I think, but it doesn't. It's been a while since I looked at this code but I think it might be related to the unimplemented (on FreeBSD) portion of dtrace_probe_provide(). IIRC that's due to a lock order reversal... > What I am wondering is how hard it would be to "ignore" unknown probes > but enable them the moment on loading matching ones. I assume that > will probably need a callback through user space to complicate things > but it should not be impossible. > > In case anyone has some spare time to draft this up, I'll be happily a > first tester; otherwise the idea is out at least for someone to find > it one day ... > > Lots of health, > /bz > > -- > Bjoern A. Zeeb r15:7 > From nobody Fri Feb 11 15:47:12 2022 X-Original-To: dtrace@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 529B919B465B for ; Fri, 11 Feb 2022 15:47:20 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwJ043pv8z3P1d for ; Fri, 11 Feb 2022 15:47:16 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qv1-xf2d.google.com with SMTP id x3so3124485qvd.8 for ; Fri, 11 Feb 2022 07:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=k1T8gVJkcMUpVj1/0QdClQW1KMoI4gLxiLlwvpDl/3E=; b=EuB4HhkSzDv2vxL8q8PnSHS1GYCnb2x4SdoRSYcH/hZEjUkLFazQhhZCxHIKI/mWfH zjR6gJdDjafpP//iv+VPBm9eGKEgMPJoRYAgwvtTU36wu6bkxEwSKogF4UZPVNKFpkMG /9UOG+rEF+ggQ2bxtq7fBOdSn4ALlMJsdpiSNibYgm+sNHMcCK+Kujth5NioXbZEYN9+ QIYcojAoEtQBMRe8h6fBX07/lkKqF0gnRzJOvR55iigPPY3bE+W8q38I193Wc1O6wfYx 7fPq9FPJb7OYvs1PL/x8KTO8afjqetXufkzv8TzxSdoMntwHkO1PtWKocrea+cOt0Y3v stKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=k1T8gVJkcMUpVj1/0QdClQW1KMoI4gLxiLlwvpDl/3E=; b=p/DVUB679zEIkjfxsseoEbfqs7aAypvGMN+W7TZ88cwVA3RE74OIMbmIHjBjbpnj9V u8eGViLQdVbWhujT/n2HLLUXjGMM3/GwugJCDJ3UWZ+ycCMT99wvxubCOl/Vv0aU3ByJ hPm8HTuqcOba041Z5xtr0Z9k/XfP7COmuoE2pZ681tpgRaMaCuZ8/qhOBFdRtIOGfBVh l7+AUjgoigsnET5fFIZuv4RE2iHCjVLd6+0W5bDJjK+X5sQSN3oKyhH4MnxY++Sz0JfY WcEtwgovDnGWno+NZdEho0vl5jjorhr/CTYk8/uJoV9DIoPuMHw9pi8Q4ccgiaOSqLXz wpDw== X-Gm-Message-State: AOAM530HvJJknIYBO2lJ47fOefASIHPYyKrkcaACa4WbLfUQffO1y8ue ZT0oHviuPsF5cUeT1kYy7grcKe6NLp4= X-Google-Smtp-Source: ABdhPJxo6eGmH42DYGBcO8K44GaAEQxDoz+OlLJJpWLW4Ts4LT6ihPtDfvrvyjE+f+YmLK6KaRd04w== X-Received: by 2002:a05:6214:1c05:: with SMTP id u5mr1504775qvc.46.1644594436007; Fri, 11 Feb 2022 07:47:16 -0800 (PST) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id a14sm13015062qtb.92.2022.02.11.07.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 07:47:15 -0800 (PST) Date: Fri, 11 Feb 2022 10:47:12 -0500 From: Mark Johnston To: "Bjoern A. Zeeb" Cc: dtrace@freebsd.org Subject: Re: DTrace, kernel loader, unknown probes, enable on load? Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4JwJ043pv8z3P1d X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=EuB4HhkS; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::f2d as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; BLOCKLISTDE_FAIL(0.00)[198.84.189.58:server fail,2607:f8b0:4864:20::f2d:server fail]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2d:from]; MLMMJ_DEST(0.00)[dtrace]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Feb 11, 2022 at 09:23:47AM -0500, Mark Johnston wrote: > On Fri, Feb 11, 2022 at 02:10:30PM +0000, Bjoern A. Zeeb wrote: > > Hi, > > > > one of the drawbacks of Dtrace (and other tracing frameworks out there > > on various OSes) is that they do need a list of probes upfront before > > they can enable. > > The probes don't have to exist, add -Z to the dtrace(1) parameters. > > > Say I want to trace a kernel module from the moment it is loaded, that > > is currently not possible. > > So something like: > > # dtrace -n 'fbt::coretemp_identify:entry {stack();}' -Z > # kldload coretemp > > ought to work, I think, but it doesn't. It's been a while since I > looked at this code but I think it might be related to the unimplemented > (on FreeBSD) portion of dtrace_probe_provide(). IIRC that's due to a > lock order reversal... I see now: the problem is that FBT registers probes after KLD SYSINITs and module hooks are invoked. See dtrace_module_loaded(), which (asynchronously) calls dtrace_enabling_matchall() to see if any newly registered probes match pending "retained enablings", in this case, enablings created by dtrace -Z. We could perhaps add a new eventhandler that gets called before anything in the KLD is executed, and register probes at that point. Or, if the code you're interested runs after SYSINITs are finished, then -Z might be sufficient today. > > What I am wondering is how hard it would be to "ignore" unknown probes > > but enable them the moment on loading matching ones. I assume that > > will probably need a callback through user space to complicate things > > but it should not be impossible. > > > > In case anyone has some spare time to draft this up, I'll be happily a > > first tester; otherwise the idea is out at least for someone to find > > it one day ... > > > > Lots of health, > > /bz > > > > -- > > Bjoern A. Zeeb r15:7 > > From nobody Fri Feb 11 15:52:37 2022 X-Original-To: dtrace@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 83E9419B5F85 for ; Fri, 11 Feb 2022 15:52:43 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwJ6L5wXlz3Q3v; Fri, 11 Feb 2022 15:52:42 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id C7A7F8D4A156; Fri, 11 Feb 2022 15:52:40 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 551CAE70871; Fri, 11 Feb 2022 15:52:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id cB6gPA_3Llvt; Fri, 11 Feb 2022 15:52:38 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 4DED8E707AF; Fri, 11 Feb 2022 15:52:38 +0000 (UTC) Date: Fri, 11 Feb 2022 15:52:37 +0000 (UTC) From: "Bjoern A. Zeeb" To: Mark Johnston cc: dtrace@freebsd.org Subject: Re: DTrace, kernel loader, unknown probes, enable on load? In-Reply-To: Message-ID: References: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4JwJ6L5wXlz3Q3v X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 2a01:4f8:13b:39f::9f:25 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net X-Spamd-Result: default: False [-2.30 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zabbadoz.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[dtrace]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, 11 Feb 2022, Mark Johnston wrote: > On Fri, Feb 11, 2022 at 09:23:47AM -0500, Mark Johnston wrote: >> On Fri, Feb 11, 2022 at 02:10:30PM +0000, Bjoern A. Zeeb wrote: >>> Hi, >>> >>> one of the drawbacks of Dtrace (and other tracing frameworks out there >>> on various OSes) is that they do need a list of probes upfront before >>> they can enable. >> >> The probes don't have to exist, add -Z to the dtrace(1) parameters. >> >>> Say I want to trace a kernel module from the moment it is loaded, that >>> is currently not possible. >> >> So something like: >> >> # dtrace -n 'fbt::coretemp_identify:entry {stack();}' -Z >> # kldload coretemp >> >> ought to work, I think, but it doesn't. It's been a while since I >> looked at this code but I think it might be related to the unimplemented >> (on FreeBSD) portion of dtrace_probe_provide(). IIRC that's due to a >> lock order reversal... > > I see now: the problem is that FBT registers probes after KLD SYSINITs > and module hooks are invoked. See dtrace_module_loaded(), which > (asynchronously) calls dtrace_enabling_matchall() to see if any newly > registered probes match pending "retained enablings", in this case, > enablings created by dtrace -Z. We could perhaps add a new eventhandler > that gets called before anything in the KLD is executed, and register > probes at that point. Or, if the code you're interested runs after > SYSINITs are finished, then -Z might be sufficient today. -Z didn't do it last I tried. I wasn't expecting it to actually enable the probes at a later time based on the man page. Having something which will do the job before SYSINTs are run, that would be awesome. >>> What I am wondering is how hard it would be to "ignore" unknown probes >>> but enable them the moment on loading matching ones. I assume that >>> will probably need a callback through user space to complicate things >>> but it should not be impossible. >>> >>> In case anyone has some spare time to draft this up, I'll be happily a >>> first tester; otherwise the idea is out at least for someone to find >>> it one day ... >>> >>> Lots of health, >>> /bz >>> >>> -- >>> Bjoern A. Zeeb r15:7 >>> > > -- Bjoern A. Zeeb r15:7 From nobody Fri Feb 11 16:06:18 2022 X-Original-To: dtrace@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 16E7919BED55 for ; Fri, 11 Feb 2022 16:06:23 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwJQ632C2z3lSN for ; Fri, 11 Feb 2022 16:06:22 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x835.google.com with SMTP id j12so9464680qtr.2 for ; Fri, 11 Feb 2022 08:06:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=CpUNmGYW3Aho1WveN9vkjvTguLPFsgqZSgQuGMqs/GA=; b=aEuRDmhaXky5Smxb1NmWl1F/2v0jyeuV0Q/+boWDENYh4UxdkcZSKWn1PpMBI3hDwB u4TJ88oBl6e/EnTKneJ7On4Jrc9v893DfHJNXh8xdxVLEO21hrwNYdl+/IsSQhfBZqAe UH0UGd8Um9TCtxuGgjc+pqiE6SG63BSCAo8YBvmeVYqSmUMMlHTUjk2kiFBbpsLHUOha H7zzywLtw9XdY+GFx5Qvw2/WMs+ykOKwHz/iTUGfrxy+Wo/MDTVb/4/Kbi+QRqXCIxc+ WJmT/em7nGQ0lmlrjWmJPtfsHipTlgGhiRrHCxWhfuDLMk05jbiOtPbooNw6bVZ3237T Kv1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=CpUNmGYW3Aho1WveN9vkjvTguLPFsgqZSgQuGMqs/GA=; b=u7SZuLPX0k8rG0btsCwmMEgx6KsnBlrx5YLxb21acy2s3pswF2yoNXyKsjS46P/lgx jT43iExRU7LSFv9DpYl8kNeyzZuU0jAueQAf1cf2DnZc5jLLDa2ynkrBcTOozJ1Rb7ge MDDVD8V8IvEHOz99DiSUZfNcucUc1pnMw5BnKjv8RGcKsH9zqCCq4HkUjAFW8+ZsqmKW vyLXv58JuKH8xwrQda18hps/x5ckx98JrDPtVdDQDMZOnvGBUf0WDCW0r00ST5Iixhzw gwZYUXcsInWs+R3FLy8IXhcR0xf4FMy9QKMMfNJGCcftk8PKkfbUpvGrNX+0+8Tz/miH yVXA== X-Gm-Message-State: AOAM532mssDALqZdwg37KM9RonbMgfJXD5ss5+4kRtl9hKsZxZoODnHc UmGGrl7ujOhjFV/8zA/WhTVJTg+UxHU= X-Google-Smtp-Source: ABdhPJyxL8DdusjBR2qDQxCfUu8ys3oIl1It1NrG/SA1Be/lTdiMVj7Kz82LfoDCIWWVm3xJQFqNEA== X-Received: by 2002:ac8:4e90:: with SMTP id 16mr1599610qtp.595.1644595581849; Fri, 11 Feb 2022 08:06:21 -0800 (PST) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id u9sm11809709qko.110.2022.02.11.08.06.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 08:06:21 -0800 (PST) Date: Fri, 11 Feb 2022 11:06:18 -0500 From: Mark Johnston To: "Bjoern A. Zeeb" Cc: dtrace@freebsd.org Subject: Re: DTrace, kernel loader, unknown probes, enable on load? Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4JwJQ632C2z3lSN X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=aEuRDmha; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::835:from]; MLMMJ_DEST(0.00)[dtrace]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Feb 11, 2022 at 03:52:37PM +0000, Bjoern A. Zeeb wrote: > On Fri, 11 Feb 2022, Mark Johnston wrote: > > > On Fri, Feb 11, 2022 at 09:23:47AM -0500, Mark Johnston wrote: > >> On Fri, Feb 11, 2022 at 02:10:30PM +0000, Bjoern A. Zeeb wrote: > >>> Hi, > >>> > >>> one of the drawbacks of Dtrace (and other tracing frameworks out there > >>> on various OSes) is that they do need a list of probes upfront before > >>> they can enable. > >> > >> The probes don't have to exist, add -Z to the dtrace(1) parameters. > >> > >>> Say I want to trace a kernel module from the moment it is loaded, that > >>> is currently not possible. > >> > >> So something like: > >> > >> # dtrace -n 'fbt::coretemp_identify:entry {stack();}' -Z > >> # kldload coretemp > >> > >> ought to work, I think, but it doesn't. It's been a while since I > >> looked at this code but I think it might be related to the unimplemented > >> (on FreeBSD) portion of dtrace_probe_provide(). IIRC that's due to a > >> lock order reversal... > > > > I see now: the problem is that FBT registers probes after KLD SYSINITs > > and module hooks are invoked. See dtrace_module_loaded(), which > > (asynchronously) calls dtrace_enabling_matchall() to see if any newly > > registered probes match pending "retained enablings", in this case, > > enablings created by dtrace -Z. We could perhaps add a new eventhandler > > that gets called before anything in the KLD is executed, and register > > probes at that point. Or, if the code you're interested runs after > > SYSINITs are finished, then -Z might be sufficient today. > > -Z didn't do it last I tried. I wasn't expecting it to actually > enable the probes at a later time based on the man page. > > Having something which will do the job before SYSINTs are run, that > would be awesome. It appears to be sufficient to simply move the kld_load hook to before module registration, patch below. In the case of a subsequent error, the unload hook is called so DTrace gets a chance to clean up. I can't see any reasons not to move it, though there's at least one non-dtrace consumer that needs a look. diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 2e4c95f16c8f..55661b9f9aa2 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -452,6 +452,7 @@ linker_load_file(const char *filename, linker_file_t *result) if (error != ENOENT) foundfile = 1; if (lf) { + EVENTHANDLER_INVOKE(kld_load, lf); error = linker_file_register_modules(lf); if (error == EEXIST) { linker_file_unload(lf, LINKER_UNLOAD_FORCE); @@ -472,7 +473,6 @@ linker_load_file(const char *filename, linker_file_t *result) return (ENOEXEC); } linker_file_enable_sysctls(lf); - EVENTHANDLER_INVOKE(kld_load, lf); *result = lf; return (0); } From nobody Sat Feb 12 00:16:45 2022 X-Original-To: dtrace@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 CFD4019B0B46 for ; Sat, 12 Feb 2022 00:16:51 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwWJ257SPz5953; Sat, 12 Feb 2022 00:16:50 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id A14A98D4A214; Sat, 12 Feb 2022 00:16:48 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 30868E707FD; Sat, 12 Feb 2022 00:16:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 8tobT8MENKcT; Sat, 12 Feb 2022 00:16:46 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 6A8F7E707E8; Sat, 12 Feb 2022 00:16:46 +0000 (UTC) Date: Sat, 12 Feb 2022 00:16:45 +0000 (UTC) From: "Bjoern A. Zeeb" To: Mark Johnston cc: dtrace@freebsd.org Subject: Re: DTrace, kernel loader, unknown probes, enable on load? In-Reply-To: Message-ID: References: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4JwWJ257SPz5953 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net X-Spamd-Result: default: False [-0.30 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zabbadoz.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[dtrace]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, 11 Feb 2022, Mark Johnston wrote: > It appears to be sufficient to simply move the kld_load hook to before > module registration, patch below. In the case of a subsequent error, > the unload hook is called so DTrace gets a chance to clean up. I can't > see any reasons not to move it, though there's at least one non-dtrace > consumer that needs a look. HWPMC? It does work for my case with -Z which will ease work massively. I can't wait for the "morning" and more time then to look at things :-) Please put me on subscribers should you put up a review. Thanks a lot Mark and a happy weekend! Bjoern > diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c > index 2e4c95f16c8f..55661b9f9aa2 100644 > --- a/sys/kern/kern_linker.c > +++ b/sys/kern/kern_linker.c > @@ -452,6 +452,7 @@ linker_load_file(const char *filename, linker_file_t *result) > if (error != ENOENT) > foundfile = 1; > if (lf) { > + EVENTHANDLER_INVOKE(kld_load, lf); > error = linker_file_register_modules(lf); > if (error == EEXIST) { > linker_file_unload(lf, LINKER_UNLOAD_FORCE); > @@ -472,7 +473,6 @@ linker_load_file(const char *filename, linker_file_t *result) > return (ENOEXEC); > } > linker_file_enable_sysctls(lf); > - EVENTHANDLER_INVOKE(kld_load, lf); > *result = lf; > return (0); > } > > -- Bjoern A. Zeeb r15:7 From nobody Mon Feb 14 11:03:47 2022 X-Original-To: freebsd-dtrace@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 C4F6E19B0799; Mon, 14 Feb 2022 11:03:58 +0000 (UTC) (envelope-from akamit91@hotmail.com) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2041.outbound.protection.outlook.com [40.92.19.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jy1Yn4zdWz4l4W; Mon, 14 Feb 2022 11:03:54 +0000 (UTC) (envelope-from akamit91@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MakKzml3pVjjCu+i3il1+BbSZfvU1XUqVNud1+l9DAHfpHy5BzWpcBk+KEUzPI+wxOukci5j6VgGwNhFX0tlYeKqDmkwUTVBp8DV44FvoQbpc+DzXnCvk111W2UQ+tURigaZa3miqRkdpVxgYq8I0RjS4yt+u+xJSThLA8JtpIRLrTN9cWL5LDmtVP1E7iqiKcxrywxmpgU4rHklGKmwEjazwtHJrzD/zy9iwiVRtplmbl1DycZ/gHJfBZI1AdqRDAWOjUGkKioEg2K3fOWDtavnL8YBO/mitnVuDhDXl20SB/g1REG7bSXNCs2bK1ajEIvqURPUqByUR/WPQeLDqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nCglUqtXDQKn1NhKrLShLPLRpt/o5ztTKiM6oDGurvI=; b=hAzgtImI/SVoo5CvmtNdzo3ClWQ4S8BNKf9NO2XjVlEL88dbeY1PyTrR2ZrsEqjDJVSlnylwYQXeLP2BA4GCAXHeTcL0TF1fsx6yY2lAGeVklo9XRcdQ3hzrAIw68olbBHvxoqXjw1kmMRuCm5DtOFdku/9yLeHEoIo6/O9W950vAaZntCq8swtWackcVmA43fULVYYvloWgGNvzUebS6RoiE/L3aSIISrJ1xfSic1WafDDhz3qxiylmhqn53hqCGOGWeMGdhTIU8U1c4OoDCyDz1TB3JnpTy4d3+PXtPPDeYop7QyHrb4fpD4Lqd91cev5ka9Cu93PrkKFC7H4hYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nCglUqtXDQKn1NhKrLShLPLRpt/o5ztTKiM6oDGurvI=; b=ilOcNMRozmZXuJufjmGrCLsxsGt+UQXJSIGuFWzOFQ1yagge7FZPuuoZ46ATnV0lGpQGOQRyuPLg0NNQif4CgMCqAUQN7ZVLP+r56e0Ey9b+ODUl/z/hQLRGh5iO9zv2HFpGSQR2e4zWz24KYFLVDdEHIwqGbcgwD3D6dSGyQwAtpmA++H6Z9OCmR5X5B2zSi5cB5Px9lrpTyy2yuuWE3nzq1n6M9vtwX2rSRt5V0f7wCcRZT0BI0zl9z12jPS+7FhnZLdZMFnTVv7RvmSB/oNOMVqKzaHMoLWfEVZdNw58DmbaDbblTKwWLjI6fB04i5bv7TPSUGRoaHxmYC4h8Mg== Received: from SJ0PR18MB4932.namprd18.prod.outlook.com (2603:10b6:a03:40f::17) by DM8PR18MB4472.namprd18.prod.outlook.com (2603:10b6:8:29::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.19; Mon, 14 Feb 2022 11:03:47 +0000 Received: from SJ0PR18MB4932.namprd18.prod.outlook.com ([fe80::7c29:2fa5:e2d9:a913]) by SJ0PR18MB4932.namprd18.prod.outlook.com ([fe80::7c29:2fa5:e2d9:a913%4]) with mapi id 15.20.4975.015; Mon, 14 Feb 2022 11:03:47 +0000 From: Amit kumar To: "freebsd-dtrace@FreeBSD.org" , "freebsd-arch@freebsd.org" CC: "markj@FreeBSD.org" Subject: dtrace fails to trace on FreeBSD-14(CURRENT) with ASLR and W^X Thread-Topic: dtrace fails to trace on FreeBSD-14(CURRENT) with ASLR and W^X Thread-Index: AQHYIYwcE2zkkoggs0iIye4ydJzSsA== Date: Mon, 14 Feb 2022 11:03:47 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: 0f29d0e1-d00c-57be-6602-6da277a4689c x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [uJN6ZPyltwb+LPcOGJ8YkQ26POYztG6T] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 900f683a-a6b8-448b-0e7f-08d9efa9ac6f x-ms-traffictypediagnostic: DM8PR18MB4472:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zZgVF8iUHIAdVKT29jJHlh7VPnRYOgkbkc4+UDKYARfWFpJnTBCa6L+7ojjcNCYbxNToJ3ETrCL6XESJwyc+wYu1pFum3vrg6gjYHF2CKm1BwzSgjt/CbjLnqQuU9xh2iKcUdywKp6zsVlwqwtBxZ/vOqUIIFOomceSvZrIvyKhVXsmIlnNHQmZ3hNSd86J2IFlLYTc+HCC7md54HE5N6dRRxEHc/55h9z3Ja743ei9BRvtdlyx3swY7IH8YSkjCv9lnJnpHDRl+3l5zHwzRUplVHuJg4H0fxEiQZQytkMRXUhViw6PF7CgptzRDThlUypvb76ESvMyrUjlGBVVtYOYgB2ODGNOGYmRBBx9PJbXVsW61dscSuqZLmCs9bcVmHhCjtr06dR+vshjnoCmYcX59QucEHVXh5MCHJBygSEhtsCMxSc4SJb+9dIKnMtDhQyGxDpWHyHHELuRG56W5OEMVNnY5RVOKMQLYkJtWQdf6kM7JPh42Bp9NoNtp1y7VaqSePz4jRMKAd2PKrBbh7gWQvfprcLSJHMDBRfMcpyB9d32k1Eccf9kWQgMoy7LDtyWpaIPIUHs7JP2M23YPiw/H2DLajrl5HxZWAcOgWrkSU5iYMCaYeZmAxzb3ATdE x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: neqHftvqh6C10+Y6u9Dy9uXQ5QczXfw9eaOfpjFbQpIGTtZJxxFBmGsy7wUG4FOyUtQIyxR+lnfa//U1eM1u2Eeakssm4E5k2phHLI02mi2m7VxWEVl+pB+90dZ0AJxdENyQZt6ERJ/maoab566XxRo3ksHdl6zfrQnpIAxwwpPqXyZHcDaz8osir3yE+sanDPd3aDEM2gMutbADJ8IyVReysqfpc/VWodgxNipIhGpVMP4wt9HAj1WnUr4PRDWki9cjpoztn3se+VU/6HbBHjEVbwNJKtKtzQ+2DQZOcK4L1JVSoSjEsAedh5gZWvzY51/DEU/kKdSstmwVF3yeM6U7nw+bWvAWHRfZ7i3etqP7AMSmE68z5ur+73TgDXGTOe2IGsVoea3RfF4tz2j2pmr2/8ZXf5ZB7adLhnfgRdXNw5x2u9i8hfy62WMe4BWWUPLS041NIj+EQGrdJEErxagWSd6zSgXr73AIDIUGyrOc3tkAjCIjAti2xJJA1qnaXT3IWYHddkJiAaPciHW3epY8PpudSF7XRY4BrTE9JsDQMFlES6/jA+fQXcNda839FpZTkyeXbXpYyeqkeq2RgLuhGlXD0ZU36oGyM1ZcwbK+YQ7KM0jk1E2rFzT6FdFFChk57OFGZzKtZRkGeI5dUFLOgWVKouaFaBWagqz6UNfiWhvWvIJT/umdfofTF6uSGRUnpBC5Ug1rvurkwwba6mPyIjqcQVMTi1uL5Y2zatUlkjrkPIV/jgg3OAp1CEk9MB8f+NXcMzZqYUqwjXRKgJgwtwLOgjv8vj7nlq82BvEIop0pbKJwLQ8obH2xdPgsC3efuHfOa9rKpyKoGuaIFaYfcv6kPgtIv9GJai2pNEsW73UiQmCiaglKeUVYEETrTRQX95C4rgmmZGiFqnMkmmKJmY+R1Bp6KVpJd1g53N5UNXpyxc9GMc/q+SwYPnOy Content-Type: multipart/alternative; boundary="_000_SJ0PR18MB49326C3D1DF915EB841CC2D8DC339SJ0PR18MB4932namp_" List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-db494.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR18MB4932.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 900f683a-a6b8-448b-0e7f-08d9efa9ac6f X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2022 11:03:47.0481 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR18MB4472 X-Rspamd-Queue-Id: 4Jy1Yn4zdWz4l4W X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=ilOcNMRo; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of akamit91@hotmail.com designates 40.92.19.41 as permitted sender) smtp.mailfrom=akamit91@hotmail.com X-Spamd-Result: default: False [-4.91 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.19.41:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[hotmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[hotmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[40.92.19.41:from]; NEURAL_HAM_SHORT(-0.91)[-0.912]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-dtrace,freebsd-arch]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --_000_SJ0PR18MB49326C3D1DF915EB841CC2D8DC339SJ0PR18MB4932namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Encountered this issue while running https://github.com/freebsd/freebsd-src= /blob/main/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.empt= ystack.d a somewhat simpler method to reproduce configuration file /usr/bin/find /usr/bin/find: ELF 64-bit LSB shared object, x86-64, <.....> kern.elf64.allow_wx: 0 kern.elf64.aslr.pie_enable: 1 kern.elf64.aslr.enable: 1 # dtrace -n pid92817:::entry dtrace: description 'pid92817:::entry' matched 4380 probes [2] + trace trap (core dumped) exec find / > /dev/null 2>&1 # exec find / > /dev/null 2>&1 & [1] 85293 # dtrace -n pid85293:a.out:: dtrace: description 'pid85293:a.out::' matched 6828 probes [1] + trace trap (core dumped) exec find / > /dev/null 2>&1 CPU ID FUNCTION:NAME 1 89149 find_execute:1f8 looking at find core in gdb (gdb) p $_siginfo $1 =3D { si_signo =3D 5, si_errno =3D 0, si_code =3D 3, . . . Can someone help me understand why am I seeing core due to SIGTRAP TRAP_DTR= ACE ? Regards Amit --_000_SJ0PR18MB49326C3D1DF915EB841CC2D8DC339SJ0PR18MB4932namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

a somewhat simpler method to reproduce 

configuration
file /usr/bin/= find
/usr/bin/find: ELF 64-bit LSB sha= red object, x86-64, <.....>

kern.elf64.allow_wx: 0
kern.elf64.aslr.pie_enable: 1
kern.elf64.aslr.enable: 1

# dtrace -n pid92817:::entry
dtrace: description 'pid92817:::entry' matched 4380 probes
[2]  + trace trap (core dumped)  exec find / > /dev/null= 2>&1

# exec = find / > /dev/null 2>&1 &
[1] 85293
# dtrace -n pid85293:a.= out::
dtrace: description 'pi= d85293:a.out::' matched 6828 probes
[1] + trace trap (core = dumped) exec find / > /dev/null 2>&1
CPU ID FUNCTION:NAME
1 89149 find_execute:1f= 8

looking at find core in gdb
(gdb) p $_siginfo
$1 =3D {
  si_signo =3D 5,
  si_errno =3D 0,
  si_code =3D 3,
  .
  .
  .

Can someone help me understand why = am I seeing core due to SIGTRAP TRAP_DTRACE ?

Regards
Amit
--_000_SJ0PR18MB49326C3D1DF915EB841CC2D8DC339SJ0PR18MB4932namp_-- From nobody Mon Feb 14 13:53:31 2022 X-Original-To: freebsd-dtrace@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 46E5619CE371 for ; Mon, 14 Feb 2022 13:53:43 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jy5Kf2QLGz548h for ; Mon, 14 Feb 2022 13:53:42 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x732.google.com with SMTP id m25so14356538qka.9 for ; Mon, 14 Feb 2022 05:53:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6GZE7o1kBAiYAHW/wF23WwrMNH9txxmpB1TTrC+0eW8=; b=RrjL3z1zrBdOAPpmVWPiySsQs6zJF0WmG2hpfoDRFb+9+1riZ1o7dLwnaGY6EtLnSL 1EZNGhen5yplvWnV6WAYMh9rtUwPRvYFgPDvZkSMfLR/Qaa1d9FZjNaBCPdLt1KXHoRV Ea9D8doYP0PdV3fMjFG5JASD2K+b1Fq/1z1BFywG1oD1XZnE3PycUBhwxhamnEbzk5E5 hso1HUSNF7xBycvWSihHgy6Es1ZMaWtPygtlBdraEpwBTjZHwWGtFA8jbAlYjI6TTPYL uALOpjGNBXswZUM0agsXwTAjnqXHp79rR1Ykyer+OgI2JWSChfR6sben/UHz2msbV+F9 S5FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=6GZE7o1kBAiYAHW/wF23WwrMNH9txxmpB1TTrC+0eW8=; b=BSd0MSCtVGSnD23lM1BY28yr0F+poAUXwrNYGQwkU3fXX18kGgUe99JcXGzYzfApr2 USxwre2tynp6tT+UpsTuhFMpojslxccX3hDuq7CX/mq3lJluGgVp30SNmC75DLg+5EbU WASpCSK/EojORjBc+XFV67M0YjwQ4hZ574u/0wlXlkZ2RKMJiYbVM2XXPCtUqvX0mXQC z14DEIGRJr1Z7x2ooTmQleZzAfn3DaMG9vcZhsTEcR7KA/UvM4mRfKLkH9XNLj/g4ktJ SlBsDw6VwFMzynnc3Erk2SvGACSJT4DL7U+OzzXACpGasUhYNu9Yan4R5sg8QOKT5YN6 5vtA== X-Gm-Message-State: AOAM530W67o118dU5F2VReQ4SzozjuLExj9tFXEEWah3mLCquQIhylwS 1vJm+RJ1FPF2TYlhz8Mr3ULc8FmGLXw= X-Google-Smtp-Source: ABdhPJzWlc25qm6QQPS9rcNNO68nZ8oUnG5sG3C71vUfrlAAk71PzsNbpm7uyGKYYeqSiosAhhktYQ== X-Received: by 2002:a37:a10a:: with SMTP id k10mr6942672qke.747.1644846815133; Mon, 14 Feb 2022 05:53:35 -0800 (PST) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id y15sm16579534qkp.22.2022.02.14.05.53.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 05:53:34 -0800 (PST) Date: Mon, 14 Feb 2022 08:53:31 -0500 From: "markj@FreeBSD.org" To: Amit kumar Cc: "freebsd-dtrace@FreeBSD.org" Subject: Re: dtrace fails to trace on FreeBSD-14(CURRENT) with ASLR and W^X Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Jy5Kf2QLGz548h X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=RrjL3z1z; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.70 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[hotmail.com]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_DN_EQ_ADDR(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::732:from]; MLMMJ_DEST(0.00)[freebsd-dtrace]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Feb 14, 2022 at 11:03:47AM +0000, Amit kumar wrote: > Encountered this issue while running https://github.com/freebsd/freebsd-src/blob/main/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.emptystack.d > > a somewhat simpler method to reproduce > > configuration > file /usr/bin/find > /usr/bin/find: ELF 64-bit LSB shared object, x86-64, <.....> > > kern.elf64.allow_wx: 0 > kern.elf64.aslr.pie_enable: 1 > kern.elf64.aslr.enable: 1 Does the problem persist with allow_wx = 1? > # dtrace -n pid92817:::entry > dtrace: description 'pid92817:::entry' matched 4380 probes > [2] + trace trap (core dumped) exec find / > /dev/null 2>&1 > > # exec find / > /dev/null 2>&1 & > [1] 85293 > # dtrace -n pid85293:a.out:: > dtrace: description 'pid85293:a.out::' matched 6828 probes > [1] + trace trap (core dumped) exec find / > /dev/null 2>&1 > CPU ID FUNCTION:NAME > 1 89149 find_execute:1f8 > > looking at find core in gdb > (gdb) p $_siginfo > $1 = { > si_signo = 5, > si_errno = 0, > si_code = 3, > . > . > . > > Can someone help me understand why am I seeing core due to SIGTRAP TRAP_DTRACE ? > > Regards > Amit From nobody Mon Feb 14 13:59:34 2022 X-Original-To: dtrace@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 AC46019CF510 for ; Mon, 14 Feb 2022 13:59:39 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jy5SV5B0Zz54w7 for ; Mon, 14 Feb 2022 13:59:38 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x72f.google.com with SMTP id c189so14350948qkg.11 for ; Mon, 14 Feb 2022 05:59:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6kLW6u1yD037MJtz/M2yf/Y598fwdKdrsD37e58YyHU=; b=PQfK8NabaQObBg/YLRgj0IBie2eUrDIE7aw4LpXZQJOdvLKRC7lYYkxqXAmuTSJWuC bsI/jysPkO9gwA+IxkL3ge5ZFnKSKYY0zO2ytV62cvp4EbRNNw8LrrZIAI95YYgf0L0Z bmZW1R0G+4ocuAU2OyxKte1awZZ13rvUDylB7+6+O+wt0a+hGLdwqH9qQy6dz96O6sqZ Qzuyn/OVTbtblg+HqmrO54swNFWPrg176bY7R3uJOoIFbUJT/pHQA+pTaH2b9o575PRr qo2IbF1282Sc8r0WZ6YkGYv0kbhuBlqTQ2GHJ1CSA1dog8P4W/fbxGb3L1B//2ePkuAw JuvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=6kLW6u1yD037MJtz/M2yf/Y598fwdKdrsD37e58YyHU=; b=AgqIct7kzb5O+3iKhWJQ3p6s4A+pYpBFZvaZiXvtP4P9AHxUcAd7+4gt1uyKZ4owBZ U8awuYnJf4ze/MaIgxWvkOn1KvutK2EeoCCvk258dFlWlmP69Emg0/QT4ykx4YeWy6EB lEmBZ7UBY865oXvDMxv/7IHHoV61YU0KPW0tuyTlsBmlJGAqKojZlm51Oe/YiCuzLW9k IZ668V5dXQkvSunA2ozdvc6RY6YDCjOkoWqyW80K7SNN9z3UuZSyh8Xerrzstbzh+n5x Hyzn3yzQJX08neANNrpjxZf5IYOOPoJRpwbz8wv9SBgMsW5rZT+eIyMquCTriMhDX9Uh NPvA== X-Gm-Message-State: AOAM533Z1CNKjCVrCpRBmJ6STN57X9ARB++EML9MNRxntWlPNxDqMIAZ RhkXBsdfhojiAMvqSNkaj77uGediXVY= X-Google-Smtp-Source: ABdhPJwjFRezZanVjih6TSlNfmtpW08Kk13QLkcg59AIp9BSQJGrFTHCTjn/ViG7oqrQvoU/ZO8D6A== X-Received: by 2002:a05:620a:4093:: with SMTP id f19mr7009239qko.306.1644847178224; Mon, 14 Feb 2022 05:59:38 -0800 (PST) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id h9sm16387358qkn.121.2022.02.14.05.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 05:59:37 -0800 (PST) Date: Mon, 14 Feb 2022 08:59:34 -0500 From: Mark Johnston To: "Bjoern A. Zeeb" Cc: dtrace@freebsd.org Subject: Re: DTrace, kernel loader, unknown probes, enable on load? Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Jy5SV5B0Zz54w7 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=PQfK8Nab; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::72f as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72f:from]; MLMMJ_DEST(0.00)[dtrace]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sat, Feb 12, 2022 at 12:16:45AM +0000, Bjoern A. Zeeb wrote: > On Fri, 11 Feb 2022, Mark Johnston wrote: > > > It appears to be sufficient to simply move the kld_load hook to before > > module registration, patch below. In the case of a subsequent error, > > the unload hook is called so DTrace gets a chance to clean up. I can't > > see any reasons not to move it, though there's at least one non-dtrace > > consumer that needs a look. > > HWPMC? Yes. > > It does work for my case with -Z which will ease work massively. > I can't wait for the "morning" and more time then to look at things :-) > > Please put me on subscribers should you put up a review. So there's one wrinkle I haven't thought through: when FBT probes are enabled in a KLD, we use the kld_unload_try eventhandler to block unloading of the module. Now, if we permit FBT probes to be enabled in a KLD before its sysinits run, then the kldload might fail, and the kernel linker will try to unload the module. But then FBT will block the unload. What's the right thing to do there? > Thanks a lot Mark and a happy weekend! > Bjoern > > > > diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c > > index 2e4c95f16c8f..55661b9f9aa2 100644 > > --- a/sys/kern/kern_linker.c > > +++ b/sys/kern/kern_linker.c > > @@ -452,6 +452,7 @@ linker_load_file(const char *filename, linker_file_t *result) > > if (error != ENOENT) > > foundfile = 1; > > if (lf) { > > + EVENTHANDLER_INVOKE(kld_load, lf); > > error = linker_file_register_modules(lf); > > if (error == EEXIST) { > > linker_file_unload(lf, LINKER_UNLOAD_FORCE); > > @@ -472,7 +473,6 @@ linker_load_file(const char *filename, linker_file_t *result) > > return (ENOEXEC); > > } > > linker_file_enable_sysctls(lf); > > - EVENTHANDLER_INVOKE(kld_load, lf); > > *result = lf; > > return (0); > > } > > > > > > -- > Bjoern A. Zeeb r15:7 From nobody Mon Feb 14 14:03:54 2022 X-Original-To: freebsd-dtrace@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 01B31194837B for ; Mon, 14 Feb 2022 14:03:57 +0000 (UTC) (envelope-from akamit91@hotmail.com) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2041.outbound.protection.outlook.com [40.92.19.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jy5YS0x0Bz55hK; Mon, 14 Feb 2022 14:03:56 +0000 (UTC) (envelope-from akamit91@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ESnnShC6PDJCcR/HVncBowAdhJJo/oN4I8dXU7SKOT8JPdbm0p+Jfhp3dBli1G+LiFoEx97iB678mBGHjKcsYHvl6JY/5lYy8dpLX5cWeXx+EXHPd4h6tCGznyvjcnbJds5yA9D5M15/TGSLiBdoXPvei+pXZrKXQW+XhYoXSGmc+/ctLuxJn9B82TXYbQ2OpEJ3OpT+sYbzDyWV7xs8MZvVdum6OtEhCPowegxsnngJt7yWBjnonZo/Fxz/WaQp5VqDKAxXPywL4JsZ/ISWISlcpKzeu5ikAqHyzEL1xe+J9xVuTMnvdPxluySmXL071D4rbqVHc4NOXCRjBNYWzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fa89e50eDi9DKHq+vOLH5OD6yQFp5VSQA9gWnj7solU=; b=FGOZ0F7pt796Lqc0CIAdcCyT2Yk9E2nH9z50d0LHAqb2UFHWiGuUBHt6N4w2OXEhtl6woAyr4Xkve6S5cANrqvtOs4655QEtUU8f1yFgwCu8cwdAC1FqQHkQa5R5INazGsN3568xA66a0uAvmExE72vQ8aVWac8n46IfIcJFFjh4qkq4BoU741hidYDbWweby8Aeh3IWCKJAL4EPV72wYPr01yQAHA+PfAEBhCkujLmW6OWccblHu6AeklFZbiYED6JxHtYMf0eoP6krK2h4LM9OhUiv19A+NO//U6Vjwe4FKRV5ZtBmCy5LNTr/VrKHQSjOv7zB5o5bPYUbOMjcFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fa89e50eDi9DKHq+vOLH5OD6yQFp5VSQA9gWnj7solU=; b=Fu/M8/MstTqQx76WYxUcTh/KamWdQEvy5wahUU1BeyMeikoQJtz4z23T4fBTZNNFTB8ZSsylFKcrRTVljgDeCZzPbu4W9hU4VYc1z+dCQiMrcXZlw+J7p0724Lo9OPLEmAwueHOeqaEL65S8rheuyCK9Y6bIs+3jQjuUKxfergejMmWaJg1xtGFjOximjCKJW0JjuYk76m42t01kCX6Lfh4tqpJrql8G0W2XScG2oj9PSN6lCf3Fy+cv4fSS6YM8dIrUhA7HwCGPQPvBTJ2ws/Eqe11zL3YPJBrDhidL8vZUqtGzD89Y9n2mBsTbuQVz5R3+NxBUv7xgT2SYI9Aiiw== Received: from SJ0PR18MB4932.namprd18.prod.outlook.com (2603:10b6:a03:40f::17) by BL1PR18MB4119.namprd18.prod.outlook.com (2603:10b6:208:31a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.19; Mon, 14 Feb 2022 14:03:54 +0000 Received: from SJ0PR18MB4932.namprd18.prod.outlook.com ([fe80::7c29:2fa5:e2d9:a913]) by SJ0PR18MB4932.namprd18.prod.outlook.com ([fe80::7c29:2fa5:e2d9:a913%4]) with mapi id 15.20.4975.015; Mon, 14 Feb 2022 14:03:54 +0000 From: Amit kumar To: "markj@FreeBSD.org" CC: "freebsd-dtrace@FreeBSD.org" Subject: Re: dtrace fails to trace on FreeBSD-14(CURRENT) with ASLR and W^X Thread-Topic: dtrace fails to trace on FreeBSD-14(CURRENT) with ASLR and W^X Thread-Index: AQHYIYwcE2zkkoggs0iIye4ydJzSsKyTEWeAgAAA12s= Date: Mon, 14 Feb 2022 14:03:54 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: b2daebb1-b18f-6628-1932-d2a8f402bc18 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ovTTdVg3UVRVauWT1Mr0/IczvjLhJo/2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a5a7c69f-3a97-401a-0881-08d9efc2d627 x-ms-traffictypediagnostic: BL1PR18MB4119:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: G0zI7dEcfN4Lztd0lNrctkWoPrLxB2RIH6GrIHNQjDraOWeKECbpuFpHsG/EBet4yf7expYWpugJRHrpeHtSfhb6BbzmttaKZ+Gg4B5Vcy2L8YSIEOnbSVDVz5/wbiHx7dDxjtn4rCjSJkIzz4Qzcn3/p9Z7TAHtC7Y1lvPiFYT4YezojM8kgW90MJ20ZAhHPZ/H4sAGSueaCh4oumIL97BE/1jok9CPsPGv3ZmkXQhCmgddsbQmpSrU+i/qZyT/y1Cu/DkFRNN7WsT8O7FZgzFk5zJsrk00nbzZOFeutA9OD2KbTvWjEDDRa1OFE8dCf6FOo+iIg4CXl+INzcmcWDAgp9uFcIxkWOr+zV2bxmMCT9S+9rcC6ne35eLxBGmv57oNUMuJsfK9m/WioakmvY0hdUMV6c7fI7uTKIsNTI8T81yYsjDs+3e4e85utXv0T12gVUzC5rPkTBTImvE7R0mUQIN3BhIsqGQvnl/ORkUEATUXbONGXN9n68hBdGufd66gRBkQLhIL+b79HwJpzyPTHGIQ92NbUyvNRvWSYT+zT7fZK2KykMZ4l+/dJiUaGefC49oJLvzLG9IHpv6P1Wu1cTlE/flXAx2dp1vMg3/ykwSPnyeS8ouSTMcqXOWV x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: a8eki4t5y+8YImb1punbr48Ti6VPoR1zLFJnf2t98vAnr41ZydNIxpPeeWbJpxG00eK4O0RzPeQITQvSrzrTCu7JYx2eHmepwVTrHoin9L2QNHDSvdV/FIvb2tkDIiDUSTUMMl4/bjcfuvCJtX68aLrEngTjxhZy5tPs5JYTTvnUAyyxYMRNTX+duXEmd/StUce9zzW47mYPaZdhBIItZOriOUp4+xGywpi4Pe9QiW2di4m628ei1EYxuk6ucwtYQu1ca4Bp3okxbXO46JGrnUHYJBUYe2EC0Ou4Og1KOw6pTRXjSEfG0rD2d1tPh/Yp7s2ww0er3DDvYs39dAe6x64lLUXHWje0k4/Zgy3ulNsdSUDIA7x74ZGYLUlSN6ktulOlEPpU1Q+QiLLJYA48s5N46D9eD9cZMnI/tDay+pTlC9qH7z4iWq4bEaloHSUhBExvzgxzdcylIJmegPeCfj6Gk+TYiBQwJrNCAGL/HbtTIblfbN4+CfPmi7CdG6sRS6p0I3IYc//iTvlgOSEoxSE+n/T7T+UmkbhUasWcXz1QRCg/c4MYINAPtTkKBxlM935nectiPgy5oeN1F+zAdhI3jV0gnWlEW1/d6uj/MAzaOudz6tzwtwqJSLEbmINSK5/nCSSwwHmCvniUbYudVys1jQHc+OYuO5h4G91c6YqcNNi84vSiW08cgE8yCnh68AMaKHLB8SRIub8XLsqd80GVwnABMMl3H3Jb+JN138TajQPtB4VR6prsTPOfM7PCL8TNHTxo0QBeudFUX6LOaLMFCN7kVBgJfyfkR1c7c2kbmUuQRjt2IqcS6a/pKTIICUFGgTtK1qwpJzWVBckSpiGrD8tAC7awJloYY3IeMNTLe1ktY+xGQk1tHl7rKqMR/o/qmdm95lYaALlhuGHlluLEgFO2toDY0E92Ihr3r4QGZWd6Vdv+1wcjqfLnd1bu Content-Type: multipart/alternative; boundary="_000_SJ0PR18MB4932A03F77D5D999AEAE83C4DC339SJ0PR18MB4932namp_" List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-db494.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR18MB4932.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: a5a7c69f-3a97-401a-0881-08d9efc2d627 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2022 14:03:54.3973 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR18MB4119 X-Rspamd-Queue-Id: 4Jy5YS0x0Bz55hK X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b="Fu/M8/Ms"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of akamit91@hotmail.com designates 40.92.19.41 as permitted sender) smtp.mailfrom=akamit91@hotmail.com X-Spamd-Result: default: False [-5.00 / 15.00]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[hotmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[40.92.19.41:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-dtrace]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_TLS_LAST(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.19.41:from] X-ThisMailContainsUnwantedMimeParts: N --_000_SJ0PR18MB4932A03F77D5D999AEAE83C4DC339SJ0PR18MB4932namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable >Does the problem persist with allow_wx =3D 1? No In that case there would be no core dump, but the script would time out = after 300 seconds. Doing some manual experiments It seems it fails to set the watchpoint or the probes wont fire # sysctl kern.elf64.allow_wx=3D1 kern.elf64.allow_wx: 0 -> 1 # sysctl kern.elf64.aslr.enable=3D1 kern.elf64.aslr.enable: 1 -> 1 # sysctl kern.elf64.aslr.pie_enable=3D1 kern.elf64.aslr.pie_enable: 1 -> 1 # exec find / > /dev/null 2>&1 & [1] 27041 akumar3-79afpc2-1# dtrace -n pid27041:a.out:: dtrace: description 'pid27041:a.out::' matched 6828 probes CTRL+C -Amit ________________________________ From: Mark Johnston on behalf of markj@FreeBSD.org Sent: Monday, February 14, 2022 7:23 PM To: Amit kumar Cc: freebsd-dtrace@FreeBSD.org Subject: Re: dtrace fails to trace on FreeBSD-14(CURRENT) with ASLR and W^X On Mon, Feb 14, 2022 at 11:03:47AM +0000, Amit kumar wrote: > Encountered this issue while running https://github.com/freebsd/freebsd-s= rc/blob/main/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.em= ptystack.d > > a somewhat simpler method to reproduce > > configuration > file /usr/bin/find > /usr/bin/find: ELF 64-bit LSB shared object, x86-64, <.....> > > kern.elf64.allow_wx: 0 > kern.elf64.aslr.pie_enable: 1 > kern.elf64.aslr.enable: 1 Does the problem persist with allow_wx =3D 1? > # dtrace -n pid92817:::entry > dtrace: description 'pid92817:::entry' matched 4380 probes > [2] + trace trap (core dumped) exec find / > /dev/null 2>&1 > > # exec find / > /dev/null 2>&1 & > [1] 85293 > # dtrace -n pid85293:a.out:: > dtrace: description 'pid85293:a.out::' matched 6828 probes > [1] + trace trap (core dumped) exec find / > /dev/null 2>&1 > CPU ID FUNCTION:NAME > 1 89149 find_execute:1f8 > > looking at find core in gdb > (gdb) p $_siginfo > $1 =3D { > si_signo =3D 5, > si_errno =3D 0, > si_code =3D 3, > . > . > . > > Can someone help me understand why am I seeing core due to SIGTRAP TRAP_D= TRACE ? > > Regards > Amit --_000_SJ0PR18MB4932A03F77D5D999AEAE83C4DC339SJ0PR18MB4932namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
>Does the problem persist with allow_wx =3D 1?
No In that case there would be no core dump, but the script would time out after 300 seconds.
Doing some manual experiments
I= t seems it fails to set the watchpoint or the probes wont fire
<= br>
#= sysctl kern.elf64.allow_wx=3D1
kern.elf64.allow_wx: 0 -> 1
# sysctl kern.elf64.aslr.enable=3D1
kern.elf64.aslr.enable: 1 -> 1
# sysctl kern.elf64.aslr.pie_enable=3D1
kern.elf64.aslr.pie_enable: 1 -> 1
# exec find / > /dev/null 2>&1 &
[1] 27041
akumar3-79afpc2-1# dtrace -n pid27041:a.out::
dtrace: description 'pid27041:a.out::' matched 6828 probes
<= br>
C= TRL+C 
<= br>
-= Amit

From: Mark Johnston <mar= kjdb@gmail.com> on behalf of markj@FreeBSD.org <markj@freebsd.org>=
Sent: Monday, February 14, 2022 7:23 PM
To: Amit kumar <akamit91@hotmail.com>
Cc: freebsd-dtrace@FreeBSD.org <freebsd-dtrace@freebsd.org> Subject: Re: dtrace fails to trace on FreeBSD-14(CURRENT) with ASLR = and W^X
 
On Mon, Feb 14, 2022 at 11:03:47AM +0000, Amit kum= ar wrote:
> Encountered this issue while running https://github.com/freebsd/freebsd-src/blob/main/cddl/contrib/opensolaris/c= md/dtrace/test/tst/common/pid/tst.emptystack.d
>
> a somewhat simpler method to reproduce
>
> configuration
> file /usr/bin/find
> /usr/bin/find: ELF 64-bit LSB shared object, x86-64, <.....>
>
> kern.elf64.allow_wx: 0
> kern.elf64.aslr.pie_enable: 1
> kern.elf64.aslr.enable: 1

Does the problem persist with allow_wx =3D 1?

> # dtrace -n pid92817:::entry
> dtrace: description 'pid92817:::entry' matched 4380 probes
> [2]  + trace trap (core dumped)  exec find / > /dev/null = 2>&1
>
> # exec find / > /dev/null 2>&1 &
> [1] 85293
> # dtrace -n pid85293:a.out::
> dtrace: description 'pid85293:a.out::' matched 6828 probes
> [1] + trace trap (core dumped) exec find / > /dev/null 2>&1<= br> > CPU ID FUNCTION:NAME
> 1 89149 find_execute:1f8
>
> looking at find core in gdb
> (gdb) p $_siginfo
> $1 =3D {
>   si_signo =3D 5,
>   si_errno =3D 0,
>   si_code =3D 3,
>   .
>   .
>   .
>
> Can someone help me understand why am I seeing core due to SIGTRAP TRA= P_DTRACE ?
>
> Regards
> Amit
--_000_SJ0PR18MB4932A03F77D5D999AEAE83C4DC339SJ0PR18MB4932namp_-- From nobody Wed Feb 16 22:02:32 2022 X-Original-To: dtrace@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 25CA819CDCD3 for ; Wed, 16 Feb 2022 22:02:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JzX4m6xkfz3n5J for ; Wed, 16 Feb 2022 22:02:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D02691E20B for ; Wed, 16 Feb 2022 22:02:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 21GM2WJj007989 for ; Wed, 16 Feb 2022 22:02:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21GM2W4Q007988 for dtrace@FreeBSD.org; Wed, 16 Feb 2022 22:02:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 261999] dtruss: Fails to run: dtrace: invalid probe specifier => lstat* not found Date: Wed, 16 Feb 2022 22:02:32 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.3-STABLE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords assigned_to short_desc cc bug_severity bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645048953; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=51mkdzGJNzr8GnCkDNY6Aq9q0hWzQ1UkCwGkRj1nAtw=; b=Cc452cKO3FqjlSEjEJMzxrQKmossTJn9g+1B4KzpxX0T15L86pk7KD29O1ThEMEg9OwoDL GKQ+JW0EwSiYLe0AjemHpUcQ7HNboI7a082vDQNI3/Y+2z3+R4a2jNSFHAHYKP1HfSnu4+ FnjtUpawsdcgGQfSXc4t2qpQisvBMO33P3W0ha0xc/Xs6KOR/tnpGt+AUXBoMGLLRbQlJP IyyLfpc/P9TK0cRQLFQlJTLcTAihRrFIO4+m2laLyjC171X9QXOW2Xl238C1AQ2ruc8nsa qIprdhPh6q709bFubdejSomMWLh/P1BTsYtjeNsM3MugdDc4Ax8OjJYd1l1NzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645048953; a=rsa-sha256; cv=none; b=t8dm51b3+yY1yyALsKXrqZwWNw3NRd9l1E5wf3+NzsOMBqkekOTplB0SXiPXtN+BexgiHg 3EZImZuOwCBa8cw8R5DwEgm1S5YEm7uP8WxhqiTyGrLNXmHkuoeECWkFl6CCyKLP7W6mDn x2gJK4HVbmChHgfBNmwAz+mSwHbl9sdUBwsDwi0zqDk8TXym/TSaBUL0PsbjHuFvCbax3y rTdRJFbfIxr0r/2FCKoDDmHgOgVleD2rJjW4L1Y2JzC8rEQmpiORYqjpYa0fMkQCmpwEMN udVvrK62ErSl59CCCRkf+yPk5EsQiG7GFnP30J/qLiuyoyGbdDdgXYxSUGCd6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261999 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-qa Assignee|bugs@FreeBSD.org |dtrace@FreeBSD.org Summary|[dtruss] dtrace: invalid |dtruss: Fails to run: |probe specifier =3D> lstat* |dtrace: invalid probe |not found |specifier =3D> lstat* not | |found CC| |dtrace@FreeBSD.org Severity|Affects Only Me |Affects Some People Status|New |Open --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Sun Feb 20 06:21:38 2022 X-Original-To: freebsd-dtrace@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 9CAE319D74CC for ; Sun, 20 Feb 2022 06:22:00 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from wforward2-smtp.messagingengine.com (wforward2-smtp.messagingengine.com [64.147.123.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4K1b1g6HFbz3hfM for ; Sun, 20 Feb 2022 06:21:59 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id D77571AC2386 for ; Sun, 20 Feb 2022 01:21:58 -0500 (EST) Received: from imap45 ([10.202.2.95]) by compute1.internal (MEProxy); Sun, 20 Feb 2022 01:21:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=RTaBfBMEiXIFubAhbEsEz8B2TmJloZ6E5nBG85vaQ k4=; b=W+JOWxxhRgGmzspKXPwUbiufLp3vdEL0Dryi1yAHgR4Ay885PNJBGcj8a BY3Gdwnv2kw1br8rUzhA4cUKThRd+xwaSFK2dsCZ/M+lOdi1exJX2HYLAK5SqDFJ +A8a0/1fuT8rXlMBqMmmWkMOfPHn4kpGiogoJ+Qzx+pPYpgSoFfu2uQoraRky6xg c8vov8gSBsijj3Mr9P+6bAG+5/kB6fnMJdBhMiBfrzHgdBuvS5rWqdGrKXIS2DqB y0XQhhqje2eTpUTTy28O+tKwoBAgFeo2nBq3PkrAh4HeqmWL5Rzkq5noUdcC3jGx m6/x9A1rlUbrnGvHG571yvsU1RU/Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkeefgdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdfhrghrhhgrnhcumfhhrghnfdcuoehfrghrhhgrnhesfhgrrhhh rghnrdgtohguvghsqeenucggtffrrghtthgvrhhnpeeijedtgeetvefhgedvfeeigeehte fhudduffekveffjeeugeduveefffduvdehgeenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehfrghrhhgrnhesfhgrrhhhrghnrdgtohguvghs X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 481C824A007C; Sun, 20 Feb 2022 01:21:58 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4778-g14fba9972e-fm-20220217.001-g14fba997 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org Mime-Version: 1.0 Message-Id: <601aef51-3402-43fe-b44c-8c2976a4f777@www.fastmail.com> Date: Sun, 20 Feb 2022 01:21:38 -0500 From: "Farhan Khan" To: freebsd-dtrace@freebsd.org Subject: Read return struct of kernel trace Content-Type: text/plain X-Rspamd-Queue-Id: 4K1b1g6HFbz3hfM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=W+JOWxxh; dmarc=none; spf=none (mx1.freebsd.org: domain of farhan@farhan.codes has no SPF policy when checking 64.147.123.31) smtp.mailfrom=farhan@farhan.codes X-Spamd-Result: default: False [-3.39 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[messagingengine.com:s=fm2]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[farhan.codes]; DKIM_TRACE(0.00)[messagingengine.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-dtrace]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; MID_RHS_WWW(0.50)[]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.31:from] X-ThisMailContainsUnwantedMimeParts: N Hi all, I am trying to instrument the return value of usbd_get_endpoint(), which is a "struct usb_endpoint" defined in /usr/src/sys/dev/usb/usbdi.h. I would like to print out the contents of the struct in a human-readable way. To that end, I am trying to include the header file into my dtrace script but keep getting error messages from dtrace. My script is as follows: ------------ #!/usr/sbin/dtrace -qvs #include fbt::usbd_get_endpoint:return { printf("Exit %d\n", arg0); } ------------ [farhan@freebsddev ~]$ sudo dtrace -C ./usbd_get_endpoint.d dtrace: no probes specified [farhan@freebsddev ~]$ sudo dtrace -sC ./usbd_get_endpoint.d dtrace: failed to open C: No such file or directory [farhan@freebsddev ~]$ sudo dtrace ./usbd_get_endpoint.d dtrace: no probes specified I am not certain how to resolve this issue. Also, if it is not necessary to include the header to print out the structure, please suggest an alternative method. Thank you! -- Farhan Khan From nobody Tue Feb 22 16:42:00 2022 X-Original-To: freebsd-dtrace@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 4D5AB19E2D0B for ; Tue, 22 Feb 2022 16:42:13 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K34hM5sMkz3M3V for ; Tue, 22 Feb 2022 16:42:11 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-2d07ae0b1c0so180914727b3.2 for ; Tue, 22 Feb 2022 08:42:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JIyHTNgFjUs+MXMdwEZ/rO13TbGiksed15qkWUKVy7A=; b=gwIgswmKLOHUTGn79WoTLURgwK3qkjGjpIcMiRoayjF4atw4ZvEcAA8O3wYEBeBEke bJrT66YdAIwg3OJROH1kh1VZCh4tqGxwqtyWAtEvSsamnS9wXlBO9oYX3xdM03ozKBfA PFXG8HjRCI0CUCV/Zcp6Cwv/Z0fmBe30mXmMuhnDM6bIglwnFHvQ5ETvEjwOMGHJQ3/4 swR8kUNiGkh6rYQwGzYocux8ZH4chEEiRgH+Cfb5Kdae/fr33v8SV1U/pGmD9d2Nhr6q LKqGL90t9NofqL1Lc6vQxzyan98LC2BUjoAdW2yh5dX428VXH9teo3CVUMqG8s0nkDYa h37w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JIyHTNgFjUs+MXMdwEZ/rO13TbGiksed15qkWUKVy7A=; b=w9Llne0w/kU+GFpsjdgaWtThZNeiEbi/F9cC21M0uAkNl0yPRCGmvgjPzF7LKlx4lF R1dXrIkojWH7WpO7gRy1cV8hvKa3N1Tk8UULRPbb2UX4YzRHd+PKkQ2hbNzzbYgfz8e/ PrP0gl4O2bL+qdQOTOmAdW7vp3imoLdGtnn5f9RL2UL3SUlk/RS4SntGh9Ve0oieDMHa tBDBFJXBVT73jZ4WYC1v3lU0I9S9rPsExGgt69tK0D2D2j0qXAmyC0VFRIj5ziiB6MhO e33wTnY8vXQJtBOxIta8EgUAhDGIn74La4hB98uVn21qoUlW+EcjtmIWtfDvZUCynarx SdHw== X-Gm-Message-State: AOAM5333DCZoRB8YT8NmXzBoXPNxxR5nBuSuVth81llhQ177uGqUiJUc eVsu0ekoMuJjlga139kaBWuSgfA0ZxqqecdjqQ1UNr8w7h8= X-Google-Smtp-Source: ABdhPJw49GEfjb2YkA9LGwPJ5ZrO/iaDAq0g2PXT4THJc3sEye2X9ujVSO3WtW5DME57p/uLL5pJVkdOjusRLNyUFp0= X-Received: by 2002:a81:2fc9:0:b0:2d2:2237:bfc7 with SMTP id v192-20020a812fc9000000b002d22237bfc7mr24386153ywv.367.1645548130944; Tue, 22 Feb 2022 08:42:10 -0800 (PST) List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 References: <601aef51-3402-43fe-b44c-8c2976a4f777@www.fastmail.com> In-Reply-To: <601aef51-3402-43fe-b44c-8c2976a4f777@www.fastmail.com> From: Ryan Stone Date: Tue, 22 Feb 2022 11:42:00 -0500 Message-ID: Subject: Re: Read return struct of kernel trace To: Farhan Khan Cc: freebsd-dtrace@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4K34hM5sMkz3M3V X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=gwIgswmK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rysto32@gmail.com designates 2607:f8b0:4864:20::1134 as permitted sender) smtp.mailfrom=rysto32@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1134:from]; MLMMJ_DEST(0.00)[freebsd-dtrace]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N It should be dtrace -Cs usbd_get_endpoint.d However you probably don't need the #include at all, even if you need access to usb types in your full script. The type information will be embedded in the kernel and automatically fetched by dtrace. On Sun, Feb 20, 2022 at 1:22 AM Farhan Khan wrote: > > Hi all, > > I am trying to instrument the return value of usbd_get_endpoint(), which = is a "struct usb_endpoint" defined in /usr/src/sys/dev/usb/usbdi.h. I would= like to print out the contents of the struct in a human-readable way. To t= hat end, I am trying to include the header file into my dtrace script but k= eep getting error messages from dtrace. > My script is as follows: > ------------ > #!/usr/sbin/dtrace -qvs > > #include > > fbt::usbd_get_endpoint:return > { > printf("Exit %d\n", arg0); > } > ------------ > [farhan@freebsddev ~]$ sudo dtrace -C ./usbd_get_endpoint.d > dtrace: no probes specified > [farhan@freebsddev ~]$ sudo dtrace -sC ./usbd_get_endpoint.d > dtrace: failed to open C: No such file or directory > [farhan@freebsddev ~]$ sudo dtrace ./usbd_get_endpoint.d > dtrace: no probes specified > > I am not certain how to resolve this issue. Also, if it is not necessary = to include the header to print out the structure, please suggest an alterna= tive method. > Thank you! > -- > Farhan Khan > > From nobody Tue Mar 8 09:40:56 2022 X-Original-To: dtrace@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 240901A14A4E for ; Tue, 8 Mar 2022 09:40:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KCVgr64mdz4m6n for ; Tue, 8 Mar 2022 09:40:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B15391A2BF for ; Tue, 8 Mar 2022 09:40:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2289euch054590 for ; Tue, 8 Mar 2022 09:40:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2289euSR054589 for dtrace@FreeBSD.org; Tue, 8 Mar 2022 09:40:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 262412] DTrace failed to run when ipfw loaded Date: Tue, 08 Mar 2022 09:40:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646732456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oRYA3po/oLZ1MGoz3ILInb+35EWkPhp9xBFo9kYstR8=; b=pHDZyfkKEqSRGdTTtUUEnt8qj97kkYSiDhRFd3dWiYX6I2EG2mTvYDYKO6cNOPH9DAs1Cb F9iS9wkNtm08wqAt+XShuhiEgnHe5/7IZNFuf1HzYdI/FsKzfYgalSxVhICB5QneooPMmn dM+0f9SyOu8qnopqkLqtpyPpGXIISgEKbuFgQ7xouKORWuARs+Dgdr8eTWw52WIAnGkmAK 9QriljmvLMBawO+sYcSIz6iV/SRSo8hZdRQmQBNjkB32ncXY0GCzp63Zy2s5WmvYstQJq9 N+3SL81GddV9+r66s7r0UNzzvRukhpigRkz228DRwzLYXAJcE3hJZBtnYq2w3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646732456; a=rsa-sha256; cv=none; b=y3JIOgzV/CGL4vB4vF2/5Wky0Q5wRHi+hDTFhcT5L85E/NCfCylA06eUcPd7AL100j1zWp pk6skyED37AjUwOCBGDwzxojmIM29x9bSlW9qOtkVfPwNUs0pBVL/yyPxrz9fcRmzl45Hs QnF9NBbHmvKf6d+W006X6oS2wudQQmbDHgVsdcYT/cEDVfovAhKVUZ1cqx16EpoBEeAqet eOiGa06+Bi0OQPaZOxxn3vyMM1uS3dhJCQYJ5wCDw07nQ0B+uLLvX3v0TFiANxXlyrYn/8 v7Z51Dd0UpjJcMh90m3nITSNFgiERK2qtlbw3AuU/4p2/d/Xp0OdsZBaT2iA3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262412 Bug ID: 262412 Summary: DTrace failed to run when ipfw loaded Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: dtrace@FreeBSD.org Reporter: lwhsu@FreeBSD.org CC: ipfw@FreeBSD.org https://artifact.ci.freebsd.org/snapshot/main/23210c9f42af94dc6bcdae3996d8a= 3d010dd6bfe/amd64/amd64/disk-test.img.zst FreeBSD 14.0-CURRENT FreeBSD 14.0-CURRENT #0 23210c9: Mon Mar 7 23:39:03 = UTC 2022 root@FreeBSD-main-amd64-build.jail.ci.FreeBSD.org:/usr/ob j/usr/src/amd64.amd64/sys/GENERIC amd64 root@:/ # dtrace -n 'syscall:::entry { @[execname] =3D count(); }' -c /bin/= ls dtrace: invalid probe specifier syscall:::entry { @[execname] =3D count(); = }: "/usr/lib/dtrace/ipfw.d", line 1: m is not a member of struct ip_fw_args --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Mar 8 10:58:17 2022 X-Original-To: dtrace@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 BBE5519FC221 for ; Tue, 8 Mar 2022 10:58:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KCXP53Ntmz3DDF for ; Tue, 8 Mar 2022 10:58:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4D3C51B0C6 for ; Tue, 8 Mar 2022 10:58:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 228AwHrH094752 for ; Tue, 8 Mar 2022 10:58:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 228AwHsD094751 for dtrace@FreeBSD.org; Tue, 8 Mar 2022 10:58:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 262415] Failing dtrace test: common.funcs.t_dtrace_contrib.tst_system_d Date: Tue, 08 Mar 2022 10:58:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646737097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jgEzaQOoLS+NaWbAQralX8nf/emDAFdKc4vijJAxK/c=; b=qKfq9VHJNOj97+ud9H+LcfzXtGhKZC/hBNERlskDCmFxLraXqosjLcVOPNrLEK3hat/zpj DCyDYZrPTwPUardbmpe+dK5jzF8Q+aI9bfe+rjagYCn5u2lyVAyF3cM2Fy3juxhWZllSM/ gQlq1TcjUKR3teRqhewV38jDNLUhBigWbsXW2fZ/vn4LFEA4d68gDxZC5YsIVNIukXJUFc dR8dgSgDpnWsoR6m0LWJ+DIYbQJdjuxLs/wzIWINTK/IMWsFoBZR/tAQ0y9XtycdkYZqj2 +QK20ozWygzZVJbuYIwLP/ZThEOVZoVVXG7k1xovzN15fNC3diYHXH7hmz5RoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646737097; a=rsa-sha256; cv=none; b=X9pOjP68uBp3awT2WyeHaONYhJAKJONtdRlOOq+iTiagkJvDVAxLF1YLDkPWUqDBIy/kHE 8XokEegoTnztwbDJqrP6Ns94q7mKlaue8D40qcSh+yVJuITB6lo3ppUvVRT4TD6EIsVErS mQ76cEue8MizlmIUWrw3WsDFqXAPwj1a4u4GBlP2CD0mw/Jsczcy4eiMhTOIUUWAXEt7ak xxJSvcUerCGYM7aLQnfR1KKTLJoDX9HTEl60M3p5m88j+NjtOgZ9LSbVyphbWVrSm0RA3T 418YGBBiHrYASS1gGk3mC1C/Qb/lVjy/k/x1vpta6JyBOLxUpvveMxLwCIzPEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262415 Bug ID: 262415 Summary: Failing dtrace test: common.funcs.t_dtrace_contrib.tst_system_d Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: dtrace@FreeBSD.org Reporter: lwhsu@FreeBSD.org common.funcs.t_dtrace_contrib.tst_system_d has been failing since: https://ci.freebsd.org/view/Test/job/FreeBSD-main-amd64-dtrace_test/13912/ src b0df36580d5b0df67a0f58ded8f6356b268f7f71 https://ci.freebsd.org/view/Test/job/FreeBSD-main-amd64-dtrace_test/13912/t= estReport/junit/common.funcs/t_dtrace_contrib/tst_system_d/ # Error Message atf-check failed; see the output of the test for details # Standard Output Executing command [ /usr/tests/cddl/usr.sbin/dtrace/common/funcs/../../dtest /usr/tests/cddl/usr.sbin/dtrace/common/funcs/tst.system.d ] # Standard Error Test case metadata ------------------ allowed_architectures is empty allowed_platforms is empty description =3D DTrace test common/funcs/tst.system.d has_cleanup =3D false is_exclusive =3D false required_configs is empty required_disk_space =3D 0 required_files is empty required_memory =3D 0 required_programs is empty required_user is empty timeout =3D 300 Timing information ------------------ Start time: 2021-04-23T19:05:53.432868Z End time: 2021-04-23T19:05:53.598022Z Duration: 0.165s Original stderr --------------- Fail: incorrect exit status: 1, expected: 0 stdout: stderr: test tst.system.d failed: test output mismatch test stdout: -- foo 9 -2 PING 127.0.0.1 (127.0.0.1): 56 data bytes --- 127.0.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss 10 PING 127.0.0.1 (127.0.0.1): 56 data bytes --- 127.0.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss 11 PING 127.0.0.1 (127.0.0.1): 56 data bytes --- 127.0.0.1 ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss 12 -- --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Mar 8 11:06:45 2022 X-Original-To: dtrace@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 5005319FE421 for ; Tue, 8 Mar 2022 11:06:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KCXZs09d0z3FN3 for ; Tue, 8 Mar 2022 11:06:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D66291B3FC for ; Tue, 8 Mar 2022 11:06:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 228B6iOs001750 for ; Tue, 8 Mar 2022 11:06:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 228B6iHE001749 for dtrace@FreeBSD.org; Tue, 8 Mar 2022 11:06:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: =?UTF-8?B?W0J1ZyAyNjI0MTZdIEZhaWxpbmcgZHRyYWNlIHRlc3Q6IGNvbW1v?= =?UTF-8?B?bi5pcC50X2R0cmFjZV9jb250cmliLnt0c3RfaXB2NGxvY2Fsc2N0cF9rc2gs?= =?UTF-8?B?dHN0X2xvY2Fsc2N0cHN0YXRlX2tzaH0=?= Date: Tue, 08 Mar 2022 11:06:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646737605; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XwFV/Sjx5qGEmNTwS/dGAemZEqzwDXnWHk92ntZdrfg=; b=GKxUjI9YQ1T0phvTer+hbrIXSDExwqFdFt9RtEKDI527BlPyQuboyJf0rIJKk3kFUWmlgN se30Pz84DevBy8sL1ZH0po9m+lGEyzNFU61hxyHXeLVeJj3maAD+wEngOd+I03ZZtxdHpE jAJKlzhwxh1f5Ie2SfpMa6N9BbDiY/vOHhw3pCq3FEhNV9pMMgJQNL+nf/FR71KQAhPzzR nX1dBVJZRWzyzO+4FogEmFBZoypfX03lJu/eWU8dBtFvgHbwDWDN2MPtf7RzosFC44R3di kibS+VBxS5SkCMy9VbKWln5pnv0miyiHluyW23/cv4sFlbo2a4r7vFJgYWxCdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646737605; a=rsa-sha256; cv=none; b=sl6milI2nIms5MgLK9V3kRJissU3ipXgnOFrC9w3z7qVoFx17i8ffuJu15AwFmDGCpgRfo 1a74KCV0or1j2C3rZ1BCBqCkWCfRL4Ktc6QuteGImaAVTOKH0i5Vswywf4v1ljl9SPvlW+ MRP3jM0rcnxCxWdV6yZWlV4+xuYdKvAOd8gFsFwoTgLEuIfuP08D442UhSQ5tUg+hnVUZ3 +mo9ePP/7ky549lZxf1cKhlx2cw37nu9DerrvsAF6ZXCQo7WVxaa1KEB/NQMYiVP5ZdVxk PQzrOV20843gXZomNCpY/d9t63zsWGyOiNkFLRBt+rPnsyDFVy9p51e2zxEPZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262416 Bug ID: 262416 Summary: Failing dtrace test: common.ip.t_dtrace_contrib.{tst_ipv4localsctp_ksh,tst_ localsctpstate_ksh} Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: dtrace@FreeBSD.org Reporter: lwhsu@FreeBSD.org CC: testing@FreeBSD.org common.ip.t_dtrace_contrib.tst_ipv4localsctp_ksh common.ip.t_dtrace_contrib.tst_localsctpstate_ksh have been failing since: https://ci.freebsd.org/view/Test/job/FreeBSD-main-amd64-dtrace_test/12133/ src r363254 (d272016da471691b2598ac2d76f9c6c960a1c9b8) https://ci.freebsd.org/view/Test/job/FreeBSD-main-amd64-dtrace_test/15687/t= estReport/common.ip/t_dtrace_contrib/tst_ipv4localsctp_ksh/ https://ci.freebsd.org/view/Test/job/FreeBSD-main-amd64-dtrace_test/15687/t= estReport/common.ip/t_dtrace_contrib/tst_localsctpstate_ksh/ Both failed with: dtrace: failed to compile script /dev/stdin: line 1: probe description sctp:::send does not match any probes --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Mar 9 03:40:05 2022 X-Original-To: dtrace@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 035271A05F0C for ; Wed, 9 Mar 2022 03:40:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KCyd14t9Bz3MHs for ; Wed, 9 Mar 2022 03:40:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 882F012FD for ; Wed, 9 Mar 2022 03:40:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2293e5T6033486 for ; Wed, 9 Mar 2022 03:40:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2293e5jI033485 for dtrace@FreeBSD.org; Wed, 9 Mar 2022 03:40:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 262415] Failing dtrace test: common.funcs.t_dtrace_contrib.tst_system_d Date: Wed, 09 Mar 2022 03:40:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646797205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6r9opbZat/7LLZBHP3csJJWmtDraZ1HaH1Vd9tT18o8=; b=YPRqMCrNhf5wn7WZ1eFWnPvleQKZGo/BsGOnvWUlaXYUGDpqc+IzWSnv4KT+MUQ/Cp0BVa J0zAGST0VfhJLCCPKBguxaLiTt4/xNMuOGhBclaGJBf6qt+S1InoHo0Qan4LHtxAnldKhM +wEMobnsovE4nybjilXDZ/aeXBnV7vj9b5QxAJtRvxqSrxuQCyvy6VtShbx7nEObEgER6H BX/VAI3sOWGvOh5InQbaIg77u/4eDP50it5hPi+IbIpsoIwjI3J5RKwb7xCVAdpy2qLJJ5 8yo19acAnsGYJVmMK1D9VaIvK2q79G3O+/h3BqFyPcdjqcmLvu54gILUKLcKkw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646797205; a=rsa-sha256; cv=none; b=MTw7FBXQROq2WDlErZV/T0lkPVSJ4NGC6qXUzaoNXjykCH6UAJzmlMk6qSHH/0DGudJCEk O9kTEAayZp2kaWGSgTu4Cgkgc9mIVppy+n6AwxlWlnHEgGbrFmomwYdiNfnzXEqIJammC8 Yp1wM9SlEPK0GctrOFf/njztvxXHf4AAiCL9k/AYxV3ngwQbEnoV0yObByVkhzq6N3g7W5 38mOWrCBHYpCxHqhUNHjETEMygz1gYpmE3lkGeTTIHU6jOdmphdQ/DYZ5q0bqPoi986PEQ NXqJiYxmJmwYff6SBMOGGHizbUKnCxl0W6Q1l6Dn03ZbUF8n4RFG38Y5yC/cDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262415 --- Comment #1 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D16e02ae401ebd9aa7d47f46dc4905f4f8= add70a8 commit 16e02ae401ebd9aa7d47f46dc4905f4f8add70a8 Author: Li-Wen Hsu AuthorDate: 2022-03-09 03:39:12 +0000 Commit: Li-Wen Hsu CommitDate: 2022-03-09 03:39:12 +0000 dtrace tests: Fix expected outout for tst.system.d This is follow up of d500a85e640d1cd270747c12e17c511b53864436 PR: 262415 Sponsored by: The FreeBSD Foundation .../cmd/dtrace/test/tst/common/funcs/tst.system.d.out | 12 ++++++--= ---- 1 file changed, 6 insertions(+), 6 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Mar 9 03:43:07 2022 X-Original-To: dtrace@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 B82E51A07065 for ; Wed, 9 Mar 2022 03:43:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KCyhW42Qmz3N59 for ; Wed, 9 Mar 2022 03:43:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6B17713F3 for ; Wed, 9 Mar 2022 03:43:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2293h7cr038871 for ; Wed, 9 Mar 2022 03:43:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2293h7Hu038870 for dtrace@FreeBSD.org; Wed, 9 Mar 2022 03:43:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 262415] Failing dtrace test: common.funcs.t_dtrace_contrib.tst_system_d Date: Wed, 09 Mar 2022 03:43:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646797387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GOoajqT8Isas98aAC2hUASywdyoiz6vGCDNg98lHDXU=; b=HhOoUqu7/KTRkHYHNgtcTwBUGnc/Q8uNQovZDBc2Q1goiXOab/wattwGbV5rlfm9qEbUh2 YK4qyeAf4c6Ro6cb9BCePj41GO/mwIPyqS7CY1DQ6BHIgwJiNBDIezOoeeeaBiNJVlzU7+ DDCIxesW6SlGEUUPnrxUaZfOgHXnAx8/mrWZIBJW8KDHOev4bloYg37X1o4NVMrmRVuW6E OYQTZyVkcHzqEDwHwmoKWj9jULFFkfAr5JXFumrxL8/fsvdzhI//npbjk9mxRX2wYEizKh HanZzBRcPuOXhTdqtHsze/vbz/XfzLm1cg7zWFhishscdAzJHWNHxwAo3UDgDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646797387; a=rsa-sha256; cv=none; b=FCwiJn+AVgYFET3DVT8UNUL+mQD44ZmtwwnlsBt+rdP2SiJInAgkBSvwT4+fEyDhgX8YbD A1DMK5pmHzIdoliADpAmUFgfmMJ0z+7b11cVa8NfH0+stkvM3z5gxuQcwfwjXmtFb2WbWD ibIkGKTbcYZ6T11JYrFf83l1Um3qeLFDGGLjvmghq/5Cp3ZkMq/9GUGUwLGj6nDXj+vSrF WnF3Ub+/QZqGbe5aloRXgyDYxGGj/wQb6yAqZJyYJ/FItprTqC+oza7WhS/zHZQIJoLGX8 vIo8g51/2fgqRhGiHikO991nJ1yz+/wBYaVjVZwqhgsfZ/+VZpXSNvxftg6BSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262415 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D937d08454b3c5dea35f6ddc9692825a32= 8e6c0c3 commit 937d08454b3c5dea35f6ddc9692825a328e6c0c3 Author: Li-Wen Hsu AuthorDate: 2022-03-09 03:39:12 +0000 Commit: Li-Wen Hsu CommitDate: 2022-03-09 03:42:23 +0000 dtrace tests: Fix expected outout for tst.system.d This is follow up of d500a85e640d1cd270747c12e17c511b53864436 PR: 262415 Sponsored by: The FreeBSD Foundation (cherry picked from commit 16e02ae401ebd9aa7d47f46dc4905f4f8add70a8) .../cmd/dtrace/test/tst/common/funcs/tst.system.d.out | 12 ++++++--= ---- 1 file changed, 6 insertions(+), 6 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Mar 9 03:43:53 2022 X-Original-To: dtrace@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 9724C1A072FA for ; Wed, 9 Mar 2022 03:43:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KCyjP1x9zz3NPf for ; Wed, 9 Mar 2022 03:43:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 229211895 for ; Wed, 9 Mar 2022 03:43:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2293hrKV039084 for ; Wed, 9 Mar 2022 03:43:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2293hrOG039083 for dtrace@FreeBSD.org; Wed, 9 Mar 2022 03:43:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 262415] Failing dtrace test: common.funcs.t_dtrace_contrib.tst_system_d Date: Wed, 09 Mar 2022 03:43:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: lwhsu@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646797433; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=75O8jOLl++aqGIqKgAEjaMP1wjc03IYvDTyz1WMnHvA=; b=G3z+KOPIeEdpzeeQZVAfSyiQOV/aKm84/6qR/GLzGuaKZf14aDaWhxdrpidvIqLw4jPwY9 YWlLzbnpPQaLaLWt/sT7vQTlCHGzYrpjBsAHbw1B4KHr6Tz7pbOq212fxOphTo220ovSj4 6bZjJCdph3hDOdJ7AplLwKMmrBz8Kym5j+HIgbAF0SvP3GbHobe5lOvmuYCC9NBd7oPRfO JoMKMNhBkuWY2+QGUdjmb8kSyvlCCgjtzSZVt2A9sz0Ai2saK9+ehQKj5OhR3mbLRz7kJ+ NoJA+GbLNhEIa1Mba18CwiNsNyI/iCp283n30r0lwKuUfucr0dUCO1r5iAor8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646797433; a=rsa-sha256; cv=none; b=i81aUVJI5Kb+MNn9WKL6TaVeKf0ps0bOe7v0+/n1LLazPGFfOvCRTEjABVUxzquleSRnRj mgdkZwKzK60IxIOdGz9GCsNLN145qB9lPEBZTVGsUUe+L6SgCKK6dbE6ttzw0JlaxM0yKr 06ZfG4xBBE26yBhWXPzCJl1TcZiMn1kQxtmKTTMlhchPR3QHp9WUGYNHkDRNbo8oxbfgUr T7Z+/imbIHgWcZjmfRSP/xqfV4iH18BrfaSarF1z5zkYccyOHcUcSbvwwCsakQuy41fYo5 aRJVl7dtrClFe7FbPJg9FNaAZ/t5iYW7dOhhcIFhtMC/TNNuUlxh2mvapTjZFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262415 Li-Wen Hsu changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|dtrace@FreeBSD.org |lwhsu@FreeBSD.org Resolution|--- |FIXED Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Mar 9 03:52:35 2022 X-Original-To: dtrace@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 942C81A08497 for ; Wed, 9 Mar 2022 03:52:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KCyvR1jcFz3NjN for ; Wed, 9 Mar 2022 03:52:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1A82E1BA3 for ; Wed, 9 Mar 2022 03:52:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2293qZti043701 for ; Wed, 9 Mar 2022 03:52:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2293qZJq043700 for dtrace@FreeBSD.org; Wed, 9 Mar 2022 03:52:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: =?UTF-8?B?W0J1ZyAyNjI0MTZdIEZhaWxpbmcgZHRyYWNlIHRlc3Q6IGNvbW1v?= =?UTF-8?B?bi5pcC50X2R0cmFjZV9jb250cmliLnt0c3RfaXB2NGxvY2Fsc2N0cF9rc2gs?= =?UTF-8?B?dHN0X2xvY2Fsc2N0cHN0YXRlX2tzaH0=?= Date: Wed, 09 Mar 2022 03:52:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646797955; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xni7g4dvGMrDC3V14MshcZyisGil0oJpV9ttCshC3vk=; b=vnPjcXtebmMK8VnlqoIk4ury3LLnYrveYDBzqeT4RKbHKZ4coaRdkJTmhwz6oD4EAO6qGG Y68/lgi3RxIYlyIPTacSUAQKNYHX/2nCVT0KwvQhfWJqEtdp3lF84pCTAx6ICUTlemngpl pNog/Kbhetpt1HFKJ0ItxgOnsXC0T0JNDTFza/LpYnnhhiSbC50utZ2DWcMqRn68jwlwg1 ikST8EhFBebqjMW1l5QCQF87zZR0l8yZ+KTDfSuEfqnJUV1lnzhlJxAzwP0naMo+5tLbtT u8kmHVjtFTKCMRnUM/8je7W/ycq+/L8yiaclWYVxlR6VvsYGKwISkriXk9Njwg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646797955; a=rsa-sha256; cv=none; b=kcQVn53XxQK5Ieqt6NWYbeyR+4nV2KM2SiIXJ5Qo/QAe7gLfOIOyDMUVMiK4uQIWE/FSpp H38bhbY9GKeEAnVUk8prarRfKFoU5PVuhhab99CXjc4oZTNe+82JDbl7x4yT95xNnHUCKy dXOg60jo98Up0C1qUSBpryrFKh+JqDAs2CKRkn4Hz9hxs/aaxbM0fga3s8Lu/QaY+2lyUZ t5393zoD+G/rsAWjxxwbGOtpfcH0foBRaQsCVxMeYeqXn0BF6/dyRrtwjsSYsJ7eZ08t72 4ny04+GaYqb2LWsJkQesuXcqxNbRIiexiaNuD+eLcdP9Qrh5FC4J7ry9ai2+kw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262416 Li-Wen Hsu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress --- Comment #1 from Li-Wen Hsu --- This is because of we removed SCTP from GENERIC and these tests need it. src e64080e79c53f2952c5a77c6402cd2473cd45d8c --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Mar 9 07:07:43 2022 X-Original-To: dtrace@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 3D60D19FBBC7 for ; Wed, 9 Mar 2022 07:07:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KD3DZ6trtz4SH5 for ; Wed, 9 Mar 2022 07:07:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CD486447E for ; Wed, 9 Mar 2022 07:07:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22977gGZ061715 for ; Wed, 9 Mar 2022 07:07:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22977gxb061714 for dtrace@FreeBSD.org; Wed, 9 Mar 2022 07:07:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: =?UTF-8?B?W0J1ZyAyNjI0MTZdIEZhaWxpbmcgZHRyYWNlIHRlc3Q6IGNvbW1v?= =?UTF-8?B?bi5pcC50X2R0cmFjZV9jb250cmliLnt0c3RfaXB2NGxvY2Fsc2N0cF9rc2gs?= =?UTF-8?B?dHN0X2xvY2Fsc2N0cHN0YXRlX2tzaH0=?= Date: Wed, 09 Mar 2022 07:07:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: lwhsu@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646809663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uxwmA3mSo96lLFU5TpMakbb7uCMxw9fxmW6d7nSoh6o=; b=rrwdENSzLtGGKeMSjnkrPtUzfz/BuNSNZZgPVPlbGo6F8pqGr8pdFhV2Uz3+lCXhnmvyYf wClTv5JHTMd5UC1TSFGtI+uwCl2dncghj+XqXFqpZb+Klf4oohM4GPQ4oE1BnG5f8w7P9b pm3zMGRFS4C6NeCF9dp/PjGVjojlSXIMS3ILIh3Pu5HNt1Rgfpzx4EhLoIT4qNl6ahweV/ gDEcQgXFA1lQfXjD3jq0e96t4WX261PqfN2G/5wmoN+5opQf4Uh9xdleUVwE+Mitxp52Sf N+DZElEMtwfwJiDq7MQxEHLb68edEoJPc18OA2auLHuuWnptPARV3DcUPMbp2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646809663; a=rsa-sha256; cv=none; b=pZKsUYBmLjqR53ouTFQrIwQru+atEXXMuqmPZ/MsLKQjdKL+2CzIxaYjoS0I1qzKFUnG3K UU8qkgTJHHEPB5J7ajzqa0A5hdBD9SrIwxlMPiSUeVAyNqop29RliJNpqa6RbYDS94/vyk +ozoNmwN/w8N6i3iCSSx+JekO4wRfzD/bzwufEM/k+22IurocnCQnwLbs5MZEWQySXg5fx lwWwYJp+L3ttDQqMeLW6Sd6vYv3Y98mtN3QXck6IPbTQDitO7R5KyP9KFr9pn9dFuqyxTQ KLEMcptWq1Gv763jS2JIbOVzlVEzN3jtDPu6FzUqGIApZYGro+jznxIqOHNCMw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262416 Li-Wen Hsu changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|dtrace@FreeBSD.org |lwhsu@FreeBSD.org --- Comment #2 from Li-Wen Hsu --- https://github.com/freebsd/freebsd-ci/commit/fedd4ce5b5246c8e88515fade5f78c= f6672b7f3e --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Mar 9 07:30:48 2022 X-Original-To: dtrace@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 0687A1A00705 for ; Wed, 9 Mar 2022 07:30:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KD3lD63pZz4Vdf for ; Wed, 9 Mar 2022 07:30:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B0DEF4ACC for ; Wed, 9 Mar 2022 07:30:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2297UmHZ077534 for ; Wed, 9 Mar 2022 07:30:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2297UmiQ077533 for dtrace@FreeBSD.org; Wed, 9 Mar 2022 07:30:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 262439] dtrace tests: common.ip.t_dtrace_contrib.* cannot locate get.ipv4remote.pl Date: Wed, 09 Mar 2022 07:30:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646811048; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fsn46yLP+UqzquRGBD2qkzCJdIXbkJa/C+uiK0kGNYM=; b=LeA2qLONPfpLsaLEGD52imxm2+iWBrJr8g1RV4dMjG/tzV8/kUWbxBscSicMa2wVtpOaNN ZAiZSb0gt3IDeICEFYkJozXsIJRwg+T0DBIJmXfFc9ZPQ80A8rYjtx5tILuChRnAPTAf/y a9enygW/GORToJMFSbWssnMrAkVk0j+MGwZq2sik7iufLL+NNYAmGGtcfu9ZwPIzCN/iTd RhLcAtRdCRYXxO0ZKrs5CNiiC3XTXS3Dw/PGN7laiWPEPt/K1n3gPln7qqLmKJkeoBFAGq +IeqeX6bfD6lTKovQImzNNK/MUFXVhS0vFbtUHqNl4YnRQWHSUStJREiuVIUEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646811048; a=rsa-sha256; cv=none; b=H/sFhvYl8X2m0qOzAuijDTlUvaM+1kmpzxKTv3l/9PSPozq8NS1tPwAJPCzrF0ZWy+3pWR 2OpWheuxpm0ahn2MIfwxzpKPP5gKKVYBnWdzWdsJQB1cKypjCqJ1zANIblaVf1nPR9ZThI lsKIOJEeQcUO7+/wFv4ZpKLaQS1hSxRf1IGTE/agTq77nkbbSny/Mm8rBQLX64U4bYjVhu PHLiYQcAI8RuAbVRpOeEFMTNoIiDdbdx2EYqL/wymFR7OOpn+CU7sqyFfg7DAlBEMF+Diz bgdSEyEnPNLwHOe9ZpQzEOLXHoeuqw3GApDwQqbx0Q69ocAXx6ZPhvd+JkX1/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262439 Bug ID: 262439 Summary: dtrace tests: common.ip.t_dtrace_contrib.* cannot locate get.ipv4remote.pl Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: tests Assignee: dtrace@FreeBSD.org Reporter: lwhsu@FreeBSD.org CC: testing@FreeBSD.org Those test cases cannot locate get.ipv4remote.pl and result expected failure and skipped in tests: tst.ipv4remoteicmp.ksh tst.ipv4remotesctp.ksh tst.ipv4remotetcp.ksh tst.ipv4remoteudp.ksh tst.ipv4remoteudplite.ksh tst.remotesctpstate.ksh tst.remotetcpstate.ksh cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/get.ipv4remote.pl is= not installed and may need to adjust the path in those ksh scripts. The same case for get.ipv6remote.pl, used by tst.ipv6remoteicmp.ksh --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Tue Mar 15 19:53:33 2022 X-Original-To: dtrace@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 DEB091A2B0D3 for ; Tue, 15 Mar 2022 19:53:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KJ3xT2gl3z4gfH for ; Tue, 15 Mar 2022 19:53:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1C1E2145 for ; Tue, 15 Mar 2022 19:53:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22FJrXhi053292 for ; Tue, 15 Mar 2022 19:53:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22FJrXbq053291 for dtrace@FreeBSD.org; Tue, 15 Mar 2022 19:53:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Tue, 15 Mar 2022 19:53:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647374013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JIUJWdzjcJTJwjj8U8f00bkmbLSIZJTB8FNP9nhqZxc=; b=fmVGIvXTGBDtrl84MFPlK4VnVKrlXIPq2tRzVFASxXmFrufU6pwkxOrTcjW7iVrBRPvryP JloN9WM3uQEazL3bq/R6GbYaicVn6/wCWTpBurLp2fXP1kUa26FHX7cAPRfdU8YHMsJ9nn tfMwUDy9HO08KkHPZ1dUrrDPF3SrZ/14yzfw35WnR0tR7aO/cwoldblP1x4aeEdjWET3A1 7xXKDvTJRg/BBo25paGi0YrfzsLezttlPUnxTvUdt8faz20AzbohuFdjsQMDUNbX1S/lNk UXNvGy/TlS7OPtlhAniGrqsm0W2J6BSBRAtkyU0LTBiYSqGDSWgTogpokb/+lA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647374013; a=rsa-sha256; cv=none; b=J2otRCGbrt+jC8ZpJOapafPcdUTMn5eQZH1hvAgy/lkdihpRa/Puv7KQw4CfZiwW5KXyYW HKvKGMMpBap9rwohsh+t3BUr5pG+ZAXVPCljrwI2q+qEWFGYZsQqs4XnNVWJtINJWr9Vm2 v9GhMxf/ZFm9AonxOSr7msrQLUwOH1BYJElRbvLRWogtUYvZuGUrNxEyuE8aGRpoxGnl/V uvgn7NRaU6e56kKOm4TUpRmYgXAHRmDMc1cGaEHrLzSzYQv3Psx7DGqIZm1n4AfLPz6Srs cSXNxcVxTz23rv224vWiwJ0wPdC8zdlDTwkvmj6tvqRz6RILLA+bXOjf2YQwgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress --- Comment #44 from Mark Johnston --- This is finally fixed in main, by introducing a new version of the CTF form= at which lifts the type ID limitation (now one can have up to 2^{31} types, wh= ich ought to be enough for anybody. The MFC period is somewhat conservative si= nce it was a large changeset. https://cgit.freebsd.org/src/commit/?id=3Dcb6f7225629301d3179f6e9f6d3be4d80= f57a31f https://cgit.freebsd.org/src/commit/?id=3Dd7412bcac8a970542dc752f8717a38593= d4192ec https://cgit.freebsd.org/src/commit/?id=3Dbdf290cd3e1a69d41c2f8bb60bd415cfa= 78adba2 https://cgit.freebsd.org/src/commit/?id=3Da6fb86917362e3f6d24e95e940e80845c= 2cfde8a https://cgit.freebsd.org/src/commit/?id=3D8dbae4ce32bde42daee050ccfceee5eb2= d306786 https://cgit.freebsd.org/src/commit/?id=3Dd9175438c0e77ef2b400601aa8cf8098c= 82a77a7 https://cgit.freebsd.org/src/commit/?id=3D994297b01b98816bea1abf45ae4bac1bc= 69ee7a0 https://cgit.freebsd.org/src/commit/?id=3Dcab9382a2cdf88b3027370cbdf73b0955= 98eb7c1 https://cgit.freebsd.org/src/commit/?id=3D2d5d2a986ce1a93b8567dbdf3f80bc2b5= 45d6998 --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Tue Mar 15 19:56:13 2022 X-Original-To: dtrace@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 39B241A2B4E1 for ; Tue, 15 Mar 2022 19:56:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KJ40c5CWtz4kCs for ; Tue, 15 Mar 2022 19:56:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C2496246 for ; Tue, 15 Mar 2022 19:56:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22FJuELD053983 for ; Tue, 15 Mar 2022 19:56:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22FJuElE053982 for dtrace@FreeBSD.org; Tue, 15 Mar 2022 19:56:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Tue, 15 Mar 2022 19:56:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647374177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bftFuf8QIVbE/X6kDKeh6DRTfagKjVBtOG/iUH8ANQk=; b=e/46D+7uSrzPkzIzAUEeZqtYL+NYNt+BbzIKlXNXy9QNC0Ap5UQqxJzCL9E6Pp4liFB73B JVyJ/62eR1V0j5LzuIzRq42T9CQooE43tUOhTDj+SsGoz7MOPFPcGp3Jn3JGtRN4jMGe1a W9ais8fyCPIrbr8IvIJIrrgcwzlh6WWKeJqsw+yLBuy92iEsvoXtDp6Wjs9y9OTxQWGehD cR+a90c+8AQIf+ceEwM45W3uPA9Xig7TPH7P4YXt75JvUkf+pWLLPzlvjYShntW4yc4iwp ZCSjFkTpMIJ1o8QXT556czH0lpwvko8sgtpdWC+Smnn1tHDmXRng6UR9kCp0RA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647374177; a=rsa-sha256; cv=none; b=XAZne1bZxHC2dFAioztfFbuynTDGNnq7erE8qLq93e0PrXafbgu5UEHipsE0YN3dJdJIlN fXGyU1/VQ/0AIbRtwolLZM8ZRKhVyVsTBW86fAVp6FJG5GpZg9gv/pCga6vVkohF5JA0gl xi8QdJJ7exv0GahTQPwTiB1zKljhlBjN8emo0CUpF/N38JvOMBJHpd1JX4Mm45nMWj3S2g I8E2NkHpgWzHUE/3VLvCy6ZW2hUatEXp9fRzKWDrCO5Gc8viSxbE8wUFwOgDd4jZnXNaPA fU8wmisVjCmgtGoCBcUg0HjrT8F8iE0ST70oZ1eJxx8DZksvEJ32W8GjGxeDQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ksbeattie@lbl.gov --- Comment #45 from Mark Johnston --- *** Bug 227312 has been marked as a duplicate of this bug. *** --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Thu Mar 24 04:37:50 2022 X-Original-To: freebsd-dtrace@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 AA1F51A361BA for ; Thu, 24 Mar 2022 04:38:02 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KPCBy4Pn6z3D75 for ; Thu, 24 Mar 2022 04:38:02 +0000 (UTC) (envelope-from lwhsu@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648096682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=cC/o+msVw47nfCAAY4z1q0KE6erDffJVYXgf7SoK/w4=; b=R/vnbHuNfKNhW8RyT4f5wojI8r9giEmiqBxsLTpz/2WxW0cmizAOHuVdI7Eq5hsZd+c38H 9Ki6IuLmXydGZnAlet5YoCb9cneKfzNsdjTEsoY7zmdmzhBipUqgJ+fETATE3eFZ8+tmvZ p4Azmdki6OCUastEl7CJsCQvtQ3u3BudCPWPXzrOcyLUYOsMTOyvENU24mJmZl5bKwoOWW oePnywB28mAqz2ELefSVKWLbxYatiHR//3FwDqOe7R7+SJslM+BIX+A9DtnyO6LK9EFKs4 RGkWntcM7iSPG0hlMzVvFXimv6fNm0WVGNPaIp1F++kOcBlZGf20bbXHRK84rw== Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: lwhsu/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 719042C146 for ; Thu, 24 Mar 2022 04:38:02 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: by mail-ej1-f48.google.com with SMTP id r13so6790012ejd.5 for ; Wed, 23 Mar 2022 21:38:02 -0700 (PDT) X-Gm-Message-State: AOAM531H3js0MQK/P7Ai2Ae+jd8SgXc9tH8PoN1eLMiZpADcUnEqre8m LnaYlu/pLdRZ7ZWisQBhiqmAuSpy5/x2WyDMdmg= X-Google-Smtp-Source: ABdhPJyfiFPSIOoP42aO+vF8V5l4Vo9+0n/3/QeRb4eFd1gM7tjuarA+UOk0XhhBy+cSXgXL3X/uTxA1+0jYlrRHecw= X-Received: by 2002:a17:907:94ca:b0:6da:b785:f067 with SMTP id dn10-20020a17090794ca00b006dab785f067mr3828045ejc.654.1648096681262; Wed, 23 Mar 2022 21:38:01 -0700 (PDT) List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 From: Li-Wen Hsu Date: Thu, 24 Mar 2022 12:37:50 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Enable DTrace test suite by default To: freebsd-dtrace@freebsd.org Content-Type: text/plain; charset="UTF-8" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648096682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=cC/o+msVw47nfCAAY4z1q0KE6erDffJVYXgf7SoK/w4=; b=pBI/kgAIna4UmY1cauL+4PTDYatxwQs6+3MvtoGbY+uYEPY5/kcusjHhDRJXMt1UlR+Yyf Tzx9iplV/hUZSprbCrDyxAPpaljkVRkG2hw7THUp8OZaGKvFrPpQ+KLGhYnhnADrWH8iz8 3XXtAlbg1uDqW9vn2jzUibErUwyLBbyzXXUxCf//6lMOIa5petmseko276MXca6X+9w4Ta ESJLdSG7UrIXXGlEPCbJekQ7ZwxTJMwx7muM/YE06btuJwojFG5pRpbPHGb2RettdIRdl9 giFP8YufgLNKiVdzCEqUyM1rATwlTlExUQrpZNlubsv1w8Ru6bnXUiqB8Vzthg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648096682; a=rsa-sha256; cv=none; b=A1O7xy7z/H057sO+W2waz29xnTgMwevjZkcopEMwRunK8UiIdZ2e/O1KnWR+qj93VWegun /ZLYzPf5yojLUgvfVHdETFyLiJincRudz9MOrR211IQ+IvGcWupTwISCNP7GAyvKce6pBq c6J6CJ2jqiIE6Yf05ECFEL8idT2bd8kQvKxW6wtFqULYQl3B02zW8LmZiuVBtE2vEu2qyg xekPdD1Nq4bJ1VVM1x16QtN2x/7V+mltiUOwlsT+RrDEU3bZKANBohaUF6gzIQotTy8tAb JJiyH0YS4tQGx0QXNLHoq9FiVVIKeR/Ujpolznm5kEHa8HRem/02nFWR314/LA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Hello, With disabling the flaky test cases, the dtrace tests job looks stable now: https://ci.freebsd.org/job/FreeBSD-main-amd64-dtrace_test/ I believe it's time to enable building and installing DTrace test suite by default, to receive more tests and let us see issues earlier. https://reviews.freebsd.org/D34656 Currently it's only enabled on amd64, but if you think it's reasonable to also enable it on other architectures, please let me know. Thanks. Best, Li-Wen From nobody Thu Mar 24 15:38:12 2022 X-Original-To: freebsd-dtrace@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 B8E8D1A4045D for ; Thu, 24 Mar 2022 15:38:19 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KPTrp43Lwz4dd7; Thu, 24 Mar 2022 15:38:18 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-ej1-f45.google.com with SMTP id bi12so9983394ejb.3; Thu, 24 Mar 2022 08:38:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=sOlHN10XaHPEjxftbzo68thmEFV13aIy8Vo/o36bF/A=; b=mqz9Bb6Q/FOo78uu01E9LUfVH1DfrZUL34gjt0P1xncwtbYJnI7zFukOH0CQMWJzBs Lu9pjXUYGab4uCr63g5ukI/RXhA8Y0N3TZu7M4e6Im9DKe7gyHQFrps22X5v22qe+7Dy h0RxYHyOwdsD8V7UvuhSGDa49GY8rwvKQYTwbCiln4sHjPYU+D2ICmOtT+gOa+ytLgm0 iEzgEe6SA1Zfh9dscmiodmqHriZmewVz/TgZaks09a3arWv53OtXZ5TOPkgVNn2ME7e4 Mo5kduWccj8wq7ZRC74RNcgQxuDU4kvU895r6W8xKzatDaUS3s9XOwUPzK3fLFb3hc2S DljQ== X-Gm-Message-State: AOAM533XKKhEGkY5wH4s0Cxxhhy76s481ZeZhZimU85M6vx7LZV9lYIA fNZ3uUsE/H1kMOeHVwaOph/lj0y5+yM9DA== X-Google-Smtp-Source: ABdhPJxe8bTu7uPa2J+Lmr8+uag4qEfDquyacupWNhfDVom5UR2q5PCVMBpsvDrhWCPN9sA0uqxNVA== X-Received: by 2002:a17:906:7304:b0:6e0:6918:ef6f with SMTP id di4-20020a170906730400b006e06918ef6fmr6325282ejc.370.1648136294886; Thu, 24 Mar 2022 08:38:14 -0700 (PDT) Received: from ?IPV6:2a02:8109:9880:1d70:5e5f:67ff:fef4:ffd8? ([2a02:8109:9880:1d70:5e5f:67ff:fef4:ffd8]) by smtp.gmail.com with ESMTPSA id b5-20020a170906728500b006db8b630ebdsm1229430ejl.209.2022.03.24.08.38.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Mar 2022 08:38:14 -0700 (PDT) Message-ID: <806d8697-a5c6-e94c-3660-9ce24c104d57@FreeBSD.org> Date: Thu, 24 Mar 2022 16:38:12 +0100 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: Enable DTrace test suite by default Content-Language: en-US To: Li-Wen Hsu , freebsd-dtrace@freebsd.org References: From: Mateusz Piotrowski <0mp@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KPTrp43Lwz4dd7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mpp302@gmail.com designates 209.85.218.45 as permitted sender) smtp.mailfrom=mpp302@gmail.com X-Spamd-Result: default: False [-2.96 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[FreeBSD.org]; ARC_NA(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[209.85.218.45:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.955]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.218.45:from]; MLMMJ_DEST(0.00)[freebsd-dtrace]; FORGED_SENDER(0.30)[0mp@FreeBSD.org,mpp302@gmail.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[0mp@FreeBSD.org,mpp302@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-ThisMailContainsUnwantedMimeParts: N On 24/03/2022 05:37, Li-Wen Hsu wrote: > Hello, > > With disabling the flaky test cases, the dtrace tests job looks stable now: > > https://ci.freebsd.org/job/FreeBSD-main-amd64-dtrace_test/ > > I believe it's time to enable building and installing DTrace test > suite by default, to receive more tests and let us see issues earlier. > > https://reviews.freebsd.org/D34656 That's a very good idea. Thanks for preparing the patch! Best, Mateusz Piotrowski From nobody Thu Mar 24 15:52:18 2022 X-Original-To: dtrace@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 4724B1A4425D for ; Thu, 24 Mar 2022 15:52:33 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KPV9D27HMz4hBj; Thu, 24 Mar 2022 15:52:29 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 4F6A78D4A17A; Thu, 24 Mar 2022 15:52:22 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id DB166E707B7; Thu, 24 Mar 2022 15:52:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 11ERMXHmgsaO; Thu, 24 Mar 2022 15:52:20 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id E5461E707B3; Thu, 24 Mar 2022 15:52:19 +0000 (UTC) Date: Thu, 24 Mar 2022 15:52:18 +0000 (UTC) From: "Bjoern A. Zeeb" To: Mark Johnston cc: dtrace@freebsd.org Subject: Re: DTrace, kernel loader, unknown probes, enable on load? In-Reply-To: Message-ID: References: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4KPV9D27HMz4hBj X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net X-Spamd-Result: default: False [-2.16 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zabbadoz.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.86)[-0.864]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[dtrace]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, 14 Feb 2022, Mark Johnston wrote: Hi, sorry I had lost track .. > On Sat, Feb 12, 2022 at 12:16:45AM +0000, Bjoern A. Zeeb wrote: >> On Fri, 11 Feb 2022, Mark Johnston wrote: >> >>> It appears to be sufficient to simply move the kld_load hook to before >>> module registration, patch below. In the case of a subsequent error, >>> the unload hook is called so DTrace gets a chance to clean up. I can't >>> see any reasons not to move it, though there's at least one non-dtrace >>> consumer that needs a look. >> >> HWPMC? > > Yes. > >> >> It does work for my case with -Z which will ease work massively. >> I can't wait for the "morning" and more time then to look at things :-) >> >> Please put me on subscribers should you put up a review. > > So there's one wrinkle I haven't thought through: when FBT probes are > enabled in a KLD, we use the kld_unload_try eventhandler to block > unloading of the module. Now, if we permit FBT probes to be enabled in > a KLD before its sysinits run, then the kldload might fail, and the > kernel linker will try to unload the module. But then FBT will block > the unload. What's the right thing to do there? I dunno. I can only say that the local change has helped quite a few times in the last month in my dev tree. Shall we add a PR or review and track progress there with a possibly wider audience? >> Thanks a lot Mark and a happy weekend! >> Bjoern >> >> >>> diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c >>> index 2e4c95f16c8f..55661b9f9aa2 100644 >>> --- a/sys/kern/kern_linker.c >>> +++ b/sys/kern/kern_linker.c >>> @@ -452,6 +452,7 @@ linker_load_file(const char *filename, linker_file_t *result) >>> if (error != ENOENT) >>> foundfile = 1; >>> if (lf) { >>> + EVENTHANDLER_INVOKE(kld_load, lf); >>> error = linker_file_register_modules(lf); >>> if (error == EEXIST) { >>> linker_file_unload(lf, LINKER_UNLOAD_FORCE); >>> @@ -472,7 +473,6 @@ linker_load_file(const char *filename, linker_file_t *result) >>> return (ENOEXEC); >>> } >>> linker_file_enable_sysctls(lf); >>> - EVENTHANDLER_INVOKE(kld_load, lf); >>> *result = lf; >>> return (0); >>> } >>> >>> >> >> -- >> Bjoern A. Zeeb r15:7 > > -- Bjoern A. Zeeb r15:7 From nobody Thu Mar 31 20:06:25 2022 X-Original-To: dtrace@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 7E2B91A53BEE for ; Thu, 31 Mar 2022 20:06:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KTvSy2RFjz3vxB for ; Thu, 31 Mar 2022 20:06:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2E68F2E09F for ; Thu, 31 Mar 2022 20:06:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22VK6Qjc027116 for ; Thu, 31 Mar 2022 20:06:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22VK6Qgb027115 for dtrace@FreeBSD.org; Thu, 31 Mar 2022 20:06:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Thu, 31 Mar 2022 20:06:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648757186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ubvEo7OYgDtnwMGlreXLx+wJxP/D+B4TwfrSctzZHQ4=; b=hLGZTk2dtD2ts+eX49CQ9gasXlQGT9YgD81KOgOVEuo989OAKdTTQ2skAwlhyMWtBYlf4b Adjyl/Gy9UCkvXtxmbLNey9G+3wq3ydmQ6U6JmaCG49x1ESntbadPqnWJeE11rw1jKnTCB sqkS7tNaOIsh/7KX/+0WeBajsHQxQ8tlqsi5mMr6OtI9n0qEHnP6m6O14+GEBZQsOUu+/L vAT+r5yPIc4M4R/4e+7FPvvZxGF390D5Bpyw/YxzTFI0vFP825CIMOmOCCy4z2KBU3SahQ JrJCdQsUUL/HnHeJkSJDux0WSAxuX+KHjuszOOGRJhaZ1CnGn4y6DdSWORFQKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648757186; a=rsa-sha256; cv=none; b=YrVgPDkK7DVIPBjC0qUKJ3LvWUqKiSP7KXr0OC2lGgN6MZkhhOwcniVwNukUrCtwcIIDje q+us6hQ73UPlJdYYhM6/s4fzk2cyFwusKvcf9rd5FMFP2voRltC0mOTn+bG6vyJ89eB3Yi ozCGSZPcKa+GZRG9oY8/FXx9OOOfO6i0paKMcSCwOLRSwLOanye97ATpfgO7SwRJEih1Vr F757Kd4oYWVQBVQMk2778eOsOiKpLnVy0Krhs+ySlNo+QwmDPCpnHXJm0bArsJOKZzQDp3 MpXFLAFKC8ZgYvnzj5rXty3GjseKysiEm4+Z7PF92q6AcHeXhI+W9zf0/6BO3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 Marek Zarychta changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zarychtam@plan-b.pwste.edu. | |pl --- Comment #46 from Marek Zarychta --- I am trying to run dtrace(1) on: FreeBSD 14.0-CURRENT #7 main-n253931-9b597132aea: Thu Mar 24 10:24:28 CET 2= 022 #dtrace -l ID PROVIDER MODULE FUNCTION NAME 1 dtrace BEGIN 2 dtrace END 3 dtrace ERROR what still seems to be not correct while # ctfdump -S /boot/kernel/kernel | grep "total number of types" total number of types =3D 32821 --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Thu Mar 31 20:07:55 2022 X-Original-To: dtrace@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 5C7301A54A14 for ; Thu, 31 Mar 2022 20:07:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KTvVh1RY8z3wS8 for ; Thu, 31 Mar 2022 20:07:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 11DE82E387 for ; Thu, 31 Mar 2022 20:07:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22VK7tUZ027380 for ; Thu, 31 Mar 2022 20:07:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22VK7teE027379 for dtrace@FreeBSD.org; Thu, 31 Mar 2022 20:07:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Thu, 31 Mar 2022 20:07:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648757276; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jJ/TtJWSNUC3yFN5AriOwJcTDBX3/ZKKGsnbo5u1YjY=; b=fvRxNUwM8uOsbuL4rbfOD/hON78hHZ4zwDuDEo4lLYzsFyhtqY80NzD9/FQ49aOjf1IY8G FZXOGkLYP8QbsxmX0oWY15xsV9P1PxEH+2wX+nuYOpEWO50jimHbzkUhOCylUnAFVyXrDM 6LmY84lOzYreem1olIJ4kH2hk9YPUHaOxrmvwRxLA8WQBFk9Oco7q0D4kDLuPMlFkEXBIe 35qesJAliY9H1MmwmHb4UkqeBIK86v4KZJIhqW6YsgOfAU9QiYmbhYTiNkbVBsbRU2SKR5 g+PCdmotpk6zOgA2TWJ234fhvE3DGoPkePGlXO+bMON0pLbHRoRCs0EJbk6m8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648757276; a=rsa-sha256; cv=none; b=jOg1LiUYdcbDVvJv80KLxo/FYVqKfOzgbvwj09UWMDNZpDfi+uOmv2JOhjk80ZAqSPvIZj H69e38RGw3Qv0Ju0TZ4kWfONgWcBaDNUGMaphCQyOlW9cW7zzLTpYxo1oXjvLxnlCs+kbr 67jt5ZtOK7dlEURWZxgYKIpHwNSMJOHaK+K6hSwPnrkGbsnoODKBZlywtP5XLvvUUeAmuF dn3fkz6jSJk2qcdzqpRP+pdYdeYTIW1Yz4c1DE4t67i4DMm3tr42POfxh11zk3mTM5C4bd 7wlfYmHbxbsQ4+msjp9QCWpaFeJDRoRhjQ7ayNNIpsNLlYSBmpzmxyihZ88YwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 --- Comment #47 from Mark Johnston --- (In reply to Marek Zarychta from comment #46) That would seem to suggest that you have only dtrace.ko loaded, and not fbt= .ko, sdt.ko etc.. Try loading dtraceall.ko instead. --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Thu Mar 31 20:08:05 2022 X-Original-To: dtrace@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 4F87F1A549BD for ; Thu, 31 Mar 2022 20:08:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KTvVt15Q6z3wQ9 for ; Thu, 31 Mar 2022 20:08:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 06E782E297 for ; Thu, 31 Mar 2022 20:08:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22VK85AT027528 for ; Thu, 31 Mar 2022 20:08:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22VK852s027527 for dtrace@FreeBSD.org; Thu, 31 Mar 2022 20:08:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Thu, 31 Mar 2022 20:08:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648757286; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mbQQHIG8BwDzTp0B+xUhY/7VI86quP5f8JXwWkcXgNg=; b=O8oouu151+fA9hYEXGoWZ6Xv+KbIldLUNwR6+4wpB0cUl87KOV9exF7CYwxwipju+HauAf 3RZiPkKmPoSrFLsiEXhguw1pXBvGKMvchyFDOxX8Vr6rAXudEddTH84fB/tu+PHTswBRHx gXskxkC5+R32LftqC/csvAHXtJ/q7TrXy2dEKPS8DUk8zbewqJEH1MNT48XnFWJU5BcTw/ R3gT2xCmuD2Zce3xZgF31O1OeCpgxsoz4+2txdA/SxEfAdwf/jpaU3bVIPvUwhwSjPBC8V O2vSMQK8+GY/IkFHLySPkgwZeOFu4LeBpzxbPJHn+Yz0fmUmopFMLJNdlKFlHw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648757286; a=rsa-sha256; cv=none; b=BchlFI5BosrlGUg5NXb3mRN3M0vHm+yRYKQ33YHPSMi+4o75SUH3aWu+MjlAZG2qIYIvtj bjm5lbCzGcJqePKO1d7UEXl8BKat3ZbEsMjGwZSeIY1IZJi+uuR+LY5uhAQhF5pRPZdog+ wD1lbEDukQuWZNDeOQzHfA8Pstp61MDSp8WsEtYs5KkK1RcohYrccf1xcj++qumhFzE4fp NFJE/JRp4BPKK2ZLifqHP72zxrUU56zw6N7MB3dM38sa5jCjdrdRLl2q3LoZW7vLMqbzUc sOUnURAsYXDiATvMjrH16ef3vuvSPO81TJiznD+esihZG//6/BbxBGiV3NSY2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 --- Comment #48 from Marek Zarychta --- *** Bug 262961 has been marked as a duplicate of this bug. *** --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Thu Mar 31 20:14:17 2022 X-Original-To: dtrace@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 AA3341A55F58 for ; Thu, 31 Mar 2022 20:14:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KTvf22kwnz4Rt7 for ; Thu, 31 Mar 2022 20:14:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3BBF32E1FF for ; Thu, 31 Mar 2022 20:14:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22VKEI2Z034145 for ; Thu, 31 Mar 2022 20:14:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22VKEI5c034144 for dtrace@FreeBSD.org; Thu, 31 Mar 2022 20:14:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Thu, 31 Mar 2022 20:14:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648757658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RKDhBGiQzGcCczP2UOKbD8yvJUxtfTRk0v3sROcwuxU=; b=MiIgYPhqv2SYgCNJkqg11mDrCpy7U8fG4myUaLiIOmbrwFFJQbAWN0ZXSBNryauICmv38K PQNhLqSC8T48c/xnOwpLRQHzPCg5r23Ja/nvNBvohCD3C2ClFcL5rafWiLB04gLZq+UJ3D nFImgtZpnnWNTgpntTF6fa5eUWqXp83xBfldHA9RZ7yFfQo+YXCSoWjnmo4Q97HcTPrLt+ J4S05rVUa4CLqHpeLd+hlUPUpquh9tYto9XBfOFFUuAfLK4IVh1x5A8m4wQutXphqZ7jpt WvSY4WMrOheXT48HmhxQPO+s+uPDijBNKxBQID66mWuKscdxYVZNM+udCZY5ZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648757658; a=rsa-sha256; cv=none; b=ATn4omUUvHKKn1LRiJ7U16F7kSo1YQ3HxwRg+ICS1pZGLMixmcvC1jagYbYmMzCb5H98ly WykkCxkfMe9LDNUu5ys6gJRGkXvgC8WyKTFSfype6iiPkJAeKsChLr2wQ7b/7sNjJfFrZm h0HSzm1au8lhBlcjpLOEW1HmGIygnCTlFv1vqrjuc3obFmE/JDec9qJ8I0QGjoeDoRT+gT CcztlbPCcTO4FkfayUM532rJYh58Hni9EFu3LHiGU/qy1dlFXRcOW7PeHwr6uKROpHoAv9 EuN2wI/SAHsLcnmTBzOjQpq1clxGkNVH5bS/YV1MYfG+LDD5c3Po4Z6xOspzpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 --- Comment #49 from Marek Zarychta --- (In reply to Mark Johnston from comment #47) >That would seem to suggest that you have only dtrace.ko loaded, and not fb= t.ko, >sdt.ko etc.. Try loading dtraceall.ko instead. Thanks for the clue and for fixing this. I haven't used DTrace(1) for a whi= le. I am sorry for making noise here. --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Thu Mar 31 20:39:57 2022 X-Original-To: dtrace@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 EB3431A3BA6A for ; Thu, 31 Mar 2022 20:39:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KTwCd5WjFz4VNl for ; Thu, 31 Mar 2022 20:39:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9B0112E0FB for ; Thu, 31 Mar 2022 20:39:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22VKdvcT045677 for ; Thu, 31 Mar 2022 20:39:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22VKdvDI045676 for dtrace@FreeBSD.org; Thu, 31 Mar 2022 20:39:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Thu, 31 Mar 2022 20:39:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: flagtypes.name Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648759197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DF5jrovsjhP7JY7RsEJgRz6olk+yqsWhSop14o3dgcY=; b=wqdkb64QreQJ1O9rGqMQ1PuQd4fucqkMEPsFC3ImZU+SnhH9a8NYCEJqXnhRPexYsSnSr4 RLVVn8ZOb2sOypQHHY6KUu/6qvlUDW05d+XdxQKMTMfFQ4ttciht082ssGM7SxKZrXxTv7 K9UNAV5vYngYzlWNVPYmTVu4uCr9TplA0LHeccVHLuVYkLqeQrl3vwpPMMnzoWdb/XDNJt drN8iGZPOI0oxpTUZFi4vMY8LIZN84qgV9jzSW8X8Sl4mg/Apg4g54ViFKY4eGG0cwk7NJ 3pnfNQ5190OsB3M8g266ljIn9g2JavkRZZL91x5Lmczsy+6GwX8orF+H6TTi8w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648759197; a=rsa-sha256; cv=none; b=U1BTJGLSMHgOfsibdHxZvMfcFeCrKUzbM/efiFrvX79BgEVUaGoUkW23Vv4yAhPPeUHwTI 30zm70AG0ldXFH2pRvKBhsb7mygxu7PPDDoTGdf2akTdP+/VhpvOCYoiQwFfvJfmjb3YK7 RNkaKDYCEz5V/gMbT+fQ++O+WPfwtvi8tq0qFPHTOnCfse3PRfSmOg8GrK6uqISa5w8ZjX IBtngtIFtdkAxkBK0VE7yF64vBwKF20hengzcoXV0wqW0KgNU/prVUIv7rpPHeLy3Jjkk5 pM3V9CoUvgH82llphlCH9s23SM2UNSL4DXO53q6czBBbdASSy84Fi5D8erPe7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 Marek Zarychta changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |mfc-stable13? --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Sun Apr 3 08:15:27 2022 X-Original-To: dtrace@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 9192A1A49FD6 for ; Sun, 3 Apr 2022 08:15:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KWRYC1pMNz4XrK for ; Sun, 3 Apr 2022 08:15:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 19F2D19E18 for ; Sun, 3 Apr 2022 08:15:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2338FR2Z087423 for ; Sun, 3 Apr 2022 08:15:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2338FRCg087422 for dtrace@FreeBSD.org; Sun, 3 Apr 2022 08:15:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 262412] DTrace failed to run when ipfw loaded Date: Sun, 03 Apr 2022 08:15:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: Trond.Endrestol@ximalas.info X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648973727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/LaHbka+bI5QeVzYFksqSyhAFBXJfVlgSu09cNCHA1g=; b=WhtaXaoDXeCcvDgOAMlkOtCVxXoAq5IV5xnM+79T7sZdIkvCeU/kWcquIO2HvtaC55pfiX k8ZnFGH92fTYads4Ltg7EbIaOg8L6mNNPbqUO/JQD8JflqN6cn9jx853pg1PJ0IZxUrFnz LIBoAfAXiLXs1S/YYQzuEX+jOnk1RV2lhXofj9NFgvOysOOhtyULyNlRwj4lvYzai38pvA DfquE5e0EUqp9vpZjG/95T326pFrNoYU1HjS6zeNnFPOkNQ8tMONT5tZwLeqSB2wqAYSF1 4vPwKnUiQaVBU7EhMsdVp8sTLMqq+76bida3PhoLUcFJiWkJEeE9uJFKDM8ofw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648973727; a=rsa-sha256; cv=none; b=iTzLXx/ASd8oQuLZHjV9ReCPASd+JDCHWaxZNmCHiK2HLn77+tjru2gNqCRHBocnl432cI 3lJvb2h5G37vitmVPYMEhbFAcO+hXHuFqDeEKJupV2kYLgP4r7hbJJMRtozEjtbc3VK0bn 6HYFs0VlU0gyUVH8PVEUyuBb7YvEeDdRxlvx7pGAMf+aSXf1Jqq3F3Dyqf/MM0ZWdO6/AP lVH7yALiZRSd1FzH78Xb/imrXEq3VoU4l1p44XRdCQs2Q6hDrNyiiA/M/oMz/gmIXBHnXE bJMqxLLwjZo+ZEkkyQIFODLNrjVM03jcp8eoaKJuAWgka46m12dkUL3V2qHACw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262412 Trond.Endrestol@ximalas.info changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Trond.Endrestol@ximalas.inf | |o --- Comment #1 from Trond.Endrestol@ximalas.info --- Everything DTrace capable must have their DTrace support disabled on systems running CURRENT and using ipfw. This poses a challenge for java/openjdk11 w= here there is no easy way of disabling DTrace. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262809 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Apr 7 00:31:44 2022 X-Original-To: dtrace@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 DFB061A96C00 for ; Thu, 7 Apr 2022 00:31:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KYj4K30Vvz4t2H for ; Thu, 7 Apr 2022 00:31:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B5742255C8 for ; Thu, 7 Apr 2022 00:31:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2370ViQ0006015 for ; Thu, 7 Apr 2022 00:31:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2370VivK006014 for dtrace@FreeBSD.org; Thu, 7 Apr 2022 00:31:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 232675] dtrace: "failed to compile script" when more than 2^15 distinct types are in CTF info Date: Thu, 07 Apr 2022 00:31:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649291505; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e7sPm6wO91pB1KgTsZVP3CckiTtC0OgC1QhROj9BfQM=; b=nLOxZ8Em91hIomhZVG3gYzd+ErLXRQrGD38QFPaQpR8QL+xhFEM9euRQaYPTjsNuFBDZTB acY3G64aLWIReDJ2VOtEuQs7GSxRUcrjpws8sSd6rM6z2x3T4aeMQLvffjFsNp7/NEfBEY 4R04sMA4P9HEo6VfeebklysgsDIlxyQyqrxdbBkqdxuciBzkcJ7o27tEPeasXg/jT3OPeA Jd+fPpiPZ3Nz0zdMmLob7jJtrlY0MEbnFJc/vLQi9OYl75jGSQyH1TRvOsu6pxxNSIh7pU 1v+HDTrQtkRAFtTXs/xUy4nZtya9w/+FxljuSdClsZn+xpkeztL4yOsrT2Kr1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649291505; a=rsa-sha256; cv=none; b=u4A4u+U9frVomusSBZFbwp/SdZO6oBu4pUBhMul4lsC9u5g/NKl0TMjC5XumqKIGFpFkXE oM88UVJRoAPKGyyK8L3PvLhhfVRWYYoPYu52jP4X7hoE3sqYd2N9AzQj/WD9fMIVdGWTW0 fsjTOSwqPnyoL+PbOmBXmB0hic4EMk92CyZC6OXyYxjO5lkKemw3Zjv57mqFDAchRQLPv4 6pupUpHbToB4gWbk1WB4qydUXcpe4i8VW/cDoNHkSTAUku+SbcnaTa2vZb45r+GNGeIogN t1u5ToEGl0ZRzaQNqCobf8pxcBAWJK+7pwCyFhpDdfoN9dw8EK1zDaLZFZZRXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232675 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|In Progress |Closed --- Comment #50 from Mark Johnston --- (In reply to Mark Johnston from comment #44) These are now merged to stable/13. --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Tue Apr 12 19:14:30 2022 X-Original-To: dtrace@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 DF0071AF3152 for ; Tue, 12 Apr 2022 19:14:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KdFlW3Dxkz3NhW for ; Tue, 12 Apr 2022 19:14:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CCD161D40D for ; Tue, 12 Apr 2022 19:14:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23CJEUPQ090845 for ; Tue, 12 Apr 2022 19:14:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23CJEUDQ090844 for dtrace@FreeBSD.org; Tue, 12 Apr 2022 19:14:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 262412] DTrace failed to run when ipfw loaded Date: Tue, 12 Apr 2022 19:14:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: markj@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649790871; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Fwtd8UDFPlTFyj5NrhaRKUAbxnCbN8OWiTkvDTCL348=; b=fmjR1aEH6QvLbOs68xYvVhfRQ2ofA8EiaXstcBueVnhodokqsxTbSWcu3z3YALp/5gJQbt HXKqclwE3GPt+YCjfD5wHP/M0X1ybexbbsmUWVkAOmylTSjqV//yHcmLYasKJiwP1/Yd04 sEFrYRrB59rJi2El+r5E7OlkuaLe1BriE4JuQM0udBs1oXkM+dsExoPB76D50KBwovK1B6 AMhyakBzjQJyoXJ+LpUX06iZGzkJOVn/466Nr9I4xFR1ji4R0hBtTZ+kU3ZY8EGhH+p6rp PQsjGB16HAV8c7nI6UJ0nAQ9pOTZ6cEMwTKYaXJVb5jB9yQnllrPWR6li+ahAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649790871; a=rsa-sha256; cv=none; b=O6RxcVYdYDhBh0t1S/t+//KxO/dlOrQuxCixKO9pzKve4eUpf1SR3wTyjZRqd2+SV4e03c OkqI3XR1fIWh920dC1hRYuCypBv4XXw6SGSzi1s1rF/aePeQeCFEwVjytIMPPpjaGv0852 t6hsy4iaLJ4iHnFAcTOAsiLXQlkEW9dUBSyJiXWBLe7tiBFq7l/wIzfkcdtdVcxKAlpU4v Uo59kXXCoefoM+FJDvc7XkyTUiV6u0kNzKcFUNUzbAKl7Akn/Zn8FB56u3/ndnjsXLGkIQ pmRQ7P694pBoKzHfqWg2V4m6iMetohSZhfN6/2pWVrxb2tLq8wW+WPRHC6Ee6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262412 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org Assignee|dtrace@FreeBSD.org |markj@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun May 8 01:42:27 2022 X-Original-To: dtrace@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 3EB381AD0D43 for ; Sun, 8 May 2022 01:42:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kwn9b71HZz4kBy for ; Sun, 8 May 2022 01:42:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D26991B9C1 for ; Sun, 8 May 2022 01:42:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2481gRNT018009 for ; Sun, 8 May 2022 01:42:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2481gRxs018008 for dtrace@FreeBSD.org; Sun, 8 May 2022 01:42:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Sun, 08 May 2022 01:42:27 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: flagtypes.name keywords cc short_desc assigned_to bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651974148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BmmWRd0MIPpqMuanz8pOrbAmKygIva5qBjVSebEiAPU=; b=bbCTKW819F+4h2UeT7AW6jP6gefXj7kkm+zFy1YTo5LuK3EXRvB9K6SJKVYBdctIFRmmSE hzXXXkASIa2a/0vZHc/lHUntDqLPdH/pi8C6K+WsaXP5BzHA87Q+KY91WDRB7YI29anFQn r5CaRr8sWI4LjXgNt5RxFVLmiXskzsKKrIDNyijGWXkqZ4t8bd1IwGLA6fMKUp2ewc5EXk xjCGpAqzu/FJVYgW3ZZ3sL8opprsSxueUk4eL57rQh1/7CVHtcvFminzcwefwsYxF9pKmO YL5TWJneuHP52L9oMrOvTHYJVRfh+nqwMtg/hrrxl2PmyGcMiBWAvxX9CFTzhw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651974148; a=rsa-sha256; cv=none; b=VP5TvqfA0EnGop0KgBr0NnRaHuXthVQcVQqJZsM8pTc2jIixNM8XKkj8BDxqkvM39ZyMcT 4mJKG2zqhdoFkumQzjT1LWVI603eX34ISBZHFS+RbVAyP7eDq+fSRxNd2eR+uXwQUzO05A OQxsVcS6f/CGpnkTAKxGvbFHQzxwzo0tX6EaRHDT1S5+Qt3vqG0+kOl/UoCxxUAP9+TKAc NZ0ea4SWTsTE6y+la9JoIIclNpZi1UucS1/zn6b0oTV+vhBPXZK6Z/gZyzwLOEy2/Fc7BE WsjxO0+D5OC5OrsJ2zyXf8h/CLAfgcyXeDhYRbnt3wq9fm6V5SEJELjLWdv29w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |mfc-stable13-, | |mfc-stable12- Keywords| |needs-qa CC| |dtrace@FreeBSD.org Summary|dtrace: Fail to compile |dtrace: Fails to compile |script on main |script on main: operator -> | |cannot be applied to a | |forward declaration: no | |struct ip_fw_args | |definition is available Assignee|bugs@FreeBSD.org |dtrace@FreeBSD.org Status|New |Open --- Comment #1 from Kubilay Kocak --- Are you able to bisect or further narrow down the commit/regression window? --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Sun May 8 05:30:39 2022 X-Original-To: dtrace@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 50F691ACD44B for ; Sun, 8 May 2022 05:30:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KwtDv0Pfyz3KCj for ; Sun, 8 May 2022 05:30:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DDB221EEC2 for ; Sun, 8 May 2022 05:30:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2485UcxP038966 for ; Sun, 8 May 2022 05:30:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2485UchP038965 for dtrace@FreeBSD.org; Sun, 8 May 2022 05:30:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Sun, 08 May 2022 05:30:39 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651987839; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ld0HLd02OAsxyCFDdBkw0ELNHjRiDz9s8gI23BmQqSI=; b=hOqc31JYw5uPFqJ8fiqs/7tl7cwwMbeuMXx21dHgf4x0tlhI2N1Krmse3nZaeAsy+6Zw3T hHOdzMjSsWV4CKTyOZSyVK4+4wo8uNE7VPvtAvQgIQXYXBWESBY27XijUrtRz1ZOL3CCTh b1q7pg6PTq7SxPPIV5Ixzd4tgjNWlB+rkPWFuZz8049GULCfa1E+g7wpFJLGZQcb01SbAo pqvZNFqqkaG+sXQunXzpjtH4MIvP5zzQXLo8AehlZ/VGAvKxpTkvH9DH8K9pd6vAVrdqJ+ XnoTuW4OkiGmhDuETVkrutmpIAx2Z8ENypRin3bt6HYRW0qo8st/E/HgiUz3YQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651987839; a=rsa-sha256; cv=none; b=PqS2GhUb3RXZNpv+ByNbltRbjoaNiK+NXyOXBLqE0wWw8zTbEMkhmljnMaP3Hhcr8SZEg1 2tp9Z1ds9g121E2iLdOQsjT6A0TbXSyrc/kINwGzvepTH5sy6SQoP4Xd9CTmVilzh/ShSd 8VVv4JMB6N0fWsd0Mw7xJfbWd48xa6J1qeul6BzzzG8ZugEWvt2q6tOTm0btj5QFR3wOgh 3xA7Rc/qG2TBk5o+6qtCAaRgduNgg60Ye5jKN0bTpQOrKEBz1KVbMNj6cQxof8QXJoa6CE q0sz4sy7//Z3jU+WKlgW8xTjW7yefS64/nRTbD1o/+IVkWyteNh5NuJXk7bFjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 --- Comment #2 from Tomoaki AOKI --- (In reply to Kubilay Kocak from comment #1) IIRC, this didn't happen on previous java/openjdk11 update (bump), dated at 2022-02-12 04:28:15 +0000. ports main git: 399e3772d37e1ca597304d7e6784d4ee410ba869 dtrace-related portion on ports Makefile doesn't change with most recent commit, dated at 2022-05-05 01:50:04 +0000. ports main git: ec8ecb5b4a24746692cfd03a1f7bafeabe6409f6 Note that whether upstream modified the script on update or not is not chec= ked. (I've looked into ports side only.) Both built fine on stable/13. Disabling dtrace by forcibly adding --disable-dtrace to CONFIGURE_ARGS allo= wed build, so the problem is dtrace-related only. For bz@'s script, I have no OK data point on main. But no faulure on stable= /13. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Sun May 8 12:36:08 2022 X-Original-To: dtrace@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 5CD6E1AD0EEC for ; Sun, 8 May 2022 12:36:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kx3gr0CBfz4mBn for ; Sun, 8 May 2022 12:36:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D1D7524E84 for ; Sun, 8 May 2022 12:36:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 248Ca75w081876 for ; Sun, 8 May 2022 12:36:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 248Ca7uR081875 for dtrace@FreeBSD.org; Sun, 8 May 2022 12:36:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Sun, 08 May 2022 12:36:08 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652013368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6Hyi7HX3b0Xi9nUlF/TaXfqINhfQevvsMh9n6w/v6V4=; b=jwWV9JrCY2sZnE0tKc4d3ai2O779gbVUqzKuKZumBZUybM7plDiYg4V8MZ6NekRuWSNrkv QBRTpsE5DWMcgv9jnZMWjegatcKGTEgjAhKGOcZF3VGXgMNIoYiUPsKnRLOSKOGOyYNSmN mt1buIjh+3FAmyWq4kOQtkttZdFrmZkz9+jYUkKOoi6gnAd+PDNMPQgedYwyV8ViM2UlbJ EmvwxaKx9QuPfWDWDU3ZkOijYygAiUgFcynYQodyErf3ekY306IpPd4WoUTCQZR8GAHggS i5AA1SRfqzieyirYzrR7elGIAWdSRW5zw9ooPITk+1Q5eXAdJiBMknoS0Xd+Jg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652013368; a=rsa-sha256; cv=none; b=iBX/kZM4jZHKyMzd0hyQYSrQ1YSpQHfp3HiLb/XuVAJP0sx1Qnsz5/f/zY6GWaOtioPiKl 9APoFgf1ZGJaoH2Qt33gRXmxMBblxEyn7rKATOVSo1CyDndNd2Echi3E2R6paSU7ODmvrq OuDdM5nlTcdV/0pOtWbUcaWPYlOYlenmSgGV1qREDS7uk0eiHEEHCM8YGIGYLiDXcjgGdP phOriXQjRnNgDYfwJIgM6rYmWx6CBkam02HgQfBDR8wCDOEvtyX+JMDv/E/bhCddV6wl07 sIgUyqs04HCYsFIDkSUhBOU+8EJ3JRIq8Qe66B9Jg1uRsBON8KG58MsiC9zOww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 --- Comment #3 from Tomoaki AOKI --- (In reply to Tomoaki AOKI from comment #2) Tried a bit more. The affected scripts of java/openjdk11 are generated on early build stage. Not yet exist on extract, patch nor configure stage. Searching *.d files on ${WRKDIR} at extract stage resulted in: /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/src/hotspot/os/solar= is/dtrace/jhelper.d /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/src/hotspot/os/posix= /dtrace/hotspot.d /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/src/hotspot/os/posix= /dtrace/hotspot_jni.d /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/src/hotspot/os/posix= /dtrace/hs_private.d /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.15-10-1/test/hotspot/jtreg/c= ompiler/codecache/dtrace/SegmentedCodeCacheDtraceTestScript.d All files, including anything existing at extract stage seems to have the s= ame time stamp of release. Looking into upstream github, above files seems to be 5 years old. [1] So they would not be modified, unless following generation process is chang= ed. But looking into further beyonds me, unfortunately. So what I can provide currently is what I wrote my previous post. [1] https://github.com/openjdk/jdk/tree/master/src/hotspot/os/posix/dtrace --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Mon May 9 12:33:48 2022 X-Original-To: dtrace@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 12DAA1AD99D8 for ; Mon, 9 May 2022 12:33:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KxgZh5l9Nz3jlw for ; Mon, 9 May 2022 12:33:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A5C321158B for ; Mon, 9 May 2022 12:33:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 249CXm4G056936 for ; Mon, 9 May 2022 12:33:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 249CXm7U056935 for dtrace@FreeBSD.org; Mon, 9 May 2022 12:33:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Mon, 09 May 2022 12:33:48 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652099628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=41dj+eXalPInpw4FP+0mlm93PaDut4wNbTNiwH084Ns=; b=p3Y04+Fyr+6BtWOBXTF/jV8Gb3/+JIhlIP3qqpxeinUDfj6p3JMeJAG2OPrxlw3929yaZ6 QDObuBeO/7XmuESVVbwXttiXdA7OeqkJwKWxHSt93KCrxP/e8S7iOdyzk87i7IC2bvyV5+ RhrFn4kPsMdwt+0B6lf1+YKTIgswWvMUY8DobPufIZEnhxOvZ8tWZfWPRhGszap6ur3HiF wcdf4deBiqqLgYAJPmpMu96eFtASo3Uwm/S87BZiv36JFC4FRGo7M9xnAlZ25AWuVDtt5l BMinnsK8bp+4izWNVq+Sg64PYNr7X1AMW7+3NVHyhUZuyNL9/y49sv+02Vw/Ug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652099628; a=rsa-sha256; cv=none; b=js2EUPx7EzWKPLvCytUbrtOoQguDt7YIU98xteR6AkEKa423IM86aTPFj+Oht+ty42RWJD EpirDT5bBF3Aj5xrek9egc8pwwketGvMLUOngx/l3DKXbvlu1LTcM1wC+2YeyYyFd1Z+ax 2HlF/N4KIl0QewF2/StDvWfmZJ6mMcWeMi+Ll5ebTnD2Mrqd+5Czmplc3vsSrpyJzwW9zq gj0DIWjhr8/D7c0j58K95kTbz2fATzma0//b/GDhpSj5MvvKCMLvN5kv5gd9M06SBwaZbW ECXg8ZLDtvLN67XnKb7YV/9XDvM5KkNb0f+lGAcwpw27sIFM+2BtIijiYd//hw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #4 from Mark Johnston --- Which revision of main are you testing? --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Mon May 9 17:54:58 2022 X-Original-To: dtrace@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 36F681AD82B7 for ; Mon, 9 May 2022 17:54:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KxpjF6w6vz4sMn for ; Mon, 9 May 2022 17:54:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C90EB157EA for ; Mon, 9 May 2022 17:54:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 249HsvVJ024410 for ; Mon, 9 May 2022 17:54:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 249HsvX6024409 for dtrace@FreeBSD.org; Mon, 9 May 2022 17:54:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Mon, 09 May 2022 17:54:58 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652118898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Af/5UlMihZJN1N6hsaqu7AMuQVSNTluRzU+6tQKho/E=; b=LQEEIZRZoxh/rbuv7k9zsNNt/JtauVGesTR/lRaoRF0mqOtKkukMnd4MtIs7ps5Ezlw4r+ HorTJqqh9sjs2TNY5z2d8rFoKhFpPFeAQ4uaUkxMI+yBpsE2Cotr6oprPb2/1siXFbKOfR oXXUEpo5GbI80xhw6469UFGGtAvFb7v1/pW27e2xcId4wcYh5GajhhBBjAhXLfKdsdWC0A 7FReBoTiMUoE0hkhhFG0MO1pf61I8UxkjXyMSeWCBbgTItZz5w1QW3DJb5uA3am8aEDJMd OUDW+31MzcKkojkO4nOROUz/M0f2ePMjnxjZc3bJto8Rbf9kEzrx1LoxuRlCUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652118898; a=rsa-sha256; cv=none; b=X3Eyi7d27MkEhOzQTF2gTmHQxlSVo9/fiug0yAEQjDclLiqeCqyEW0cmxfg4tMMZp+Nfmf j28QiqBna6hd7TwTM9HiiPlx6N2c0pqsF1PDPw3nen+CrAI98FLmjz7USH0mvwJy/sVyN6 8tsu66RV+OLiu5P8TShTsfOaw3m/Ih3Y8F6c82xh9e+jcVgpIfOwrQ0Wn93wzAb1MuXbhd VlM7H0aPLtIGAguIwZzY4gRnlhkbnmpNFVQKRnaChy4cIz7WMv5ZfNVnpjIU9gAM6pCbTG KtvN0mekS8F6/symZw8sfrBqYHdhvRqq3UE0VXsapsBYcitZ3RjRsU1sbgRtdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 --- Comment #5 from Tomoaki AOKI --- (In reply to Mark Johnston from comment #4) I've tried bz@'s script for testing iwlwifi at revs in NG list below with no success. The rev I encountered java/openjdk11 build error is unclear, but any of the revs in NG list below. The last successful java/openjdk11 is not recorded. Sorry. But maybe at... *Unclear (bz@'s script was not yet provided) but possibly OK rev.: a35bdd4489b97f14cb46ebd0f5354685e4488af3 tcp: add sysctl interface for setting socket options or e01e8f911b935eabcc35b4d121951e4e21042ee5 freebsd-update: improve BE creation feature *Known to be NG revs: 32c3e0f04921f1641c431433cf00ab2a1d9c100e nfscl: Clean up the code by removing unused arguments b75644771aa8bd362b9d22bc66c6bd6cc2beaf8a Add nullfs specific nocache option. 350668eb09a274436922fd580cd958c6a8a7eb25 rpc.tlsservd: Delete set but unused variable 350668eb09a274436922fd580cd958c6a8a7eb25 rpc.tlsservd: Delete set but unused variable 9fb40baf60435c000415429220c57c754ce318fd cam_periph: Return ENXIO when peripheral is invalidated f44280bf5fbb0599871612e9286407981ad4aaa3 libz: update the upgrade instructions to reflect reality 1599fc904d35cfa8eecad92818d1f4b55de6818f iosched: Move bio_next() inside of the CAM_IOSCHED_DYNAMIC ifdef 9a3583bfbd1740a158b3916432286190e0f2bf60 OpenSSL: Merge OpenSSL 1.1.1o 9f580526e45a28fdfabe1aa58798ad3883690af0 ibcore: Remove set, but not used variable. 2f44ad86f5553edb9e7854767424f22ba132ee92 dmesg: Better wording from review --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Tue May 10 13:16:16 2022 X-Original-To: dtrace@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 5DEFD1ACBE47 for ; Tue, 10 May 2022 13:16:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KyJTD0XrSz3Kjv for ; Tue, 10 May 2022 13:16:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E701A26182 for ; Tue, 10 May 2022 13:16:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24ADGFG5079051 for ; Tue, 10 May 2022 13:16:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24ADGFiu079050 for dtrace@FreeBSD.org; Tue, 10 May 2022 13:16:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Tue, 10 May 2022 13:16:16 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652188576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V3g1d/nlvGpiCJSBtXmHq7AN9XoFJwQAM5v3JmvdYoM=; b=ET3yRY5kRO470e6/QbQ0C8IG0qbtar2TKulXVVMBvsDK07yNKYJKUQxsI4w75/u6q2otdW zeNDsoLwudUOjcA9E3uCRAAFkFscyjdTprrKQlTyOs6B1lRhfVDkdCyvj7Ve18RvK3J0Jg cZ3RhOPscF+oW1gB9UCklvuXHCexPmGeq+SJp0BA09qhPQOXl2UG43nwZzHzCXq+FxK3UD +F0V4D4l0VCSt75OS2gYWgpP/tP34anA1M5AIlfqTr7zf3m4ColMdjMwdi2tAIGq52uiF2 z64LxvnrvKq7IY/lPbDuVN5ZljixVI71ttuid1UQBNp4gV0UfTp4Tro3t3QNSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652188576; a=rsa-sha256; cv=none; b=hYK854y1aBDp0F07NvEaOvVBjq3IoTn7p1tjI5Zhc4Ek4tz29RKUUyNa6TuBkkydCDgse+ Qy1MyeAeoNbk9ln/xtXekm4CrO3s046L/D8hRoZwvK/HmfiHeHub6el5sM7OmpzleI6fIH ICznLoI5y4kA3SF0QZi3X+MLyY34IPUGY3YDiFpjByYcMHfjXU3jGLJ/JyLOjkOqNyTq9M 6a5dyYsEn58uSMK+o/ndC3OmBl122pR3rpCp8Sw/yayFOxFJIRrQQPSf23DVQOsGT+JOBM XqhNmitYbDceYnKqKvm6A1obIvUmXdq35aTsgRZCEJXDAY5rtItXResqTH4g3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 --- Comment #6 from Mark Johnston --- I'm not able to reproduce the problem at commit c6df2176038. There is one similar problem which was fixed recently by commit 6e563a1b608= .=20 Are you sure that you have an updated libctf.so? Also I presume that you have ipfw.ko loaded; can you attach output from "ctfdump -ht /path/to/ipfw.ko"? --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Tue May 10 16:33:25 2022 X-Original-To: dtrace@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 7C3BD1AC2D30 for ; Tue, 10 May 2022 16:33:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KyNrj28qrz4YsS for ; Tue, 10 May 2022 16:33:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2A4B8D64 for ; Tue, 10 May 2022 16:33:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24AGXPgE085048 for ; Tue, 10 May 2022 16:33:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24AGXPer085047 for dtrace@FreeBSD.org; Tue, 10 May 2022 16:33:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Tue, 10 May 2022 16:33:25 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652200405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pQ00f0Oy3ZTb6d5DLp4d7jfF03t7Bt8t7j707+xr5kI=; b=q895EbsD7jz1h0xlVSLz/nWyXRpr0r5sfZgEH80NTY8uDXY9kK5+CC2LFNetXbqA8JBhEO QNS4NClPVz/RT3hHUMW/CNl5JOW1tKAgPLk/6LSWgY1KWfXromGS7ZXufLKw92l+xwTb3m /izBam+SHNk6bdSqRSof2NE5pNMqJm/r4XRzmb3jnI6lwgLvwBUtWA13DIMYoNDeqUJegm +FNEf9KMAdf68b6hS04GC1tSM7l3ohsiDBE1XdDkqU48eTBN3y4Xyr19/C4ljtQdEPTtLp LPq7JxTejVA8gpVWDV/SQqkx4lpOvwST4wPI9n26kzoNWuVrKnbtFLTcRRFmSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652200405; a=rsa-sha256; cv=none; b=cyII4TKPV7q7E5UJ1KJRPfT47UzaVqSIYkgUXTKaIpf9DyNzcV6VYzDzC48fWsu3I+YjiG bQphqwGZRqIml2M0+bw8T482twm4Xo+E3CtqvjPXopLaowVQMurb4dG57DHvqkmL86yXIo yZ7HtVtNF/FLmH3liP45zI8J0KtoFTWAaxYo+jEUIaXoVk5K1LCzFNz1bE2f/ALccP66SD 6chOac4K8yB212wgN/yU39fWrtuq/sTZFqTiy1gmVjtYMNXoJq2Pl8kcdOQkXeYT9HaHcA 0cXLin5scR9f5BmwgFUiot4/JbJVxv+hZI6eipbPPNBwpOXUAB1dkvL0EYzKiQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 --- Comment #7 from Tomoaki AOKI --- (In reply to Mark Johnston from comment #6) > There is one similar problem which was fixed recently by commit 6e563a1b6= 08.=20=20 > Are you sure that you have an updated libctf.so? Sure. My last update at git: 2f44ad86f5553edb9e7854767424f22ba132ee92 was a clean rebuild. Backup /usr/obj/usr/src/amd64.amd64/sys/(confname)/version, delete everything under /usr/obj, then restore /usr/obj/usr/src/amd64.amd64/sys/(confname)/version to keep build No. monotonic. > Also I presume that you have ipfw.ko loaded; can you attach output from > "ctfdump -ht /path/to/ipfw.ko"? Yes. ipfw.ko is loaded as I configure it via /etc/rc.conf. The output from `ctfdump -ht /boot/kernel/ipfw.ko` are as below. No difference between regular user (in wheel group) and root. % ctfdump -ht /boot/kernel/ipfw.ko ctfdump: /boot/kernel/ipfw.ko does not contain .SUNW_ctf data : No error: 0 The above output seems to be via stderr. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Tue May 10 16:35:51 2022 X-Original-To: dtrace@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 504361AC2E0A for ; Tue, 10 May 2022 16:35:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KyNvX15wvz4Z7L for ; Tue, 10 May 2022 16:35:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 029B9BCC for ; Tue, 10 May 2022 16:35:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24AGZpI1085491 for ; Tue, 10 May 2022 16:35:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24AGZpY6085490 for dtrace@FreeBSD.org; Tue, 10 May 2022 16:35:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Tue, 10 May 2022 16:35:51 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652200552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tMMlGOBqBLyLtsyayBGBoESI553AbjBghhME0vWtoyk=; b=F4I7DjntFDCE4b3POTY7uyVrxD9SIxQCDAI52I/rmZ3EFpS4qgaLJVJGaox+MH9+NbSVNc uTJnin1FzIg/EAWcWNfUOe0K7z/V2OBDvDRkrkuI8AM2RB9eBo3TCRwUnU00fKS4kzMPUX Nte1ELGvNMWHU5pw8w4JY5jgDiGzgx8sRGlHby1duQSAA/VZUkzUd470Rmi/T2a/pyhTVE Dm0gdEwM3Ac5kGA4UQ7UklzfeJM8lZOtCUMTXomHnQcw7mmGmTUlmi857h2W9mcCElBb3c B3tWCYkf/JNmrDKBB73GEOCedzo2E4fLrhCP9imMWRJNtxlVOmCNS95UMidv5Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652200552; a=rsa-sha256; cv=none; b=USz/y7r+Yb0l5z5p0DsS/Kux187lTLMRMAChJavUnovg6z+GWYYSKrHGRTW1Fqp0C0XVQw pQJmjSiq7OPlOaP2gPOwmOTykxmhNH9ikZB6fDSiplhlMl8Yw3CSlVoUf2Qq6HscBl10PE 37+l0y18wYZnzbB7YIBPMM4gpJnB35tKIS4PLsRkQp5c9zlTlshiqPkmZAuGOSmjX1bGe0 Pv1Fk7Wh9gzt+9sh8B3YN2EuN42hgE3DlsIEFydi4o3w6qB1D0HAQW74JlMgf+RkUEPCQg pcBdIPxBivXtjbpExzm/I2uSewKdXxafkEDORGcVL2eJe3EPHrKiFWqx1uBePg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 --- Comment #8 from Mark Johnston --- (In reply to Tomoaki AOKI from comment #7) Oh. How did you build ipfw.ko? Did you build it as a standalone module, o= r as part of a buildkernel? In the latter case, do you have "makeoptions WITH_CTF=3D1" in the kernel configuration? --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Tue May 10 16:37:06 2022 X-Original-To: dtrace@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 814D81AC3CAB for ; Tue, 10 May 2022 16:37:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KyNwy19Bzz4ZPM for ; Tue, 10 May 2022 16:37:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 08CE8BCD for ; Tue, 10 May 2022 16:37:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24AGb5DX085733 for ; Tue, 10 May 2022 16:37:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24AGb5PW085732 for dtrace@FreeBSD.org; Tue, 10 May 2022 16:37:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Tue, 10 May 2022 16:37:06 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652200626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E/Wz/OCmj2q9eC56oeXW4F3WUU8/2ayTKG4JNjafFAo=; b=BydgXGPXJHmK5BKMw//+Iors1NlEKvAIzRieM26rq9vNgOwrX9o+GIxIh6zasf20e6CI09 oDCf9HNCkSx4rH6AJ5tr5Czk/oYsg22shieUhbDNnsmBBop6/70o5n+Av5VSP/UhUBxS6z NuLbScXiHyRceo5jGHYg9JNuZFoq9AE4QcKkbOJiGbMr6P/qaNp2TTFffc3ML7LP3bwMNr 8vvJiEYiH50oZ7MQctEq96WFdvDsNehnNfN1n7MCdkmyJeXPnewBBnpUxyydnSPa62QE9Z 2TNu1ChTj+46V1tG9k6FV/Fzzf/iRW1WBbIRDFKFgfGnK/0CJXFqVnzuUxGMSg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652200626; a=rsa-sha256; cv=none; b=RMRpIZ4NEp9h5jS1LS21FDp4XSzD4+cduZ2V3G9B04zyjG4a0xEdBGSu2V2AN8qaWIN2wO BfPzg6X8d5flhDTeOmx8xxnV1DAOCFd+2skIU7DdiU24jKLafrW7LgHOg0m55Fi1duxyEk DcPjTzeajPO3HiT5UNBeikbcDMRNECozN2EAE/mHUr1DKIo1gD2GjH6J/2H2msx3WR44Li 35M4rbw4YDzgypXkwLp/g8DqO+u8wxWmpLyJE5HNPiKOCDqHdb4TKcONdKqD1JkfGDfxL6 Tk8+URXNnfix2zZp5Qy4o968C7aaILqh4EBtAblv2Obs1D1e3F/TsVwf9D6P2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 --- Comment #9 from Tomoaki AOKI --- Created attachment 233840 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D233840&action= =3Dedit Output from `ctfdump -ht /boot/kernel/ipfw.ko` on stable/13 Output from `ctfdump -ht /boot/kernel/ipfw.ko` on stable/13 at git: 3c01fdcfc161b06732b0762e37d1beca4a1f214d, amd64. dtrace works fine on stable/13. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Tue May 10 16:56:08 2022 X-Original-To: dtrace@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 857611AC804F for ; Tue, 10 May 2022 16:56:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KyPLw0Lwtz4dXn for ; Tue, 10 May 2022 16:56:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DD4411359 for ; Tue, 10 May 2022 16:56:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24AGu7we094255 for ; Tue, 10 May 2022 16:56:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24AGu7nj094254 for dtrace@FreeBSD.org; Tue, 10 May 2022 16:56:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Tue, 10 May 2022 16:56:08 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652201768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X1dZdsWZjaodfWHwnG5S4PGDkX3Pq8QamAZurIi+XsY=; b=FqXquvbKTCYlAoisjm8Y3Z1YBC0c/OO6TVYgjmQnVC8HUAgEDWHVC52MSHB4zDf0nqpbAW 68pSVmoLe7OvONh4JIwmJ9nA+RG4EhthG3rkS/1pp2QRie6Nr2pDXKNkPFpGbSW2pDNFcm 75PUHRmU703JDOMlY8AG9cc2fK6N1DaFstHHpKLOqQaKo+ouYSz2bepHqw78+Odf/DMwxe pA2JoOLiS8fas9Edp+QHbSey7pYZLMCpzU++1NPG2ZYWsGw7BnW1NlZB7UfAHFi1bAM11P MMtQys0c3LN9QJEoHCRnrOid37K9lEqvG7nH2UUNadRsjkaRVGNN4rtxayfsQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652201768; a=rsa-sha256; cv=none; b=fOyz0DUASZBTdx5dQZe+IVzgWV0nWMZGuR5A4bRxckOXdePtB5rtRTEB2uxHmFgmBSun5j 57qGOzRijzYBEZKAb+XsgikNglRtBOUGGlDNs/YJ3oTP1EuDjPbyHXDCj7gyAwO10OL6RH jgIOpFB0YxdbnZbZ4bVTwp2wNGroYXXa0oolagl49BS8V/bihfixi+oaww8ekLox8+Tch+ crEocooRd9PMUHKUkSPXZxcc8xmOvZHZLVQTcoC93zUnqsbC+emZdcGTrxpdDW41113+24 vQ4Z46U8smDOiJrzFA//xBTev+OGbujz/c+A1Y82uPr+JrpV9Ddrsuay3jsrug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 --- Comment #10 from Tomoaki AOKI --- (In reply to Mark Johnston from comment #8) > Oh. How did you build ipfw.ko? Did you build it as a standalone module,= or as > part of a buildkernel? In the latter case, do you have "makeoptio= ns > WITH_CTF=3D1" in the kernel configuration? As part of buildkernel process. I basically don't build modules in base standalone. And my kernel configuration on main is as below, stripping comments. include GENERIC-NODEBUG ident confname options CAM_IOSCHED_DYNAMIC As GENERIC-NODEBUG includes GENERIC, and /usr/src/sys/conf/std.nodebug does= n't seem to overwrite the makeoptions, there should be, theoretically, "makeopt= ions WITH_CTF=3D1". Kerel configuration on stable/13 is different, as stable/13 doesn't have GENERIC-NODEBUG to include. I've copied old-style GENERIC-NODEBUG from main (current, ATM) and applied minimal change (change ident line and add options CAM_IOSCHED_DYNAMIC). include GENERIC ident confname nooptions DDB nooptions GDB nooptions INVARIANTS nooptions INVARIANT_SUPPORT nooptions WITNESS nooptions WITNESS_SKIPSPIN nooptions DEADLKRES options CAM_IOSCHED_DYNAMIC --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Sun May 15 05:59:20 2022 X-Original-To: dtrace@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 7867D1AC8746 for ; Sun, 15 May 2022 05:59:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L1BXm1Vrpz4s0d for ; Sun, 15 May 2022 05:59:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 13EBF26319 for ; Sun, 15 May 2022 05:59:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24F5xJNk002360 for ; Sun, 15 May 2022 05:59:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24F5xJDi002359 for dtrace@FreeBSD.org; Sun, 15 May 2022 05:59:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Sun, 15 May 2022 05:59:20 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652594360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zFPG6BxGJa7OlEIQzjkqrzj1WjXHBRJDJ/u/ppiQSvM=; b=v2pP/QKSuNGLO73fYeKfTD0wSGXUXy+oOjIGEMTmMdMiqkTKkwTOVitpshavgUEz1puZ++ 7UpTIXPmVuDysv4FC5Xxn6+4YbNZVr5RQX1CMmY0okgCfG+lvb+CU8rcqhE1hckhflITwe chT1/BXwPn/sWW8i5Ln70ULGU6Hnzl40nkFwdH7wsQJJpEqYvbDQFYUmY3RWuqkMjlrWA5 IbVC34nJ5+nI5kjOirNkfzfya2poD1McPhANseI9EPXd2mIFfEOzpdyEs4c8ZwCHpGIyVy D4yGIWFJ0RwlW4U8Ciffq7QR4BXMOBQ32SR+LhrRbMlA9a0MShrxUun8K8UVpw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652594360; a=rsa-sha256; cv=none; b=ST8gmBmASA/bQ1XNp8UfSh9HtH8AglH0L5ED2P9/hif2g+fQaFEr/ASYJhNK9GokQn9ROh lBRWEXZVazYIpJXrCoqZPqgHohJEXHoyPdjj9zKS3+qe6kjaW84uLaaE8yosr4jrADnH/D e0r+y3ClTS3Q+H9qavd6U8A62gaqkr+V0R6Zx3VrxSnnIAe+CO40V0J6bMvmgfIG3Tlok5 Q3sh/dZZhhNHbMp7O+AiiCDucapeRf5loa0YAExuvgkBDzsysF2jftnlxvAv09DQ1e7vFS VAvRRkxjjGlJ3r+5GfsupjhaKU3wOAPjpmM6NVkXyU03OLq+d8YT6Eb62pm5UQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 --- Comment #11 from Tomoaki AOKI --- (In reply to Tomoaki AOKI from comment #10) Problem solved. I've missed one setting in /etc/make.conf only on main, which I believed I'= ve commented out several years ago, when sys/amd64/conf/GENERIC-NODEBUG was introduced and switching to use it. .if ${.CURDIR:M/usr/src/*} DEBUG_FLAGS=3D .endif Commentig out this whole part solved the issue. bz@'s script ran OK and java/openjdk11 builds fine. The problematic part was one of the settings to disable debug settings. I thought it also is needed to disable debug on -current ATM. Remaining question is that why I've never bitten by this before, IIRC. Anyway, I'll close this. Sorry for the noise. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Sun May 15 06:01:31 2022 X-Original-To: dtrace@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 CF1561AC8B02 for ; Sun, 15 May 2022 06:01:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L1BbH06QQz4rvK for ; Sun, 15 May 2022 06:01:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D981626332 for ; Sun, 15 May 2022 06:01:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24F61UqP003944 for ; Sun, 15 May 2022 06:01:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24F61UjK003934 for dtrace@FreeBSD.org; Sun, 15 May 2022 06:01:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 263858] dtrace: Fails to compile script on main: operator -> cannot be applied to a forward declaration: no struct ip_fw_args definition is available Date: Sun, 15 May 2022 06:01:31 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13- mfc-stable12- X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652594491; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oD+4hidQ1pEUpQQlPT12AztOsNw7Lv/tvqLFtD4lmNU=; b=N6pZlYe/m4BWoER5SKZlRMbSXciwLtqNFmBxNItO3uxlKoDDPMfQ2DfRQ0+5bylBgrCpFR +NmWWmt/qwY3tbfDHI8EIhk0CjUuT9uYtVW3Fw61zWdPrnbuvwPfT6QsYGxkCY8kcbqqty Z74iyrDosZCc/3z9HUncP0GWOtL+HVNWB3NHNMrf5wwNUlUuUKr3ycBxkralzFMl2zK+lM 8Xls2gfXhgaN5VatvoIXMbIm495nRYDfgiKKs6QhMFN/hvfoiQsEBo/ooy133TEH1rLefS auTrqJ76WCAxKxdFBGuvgsmr5uohLq1Sdan4dacK5zcnbNGcnTmdxqJnUgKPlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652594491; a=rsa-sha256; cv=none; b=R1jtJHr6JoKz35vVv8EpYrKhmAWXG/G/Z+EYyYmUI24C21x1Uk4JH9sA3Qd9Ijro1keVBo iouHMOchwkse+UHf8Yrn47zKdIeMxQDZkgRiR8B5yDbcUE6yKYgqRhGPAO5tq1nJ1zfDWu LMiCxBnD/nQUw1h3RhWzRoUT3FCUfg//unOE7pawP/R8fW5bgSwqpMQlBAf4fOQU2mKqvL GB3Le8yVvS6Uu0AKNH/mEWxByCMW+8ouBZPgQMZqtGgDY36dBvHbLgk0OFw6BlLfYWSYxV tHUFyrtswQsPF9fau2emM4AuNZ+RA3HlyJOpsxbSWO+uqqCw5vSGXe1yzFV20Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263858 Tomoaki AOKI changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |Not A Bug --- Comment #12 from Tomoaki AOKI --- Closing. Not a bug but mis-setting on /etc/make.conf. Sorry for the noise. Hope this helps for someone bitten by the same mis-setting. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From nobody Thu Jun 2 17:08:27 2022 X-Original-To: freebsd-dtrace@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 C31B118DF130 for ; Thu, 2 Jun 2022 17:08:31 +0000 (UTC) (envelope-from pete-fbsd@hiddenrock.com) Received: from menegroth.hiddenrock.com (menegroth.hiddenrock.com [72.14.176.147]) by mx1.freebsd.org (Postfix) with ESMTP id 4LDXXb138Lz3KxQ for ; Thu, 2 Jun 2022 17:08:28 +0000 (UTC) (envelope-from pete-fbsd@hiddenrock.com) Received: from vingilot.hiddenrock.com (localhost [127.0.0.1]) by menegroth.hiddenrock.com (Postfix) with SMTP id 479C720083 for ; Thu, 2 Jun 2022 13:08:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hiddenrock.com; s=default; t=1654189700; bh=1t/Py9E6o4bPoS+qPUpwF4sW235ZPbiK/dWiZu1HMk4=; h=Date:From:To:Subject; b=muAIADjiilZRjTWHheajeYvvyVnQDho51XeKnT5aBR6B/kCOuJ0ofXs0wMqbL9pCj 63PnjFU2K2TrRSOUZ7LPg+MqS9DRd7LdwjcrbbhZfpVOl9ADCSPgJWHGDTyJTkNJn5 b4bc5dJVYpz26/1laVhFadMQYFHwH3EX1TpBEzSc= Date: Thu, 2 Jun 2022 13:08:27 -0400 From: Peter Johnson To: freebsd-dtrace@freebsd.org Subject: vminfo provider for FreeBSD Message-ID: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4LDXXb138Lz3KxQ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hiddenrock.com header.s=default header.b=muAIADji; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete-fbsd@hiddenrock.com designates 72.14.176.147 as permitted sender) smtp.mailfrom=pete-fbsd@hiddenrock.com X-Spamd-Result: default: False [-3.40 / 15.00]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[hiddenrock.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:63949, ipnet:72.14.176.0/20, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[hiddenrock.com:s=default]; 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-dtrace@freebsd.org]; DMARC_NA(0.00)[hiddenrock.com]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-dtrace]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Hi there -- I would find the probes in Illumos' vminfo provider [1] really handy to have in FreeBSD and I'm happy to do the work to make it happen. The only FreeBSD-related mention of the vminfo provider I can find is an old mailing list post [2] that I interpret to mean that the existing fbt probes aren't a meaningful alternative (not to mention that using fbt probes effectively requires more understanding of the source code than is perhaps desirable given DTrace's intended purpose/audience). My first question is: would such an addition be welcome? I can make a more detailed case for its inclusion if that would be helpful/persuasive. If it is welcome, my plan would be to get very well-acquainted with FreeBSD's VM subsystem, identify where each of the vminfo probes described in the Illumos documentation should go, and then develop a patch to add those probes, seeking feedback from both freebsd-dtrace folks and whichever group has dominion over the VM stuff. My second question is: does this sound like a reasonable plan? It is, admittedly, almost uselessly high level, but I expect I will need more than a little familiarity with the codebase before I can get more specific. Given the mailing list post I mentioned above, it seems possible that some of the vminfo probes described in the Illumos documentation don't make sense in the context of FreeBSD (eg, if FreeBSD doesn't have a distinct paging daemon, then the pgrrun, rev, and scan probes aren't suited for transfer). On the other hand, there may be aspects on the FreeBSD side which would be beneficial to monitor, but for which Illumos does not define probes. Therefore, my third question is: how important is it for a vminfo provider implementation in FreeBSD to hew closely to the Illumos implementation? Would it be acceptable to not transfer some probes that don't make sense and add some new probes that do? Documentation is obviously vital for any deviations, and I will make darn sure to make it a central part of the work. Any and all feedback is most appreciated. Thanks. pete [1] https://illumos.org/books/dtrace/chp-vminfo.html [2] https://lists.freebsd.org/pipermail/freebsd-dtrace/2014-April/000209.html From nobody Fri Jun 3 19:47:31 2022 X-Original-To: freebsd-dtrace@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 28FCC1BD5AAD for ; Fri, 3 Jun 2022 19:47:37 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LFD1h0X4mz4q72 for ; Fri, 3 Jun 2022 19:47:35 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-il1-x134.google.com with SMTP id s1so8183139ilj.0 for ; Fri, 03 Jun 2022 12:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fhZ2joLiFaB1lH+QJlPx3GKnBXCVqJPhhZOQ7GXZQtQ=; b=H47yaUx1Glic9q0yCjdVOWVzhycJWVHJbJd+TgPlztqv7XUGLblej76sXMPdQ49kYT 2jmZdennPyq1hbXc5HW+m8h3F1cXXAB5EJqdAyimFQOlxPyfJbg0PfH0Ee4qKS6fFx/t yqn0PME5VoaxY0jLEk9kBkrA+tWwW7FK76nZN+a919E5uqSFN4G1YqfxUa8npTqCzgH1 5TxU219KYKHVjvRIbr0Wn0Qc79TgP13vycSSd1pFwKp8RN3iGSUwkbbGNNEDe+cK5pZP Osb4EM89pRvFQXbHYgLkjq7bUev08AtEZkDZFK1Fge/h0qQPh/l21AcmewVIItoClxp5 vN4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=fhZ2joLiFaB1lH+QJlPx3GKnBXCVqJPhhZOQ7GXZQtQ=; b=gDVhkpAwzVqi8XNCiiRDSuxu8qiUSW0BfT4KWt24dPhfZMiizq+H1Hwtw4s2csOTwI a+b9AV7T9qJ8e2X3jt2jl5rzLvSYvNEb8JMi191zTrcxMCXv9eRctTotdFsrfNEpXVJw 69nbpdSBltXhemCHw1gnVbh9y01uK8i/ihIQMTjDwTMq92YUWRIEAXgd8qDicM3GTwfn 9TuKrJMDjEuxK7m7gv4JMSKojB+qveaLm5vJs4TGZHZZ7Tn9yh0gJ8G+n1S6YD7wyMkb eatFz/MuJxCJSDOQxSngPIC+H3crpo0MDcjA1HTpDU5JQQbtmDCv/Uw3MVCOEiSbqC1I sPpA== X-Gm-Message-State: AOAM532gHOtHIYpr8LNe67rJNZaPtzLMm4UXB1VHQTNgTFXc8DeoN4Nk ZmctQZxZvFldcO/XPoLwbuvLjG01N2I= X-Google-Smtp-Source: ABdhPJw7Ka8Jfd4BmJU9oHe9rb+RYRid/MzZL4A7e5MVnOFWukYgEAGxYvPReE7qZk1HMbsKssiftw== X-Received: by 2002:a05:6e02:1685:b0:2d1:a093:9b55 with SMTP id f5-20020a056e02168500b002d1a0939b55mr6792614ila.85.1654285654827; Fri, 03 Jun 2022 12:47:34 -0700 (PDT) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id b2-20020a056638388200b0032b3a78177csm2930811jav.64.2022.06.03.12.47.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 12:47:34 -0700 (PDT) Date: Fri, 3 Jun 2022 15:47:31 -0400 From: Mark Johnston To: Peter Johnson Cc: freebsd-dtrace@freebsd.org Subject: Re: vminfo provider for FreeBSD Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LFD1h0X4mz4q72 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=H47yaUx1; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::134 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-2.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::134:from]; MLMMJ_DEST(0.00)[freebsd-dtrace]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, Jun 02, 2022 at 01:08:27PM -0400, Peter Johnson wrote: > Hi there -- > > I would find the probes in Illumos' vminfo provider [1] really handy to have > in FreeBSD and I'm happy to do the work to make it happen. The only > FreeBSD-related mention of the vminfo provider I can find is an old mailing > list post [2] that I interpret to mean that the existing fbt probes aren't a > meaningful alternative (not to mention that using fbt probes effectively > requires more understanding of the source code than is perhaps desirable given > DTrace's intended purpose/audience). > > My first question is: would such an addition be welcome? I can make a more > detailed case for its inclusion if that would be helpful/persuasive. I think it'd be welcome. My major reservation is that SDT probes have non-zero overhead even when disabled, especially on FreeBSD as currently implemented. The vminfo provider effectively adds a probe to various VM counter increments, which can occur very very frequently in some workloads, so I think we'd also want to 1) try to measure that overhead, perhaps using some micro-benchmarks, 2) possibly use the results to help motivate some long-overdue improvements to the SDT implementation. I'd be interested in helping with both of these. It'd be helpful to see an example or two demonstrating how the vminfo provider would be useful in diagnosing a particular problem. > If it is welcome, my plan would be to get very well-acquainted with FreeBSD's > VM subsystem, identify where each of the vminfo probes described in the > Illumos documentation should go, and then develop a patch to add those probes, > seeking feedback from both freebsd-dtrace folks and whichever group has > dominion over the VM stuff. > > My second question is: does this sound like a reasonable plan? It is, > admittedly, almost uselessly high level, but I expect I will need more than a > little familiarity with the codebase before I can get more specific. Looking through the provider documentation, I suspect it'll be difficult to implement some of the probes on FreeBSD, as you note below. For instance, I'm not sure that execfree can be implemented at all; FreeBSD doesn't have any (cheap) way to determine whether a given physical page belongs to an executable image. At least, I can't think of one. A second issue is in the description of "arg1" for vminfo probes. In FreeBSD, frequently-updated counters are implemented using counter(9), which provides per-CPU counters. To get the global value of such a counter, one must iterate over all per-CPU elements, summing them up. That's quite expensive and wasteful if you're doing it every time a vminfo probe fires. I'm not sure how best to deal with that problem. Yet another consideration is how one might expose per-NUMA domain counters. We could simply ignore that consideration and just provide global values, but per-domain info can be very useful. FreeBSD's VM system has a number of counters, exposed in various subtrees of the "vm" sysctl node. One might start by looking at the existing counters to see how closely they match vminfo probes, or simply define FreeBSD's vminfo provider in terms of the existing counters, possibly adding new ones. > Given the mailing list post I mentioned above, it seems possible that some of > the vminfo probes described in the Illumos documentation don't make sense in > the context of FreeBSD (eg, if FreeBSD doesn't have a distinct paging daemon, > then the pgrrun, rev, and scan probes aren't suited for transfer). On the > other hand, there may be aspects on the FreeBSD side which would be beneficial > to monitor, but for which Illumos does not define probes. I agree. FreeBSD does have a paging daemon, implemented in vm_pageout.c. > Therefore, my third question is: how important is it for a vminfo provider > implementation in FreeBSD to hew closely to the Illumos implementation? Would > it be acceptable to not transfer some probes that don't make sense and add > some new probes that do? Documentation is obviously vital for any deviations, > and I will make darn sure to make it a central part of the work. Having ported the ip/tcp/udp providers based on illumos documentation, and having gone through some effort to make them compatible, I'm fairly skeptical that it's important to maintain compatibility. Most non-trivial D scripts that I've seen and written which use these providers will also make use of FBT probes here and there, so some porting work is needed regardless. Based on that, and on the observations above, compatibility shouldn't be a priority IMHO. > Any and all feedback is most appreciated. > > Thanks. > > pete > > > [1] https://illumos.org/books/dtrace/chp-vminfo.html > [2] https://lists.freebsd.org/pipermail/freebsd-dtrace/2014-April/000209.html > > From nobody Mon Jun 6 16:21:42 2022 X-Original-To: freebsd-dtrace@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 F1B1F1BED622 for ; Mon, 6 Jun 2022 16:21:51 +0000 (UTC) (envelope-from pete-fbsd@hiddenrock.com) Received: from menegroth.hiddenrock.com (menegroth.hiddenrock.com [72.14.176.147]) by mx1.freebsd.org (Postfix) with ESMTP id 4LGzJt4JtGz4fs9; Mon, 6 Jun 2022 16:21:50 +0000 (UTC) (envelope-from pete-fbsd@hiddenrock.com) Received: from vingilot.hiddenrock.com (localhost [127.0.0.1]) by menegroth.hiddenrock.com (Postfix) with SMTP id 0AEAE20086; Mon, 6 Jun 2022 12:21:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hiddenrock.com; s=default; t=1654532493; bh=iQgT7F5PhiOGNxd1ys8/VOvN9OElG0J9sLwffnmAbmE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=eSCey1yLnQYcFwkfhOivDEcQGbMFBo6c8Ve7OIt8mYKvbhQKEWdqrDBq7gh8b9CYu YOcvgvSAf3PqDiMzL6nFzTNReJJD/P3ZQxUjPFMJn2QoLCgTTX2wMOxVrmDE1G929Z 4dp8WIvC5xBHbkfgkQEnXvI6WT54mATi4ZV2O4Hk= Date: Mon, 6 Jun 2022 12:21:42 -0400 From: Peter Johnson To: Mark Johnston Cc: freebsd-dtrace@freebsd.org Subject: Re: vminfo provider for FreeBSD Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LGzJt4JtGz4fs9 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hiddenrock.com header.s=default header.b=eSCey1yL; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete-fbsd@hiddenrock.com designates 72.14.176.147 as permitted sender) smtp.mailfrom=pete-fbsd@hiddenrock.com X-Spamd-Result: default: False [-2.85 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[hiddenrock.com:s=default]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[hiddenrock.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[hiddenrock.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.45)[-0.448]; MLMMJ_DEST(0.00)[freebsd-dtrace]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:63949, ipnet:72.14.176.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Thanks for the detailed reply. I'm coming at this from a bit of a weird angle: I use FreeBSD as the basis for my operating systems course, part of which asks students to write programs that exercise operating system functionalities like scheduling and virtual memory in specific ways and then use DTrace to confirm that their programs are doing what they're supposed to do vis-a-vis those functionalities (eg, "write a program that induces swapping and a D script that proves it works"). Currently, the best way I've figured out for them to do this in the context of virtual memory is to use vmstat(1), but it would be nice to have those statistics at a process granularity. The Illumos documentation on the vminfo provider itself suggests as a use case getting more fine-grained information than the Illumos implementation of vmstat makes available [1]---"more fine-grained" meaning both "per process statistics" and, eg, "more information about individual faults". Given the reservations you note/confirm (potential onerous overhead of SDT probes in VM code, lack of clear mapping between Illumos probes and FreeBSD codebase, scalability of arg1 especially wrt SMP systems, complexity of per-domain NUMA stats) I propose the following as a first step: Implement probes that fire whenever values in the "page" category of vmstat(1) output change; that is: a page fault occurs (flt), a page is reactivated (re), a page is paged in (pi), a page is paged out (po), a page is freed (fr), a page is scanned by the page daemon (sr). I am unfamiliar with the codebase, but it seems likely to me that all of those use counter(9), and so we would be able to correctly populate arg1. This would be a very modest amount of work (at least relative to transferring the entire vmfino provider as it exists in Illumos) and give a starting point for measuring SDT overhead. Once those proposed probes are in place, we can decide whether to implement other probes from the Illumos set, add new probes that we determine useful, optimize the SDT implementation, address SMP or NUMA considerations, etc. Thoughts? pete [1] https://illumos.org/books/dtrace/chp-vminfo.html#chp-vminfo-3 On Fri, Jun 03, 2022 at 03:47:31PM -0400, Mark Johnston wrote: > On Thu, Jun 02, 2022 at 01:08:27PM -0400, Peter Johnson wrote: > > Hi there -- > > > > I would find the probes in Illumos' vminfo provider [1] really handy to have > > in FreeBSD and I'm happy to do the work to make it happen. The only > > FreeBSD-related mention of the vminfo provider I can find is an old mailing > > list post [2] that I interpret to mean that the existing fbt probes aren't a > > meaningful alternative (not to mention that using fbt probes effectively > > requires more understanding of the source code than is perhaps desirable given > > DTrace's intended purpose/audience). > > > > My first question is: would such an addition be welcome? I can make a more > > detailed case for its inclusion if that would be helpful/persuasive. > > I think it'd be welcome. My major reservation is that SDT probes have > non-zero overhead even when disabled, especially on FreeBSD as currently > implemented. The vminfo provider effectively adds a probe to various VM > counter increments, which can occur very very frequently in some > workloads, so I think we'd also want to > 1) try to measure that overhead, perhaps using some micro-benchmarks, > 2) possibly use the results to help motivate some long-overdue > improvements to the SDT implementation. > I'd be interested in helping with both of these. > > It'd be helpful to see an example or two demonstrating how the vminfo > provider would be useful in diagnosing a particular problem. > > > If it is welcome, my plan would be to get very well-acquainted with FreeBSD's > > VM subsystem, identify where each of the vminfo probes described in the > > Illumos documentation should go, and then develop a patch to add those probes, > > seeking feedback from both freebsd-dtrace folks and whichever group has > > dominion over the VM stuff. > > > > My second question is: does this sound like a reasonable plan? It is, > > admittedly, almost uselessly high level, but I expect I will need more than a > > little familiarity with the codebase before I can get more specific. > > Looking through the provider documentation, I suspect it'll be difficult > to implement some of the probes on FreeBSD, as you note below. For > instance, I'm not sure that execfree can be implemented at all; FreeBSD > doesn't have any (cheap) way to determine whether a given physical page > belongs to an executable image. At least, I can't think of one. > > A second issue is in the description of "arg1" for vminfo probes. In > FreeBSD, frequently-updated counters are implemented using counter(9), > which provides per-CPU counters. To get the global value of such a > counter, one must iterate over all per-CPU elements, summing them up. > That's quite expensive and wasteful if you're doing it every time a > vminfo probe fires. I'm not sure how best to deal with that problem. > > Yet another consideration is how one might expose per-NUMA domain > counters. We could simply ignore that consideration and just provide > global values, but per-domain info can be very useful. > > FreeBSD's VM system has a number of counters, exposed in various > subtrees of the "vm" sysctl node. One might start by looking at the > existing counters to see how closely they match vminfo probes, or simply > define FreeBSD's vminfo provider in terms of the existing counters, > possibly adding new ones. > > > Given the mailing list post I mentioned above, it seems possible that some of > > the vminfo probes described in the Illumos documentation don't make sense in > > the context of FreeBSD (eg, if FreeBSD doesn't have a distinct paging daemon, > > then the pgrrun, rev, and scan probes aren't suited for transfer). On the > > other hand, there may be aspects on the FreeBSD side which would be beneficial > > to monitor, but for which Illumos does not define probes. > > I agree. FreeBSD does have a paging daemon, implemented in vm_pageout.c. > > > Therefore, my third question is: how important is it for a vminfo provider > > implementation in FreeBSD to hew closely to the Illumos implementation? Would > > it be acceptable to not transfer some probes that don't make sense and add > > some new probes that do? Documentation is obviously vital for any deviations, > > and I will make darn sure to make it a central part of the work. > > Having ported the ip/tcp/udp providers based on illumos documentation, > and having gone through some effort to make them compatible, I'm fairly > skeptical that it's important to maintain compatibility. Most > non-trivial D scripts that I've seen and written which use these > providers will also make use of FBT probes here and there, so some > porting work is needed regardless. Based on that, and on the > observations above, compatibility shouldn't be a priority IMHO. > > > Any and all feedback is most appreciated. > > > > Thanks. > > > > pete > > > > > > [1] https://illumos.org/books/dtrace/chp-vminfo.html > > [2] https://lists.freebsd.org/pipermail/freebsd-dtrace/2014-April/000209.html > > > > > From nobody Tue Jun 7 17:17:06 2022 X-Original-To: freebsd-dtrace@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 04D0383B309 for ; Tue, 7 Jun 2022 17:17:11 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LHcVG1pfrz4s9V for ; Tue, 7 Jun 2022 17:17:10 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x735.google.com with SMTP id x75so10298536qkb.12 for ; Tue, 07 Jun 2022 10:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MUxf6xXxKjZNwbwtfQhseDSCR3wUmTalUMwRTH96bm0=; b=HPhY0UJHOaJYaLC/Iiep29l6rTqhx/wZ4mwSNIh13g5h9dkCejc1kK6qs6dYEtuuX+ vmdnxpIsNu3uIS7VGjrSJjfbi5zuyteGTjsewPEsNMJo+/AGWS3UGX78hUL0R/aS/bQn Y3LLtD0YMx+tbxJ/qaJTBptR7IzL2YFv8dprE/wJ7xQA6u5cUdL+xOsUaeSXBiogKFoK cazO2BiF8i0gGMOHLNuEHr34kjgv7YNttnpbxJ0TIrlGZHYPyxp+NR3kH517f/Iyf4LH 6x4cg8io7WJAf7c6ZCjakL5tHTOWZr8I5y+b1LFpNaft5OHFjsaisAfR4PxcgDRJYQxL gvmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=MUxf6xXxKjZNwbwtfQhseDSCR3wUmTalUMwRTH96bm0=; b=03zDUMePbFy3t6at5NtuMuM/VPy6IYrE/KUDRXTPX+9jOh9xdKb4jWKJ//DyXLRpx2 h2/Nr+nWaPRITHlkq8/ebk7d7hXtw/4GnujsyvdBfuk1/M7cJdFL0PS22Iz/IufYXlf7 7ffmjJHK+YqOXu7Sn57lEm8S4kAredlMyZ5MS+vWVHM5qpnRcNYhtpwgY08ToWlEEwyk s/vci98+Kxfyct8ZCqYM1MgifZ4wQRqIHH/N1CG8IfQwfdvWRHQ7KiqqTouTAdiMWBI7 ta8T4niVfskv6E7XSOZ182UTOe1rbeREvATDdL15B3lOKblFwS88YBfy2pJrpIcX/vex KFCg== X-Gm-Message-State: AOAM533BNhy24h/Vao+XYLjR97085RgiN8cOpiOnD0ctiM7/+LTPPGNG hGlrw1Mdt1LgMVF9+mzQ4o/fHGgnp00= X-Google-Smtp-Source: ABdhPJxqtHyOcDHaryz746FZHj2dohzKUr/GCPbFUDFSaMwHeldLf6sYoLFWJPFP/vdAZFhStRWjtw== X-Received: by 2002:a05:620a:40c2:b0:6a6:d274:dd96 with SMTP id g2-20020a05620a40c200b006a6d274dd96mr4798164qko.54.1654622229633; Tue, 07 Jun 2022 10:17:09 -0700 (PDT) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id v1-20020a05620a0f0100b006a6a6f148e6sm10047536qkl.17.2022.06.07.10.17.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 10:17:08 -0700 (PDT) Date: Tue, 7 Jun 2022 13:17:06 -0400 From: Mark Johnston To: Peter Johnson Cc: freebsd-dtrace@freebsd.org Subject: Re: vminfo provider for FreeBSD Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LHcVG1pfrz4s9V X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=HPhY0UJH; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::735 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-2.68 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.98)[-0.976]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::735:from]; MLMMJ_DEST(0.00)[freebsd-dtrace]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Jun 06, 2022 at 12:21:42PM -0400, Peter Johnson wrote: > Thanks for the detailed reply. > > I'm coming at this from a bit of a weird angle: I use FreeBSD as the basis for > my operating systems course, part of which asks students to write programs > that exercise operating system functionalities like scheduling and virtual > memory in specific ways and then use DTrace to confirm that their programs are > doing what they're supposed to do vis-a-vis those functionalities (eg, "write > a program that induces swapping and a D script that proves it works"). Cool! > Currently, the best way I've figured out for them to do this in the context of > virtual memory is to use vmstat(1), but it would be nice to have those > statistics at a process granularity. That makes sense. 30 minutes ago I was wishing I could check whether a given process took the "optimized COW fault" path in vm_fault.c (see the v_cow_optim counter). vmstat -s doesn't give a reliable answer, merely running that command itself causes the counter to increment. > The Illumos documentation on the vminfo provider itself suggests as a use case > getting more fine-grained information than the Illumos implementation of > vmstat makes available [1]---"more fine-grained" meaning both "per process > statistics" and, eg, "more information about individual faults". > > Given the reservations you note/confirm (potential onerous overhead of SDT > probes in VM code, lack of clear mapping between Illumos probes and FreeBSD > codebase, scalability of arg1 especially wrt SMP systems, complexity of > per-domain NUMA stats) I propose the following as a first step: > > Implement probes that fire whenever values in the "page" category of > vmstat(1) output change; that is: a page fault occurs (flt), a page is > reactivated (re), a page is paged in (pi), a page is paged out (po), a > page is freed (fr), a page is scanned by the page daemon (sr). > > I am unfamiliar with the codebase, but it seems likely to me that all of those > use counter(9), and so we would be able to correctly populate arg1. Most of them use counter(9), yes. "sr" is a bit more complicated. Basically, there is a counter in each page queue (PQ_{ACTIVE,INACTIVE,LAUNDRY} times the number of NUMA domains) which is updated once per "batch" of scanned pages. The global "sr" value is computed on demand by summing the per-pagequeue counters. > This would be a very modest amount of work (at least relative to transferring > the entire vmfino provider as it exists in Illumos) and give a starting point > for measuring SDT overhead. Yep, that sounds perfectly reasonable. > Once those proposed probes are in place, we can decide whether to implement > other probes from the Illumos set, add new probes that we determine useful, > optimize the SDT implementation, address SMP or NUMA considerations, etc. > > Thoughts? This makes sense to me. The other thing we might consider is whether it's worth including additional arguments (e.g., the physical vm_page_t) in some cases. That could always be added later though. > pete > > [1] https://illumos.org/books/dtrace/chp-vminfo.html#chp-vminfo-3 > > On Fri, Jun 03, 2022 at 03:47:31PM -0400, Mark Johnston wrote: > > On Thu, Jun 02, 2022 at 01:08:27PM -0400, Peter Johnson wrote: > > > Hi there -- > > > > > > I would find the probes in Illumos' vminfo provider [1] really handy to have > > > in FreeBSD and I'm happy to do the work to make it happen. The only > > > FreeBSD-related mention of the vminfo provider I can find is an old mailing > > > list post [2] that I interpret to mean that the existing fbt probes aren't a > > > meaningful alternative (not to mention that using fbt probes effectively > > > requires more understanding of the source code than is perhaps desirable given > > > DTrace's intended purpose/audience). > > > > > > My first question is: would such an addition be welcome? I can make a more > > > detailed case for its inclusion if that would be helpful/persuasive. > > > > I think it'd be welcome. My major reservation is that SDT probes have > > non-zero overhead even when disabled, especially on FreeBSD as currently > > implemented. The vminfo provider effectively adds a probe to various VM > > counter increments, which can occur very very frequently in some > > workloads, so I think we'd also want to > > 1) try to measure that overhead, perhaps using some micro-benchmarks, > > 2) possibly use the results to help motivate some long-overdue > > improvements to the SDT implementation. > > I'd be interested in helping with both of these. > > > > It'd be helpful to see an example or two demonstrating how the vminfo > > provider would be useful in diagnosing a particular problem. > > > > > If it is welcome, my plan would be to get very well-acquainted with FreeBSD's > > > VM subsystem, identify where each of the vminfo probes described in the > > > Illumos documentation should go, and then develop a patch to add those probes, > > > seeking feedback from both freebsd-dtrace folks and whichever group has > > > dominion over the VM stuff. > > > > > > My second question is: does this sound like a reasonable plan? It is, > > > admittedly, almost uselessly high level, but I expect I will need more than a > > > little familiarity with the codebase before I can get more specific. > > > > Looking through the provider documentation, I suspect it'll be difficult > > to implement some of the probes on FreeBSD, as you note below. For > > instance, I'm not sure that execfree can be implemented at all; FreeBSD > > doesn't have any (cheap) way to determine whether a given physical page > > belongs to an executable image. At least, I can't think of one. > > > > A second issue is in the description of "arg1" for vminfo probes. In > > FreeBSD, frequently-updated counters are implemented using counter(9), > > which provides per-CPU counters. To get the global value of such a > > counter, one must iterate over all per-CPU elements, summing them up. > > That's quite expensive and wasteful if you're doing it every time a > > vminfo probe fires. I'm not sure how best to deal with that problem. > > > > Yet another consideration is how one might expose per-NUMA domain > > counters. We could simply ignore that consideration and just provide > > global values, but per-domain info can be very useful. > > > > FreeBSD's VM system has a number of counters, exposed in various > > subtrees of the "vm" sysctl node. One might start by looking at the > > existing counters to see how closely they match vminfo probes, or simply > > define FreeBSD's vminfo provider in terms of the existing counters, > > possibly adding new ones. > > > > > Given the mailing list post I mentioned above, it seems possible that some of > > > the vminfo probes described in the Illumos documentation don't make sense in > > > the context of FreeBSD (eg, if FreeBSD doesn't have a distinct paging daemon, > > > then the pgrrun, rev, and scan probes aren't suited for transfer). On the > > > other hand, there may be aspects on the FreeBSD side which would be beneficial > > > to monitor, but for which Illumos does not define probes. > > > > I agree. FreeBSD does have a paging daemon, implemented in vm_pageout.c. > > > > > Therefore, my third question is: how important is it for a vminfo provider > > > implementation in FreeBSD to hew closely to the Illumos implementation? Would > > > it be acceptable to not transfer some probes that don't make sense and add > > > some new probes that do? Documentation is obviously vital for any deviations, > > > and I will make darn sure to make it a central part of the work. > > > > Having ported the ip/tcp/udp providers based on illumos documentation, > > and having gone through some effort to make them compatible, I'm fairly > > skeptical that it's important to maintain compatibility. Most > > non-trivial D scripts that I've seen and written which use these > > providers will also make use of FBT probes here and there, so some > > porting work is needed regardless. Based on that, and on the > > observations above, compatibility shouldn't be a priority IMHO. > > > > > Any and all feedback is most appreciated. > > > > > > Thanks. > > > > > > pete > > > > > > > > > [1] https://illumos.org/books/dtrace/chp-vminfo.html > > > [2] https://lists.freebsd.org/pipermail/freebsd-dtrace/2014-April/000209.html > > > > > > > > From nobody Mon Jun 13 20:43:53 2022 X-Original-To: freebsd-dtrace@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 4EF628331FC for ; Mon, 13 Jun 2022 20:44:00 +0000 (UTC) (envelope-from pete-fbsd@hiddenrock.com) Received: from menegroth.hiddenrock.com (menegroth.hiddenrock.com [72.14.176.147]) by mx1.freebsd.org (Postfix) with ESMTP id 4LMNp74Cd1z4ZlK; Mon, 13 Jun 2022 20:43:59 +0000 (UTC) (envelope-from pete-fbsd@hiddenrock.com) Received: from vingilot.hiddenrock.com (localhost [127.0.0.1]) by menegroth.hiddenrock.com (Postfix) with SMTP id 595DF20086; Mon, 13 Jun 2022 16:43:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hiddenrock.com; s=default; t=1655153019; bh=BIrKDHGENSfPqPSz/QeNDbTIboMZyQPc/7Ay4Z0oLJw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=dBTKUaHCtPnHDNmmwewUngMySU+Jp4J4XfpDUWSmNNedAOd7slE/XNPB+RapDHwfV 6nIIaj6mecp7IVu/k0YGLRL/eatJHwEWaUHtFwg5qujRz6qKtZqI8NFqLme57twkBi QKuJtH9BTlXYOXSZKlNnNAGfjPbrmrAbZObxa7Nk= Date: Mon, 13 Jun 2022 16:43:53 -0400 From: Peter Johnson To: Mark Johnston Cc: freebsd-dtrace@freebsd.org Subject: Re: vminfo provider for FreeBSD Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LMNp74Cd1z4ZlK X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hiddenrock.com header.s=default header.b=dBTKUaHC; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete-fbsd@hiddenrock.com designates 72.14.176.147 as permitted sender) smtp.mailfrom=pete-fbsd@hiddenrock.com X-Spamd-Result: default: False [-1.40 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[hiddenrock.com:s=default]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[hiddenrock.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(1.00)[1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[hiddenrock.com:+]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-dtrace]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:63949, ipnet:72.14.176.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Cool. I will take a first stab at it and see how it goes. I presume the preferred artifact is a patch against -CURRENT mailed to this list? Thanks again for your guidance. pete From nobody Tue Jun 14 22:52:16 2022 X-Original-To: freebsd-dtrace@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 6379185CA43 for ; Tue, 14 Jun 2022 22:52:26 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LN3bs1d8hz4vYT for ; Tue, 14 Jun 2022 22:52:25 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x829.google.com with SMTP id k18so7191796qtm.9 for ; Tue, 14 Jun 2022 15:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nHI5eXoWt2Dof0mo1m0bTx71l8l4NqSbtb9ulMaTjPE=; b=RU0S2uFwvtjHz96aHsisePW0uBJ4Q5d8UbThG64dKonyjjqjpgiJdXhadW3T3wt7hz 06cibioly75Am19ScWkCLhOLqAQxn+AlwyiIl7BKfyXjBF1Z2QPpNabQ4Om43er/WI5l 6UqVlZgxF2NNTTEOIpwFqGl11eIXtCwCfRLMDM9i6TYcWCp0yW9Vh83aFeLgVCVePcdO WJB0OFrKgrYnU4y4HfdqbB/w+UnF3jfeo70yIpfIjXqQ4wfFtXkXn79/L2Xul5pc0x5O Y9XIlMQpckHu1yHC5B5DTaOPH+E5vm65fG15aGdL9uDbobCXVavuPd6SIMPYxG7k7fpl OX3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=nHI5eXoWt2Dof0mo1m0bTx71l8l4NqSbtb9ulMaTjPE=; b=B2AWvRmTp1W99dyuGLQh7c4nE3Yfp0P+Isb5CfCwyyyIMYetRESa+B//3kUOqJ3xMx C0Lglt643jwXc1nDMTVFRWi2o+N9qHbYG+3OFkToviTC1G5+kAqrzRQKLX3fTdjRaJaS LVGBeP83V5T/bdeVZJnUj/hYxICApwlor92QVJTmUqG/AhTynjwDjOYvLNnKMgV7mCRH hIm7RoXNGwRkeinEmY59oZNzxN3CtfQiyXuAi3n/lVD2pIjQcZkI+CUYOSgUi9VsD3LN 5WFz9upLdS9jk0UD2d3iowLIrQvcsKAZFlM4oBr9vjwBeosuywvN4YPBYzeYi1X4l1F8 m6OQ== X-Gm-Message-State: AOAM532fXrG/SkMSaqoTmfKeKuRd7R74tZ8vntm7MC+aF/iO2Q5IZhFp SRSjUQJipHSENYjbu8hTnPsd2mSWoqM= X-Google-Smtp-Source: ABdhPJxt9uQLM7KLA9/2LFfDQDJqx+HMYakVTbRoaFfS6n0gHylFZcc+BpEXK6wi1IhOCDRtjR9p7A== X-Received: by 2002:ac8:5a11:0:b0:305:26b4:cbce with SMTP id n17-20020ac85a11000000b0030526b4cbcemr6250550qta.241.1655247139090; Tue, 14 Jun 2022 15:52:19 -0700 (PDT) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id bl19-20020a05620a1a9300b0069fc13ce20asm9762618qkb.59.2022.06.14.15.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 15:52:18 -0700 (PDT) Date: Tue, 14 Jun 2022 18:52:16 -0400 From: Mark Johnston To: Peter Johnson Cc: freebsd-dtrace@freebsd.org Subject: Re: vminfo provider for FreeBSD Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LN3bs1d8hz4vYT X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=RU0S2uFw; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::829 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-2.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::829:from]; MLMMJ_DEST(0.00)[freebsd-dtrace]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Jun 13, 2022 at 04:43:53PM -0400, Peter Johnson wrote: > Cool. I will take a first stab at it and see how it goes. I presume the > preferred artifact is a patch against -CURRENT mailed to this list? That would be fine with me. freebsd-hackers@ would reach a wider audience though, so that'd be a better list IMHO. We do make use of Phabricator for code reviews (see https://wiki.freebsd.org/Phabricator for some details) but there's some setup involved. If you end up submitting more than a couple of patches (or if you end up with large patches) it'd be worth trying to use that instead, but since this is a first stab, posting it to a list is perfectly reasonable. > Thanks again for your guidance. > > pete > From nobody Tue Aug 30 15:49:21 2022 X-Original-To: freebsd-dtrace@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 4MHBZK5xbkz4Zlsn for ; Tue, 30 Aug 2022 15:49:29 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MHBZK11YFz40dW for ; Tue, 30 Aug 2022 15:49:29 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-ed1-f46.google.com with SMTP id t5so14755820edc.11 for ; Tue, 30 Aug 2022 08:49:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date; bh=+sztJGQrxkvoO7fGXSf/fjJpULNNu3UDimmuZECdHFU=; b=Haa8NuFejw9hm0ftVKE3G7vvowFsa8Bqz3HxoLvIJZfFHJlxXDHz+7Nw90XV/V9m5z QqQioCkTzpctMko0mnn7QsmfLc9dfFURCJDL/IT1QdmDcCTVPv/QXTlaYppZDN4TvFAW P0knLYJSZRPqc0Hvg2x6wXQUjhEIuO7tLqJMtBnrU6Ehjp6Dch0AT/TlQC5zpB0jSEFi Qv64j/F3+SqkHVETGTWVyBAKZw2kefW/kbKx9oTH8zeyNJjKf9sBgdDpGVqBNLljmiTF 2CE2ll7OsnSiChuMBGyf/xoh64Pvuk2iSoLIlLvVhW1do72E/Z+h8g+1tm96u/74RCWD B3RA== X-Gm-Message-State: ACgBeo0Pnq4kHkXC3ncZMnetrlA9wKft4eL3zGO0iyXdxw+vh84G7laV E+VSEbWj3S5GQy72MQ4k3YyvgNjoJ8qXg1I9 X-Google-Smtp-Source: AA6agR5b5yr7a7AwAj4kKax5phU5xLo6sQfHRHmGRDHv8KUrmF6N0XA0SDBMfpsGwcozYlDrWK7xQA== X-Received: by 2002:a05:6402:3484:b0:448:cc83:2bff with SMTP id v4-20020a056402348400b00448cc832bffmr2832494edc.65.1661874567772; Tue, 30 Aug 2022 08:49:27 -0700 (PDT) Received: from smtpclient.apple ([2a02:8109:8680:1304:b0ff:f3f4:ad0d:90b9]) by smtp.gmail.com with ESMTPSA id f12-20020a17090660cc00b0073ddb2eff27sm5990272ejk.167.2022.08.30.08.49.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Aug 2022 08:49:27 -0700 (PDT) From: Mateusz Piotrowski <0mp@FreeBSD.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_21A9CCA2-6BC2-43C1-B484-2EE36926FCF8" List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Converting int to a string in DTrace Message-Id: <317C65CC-5BF0-422D-80E9-4340CD241569@FreeBSD.org> Date: Tue, 30 Aug 2022 17:49:21 +0200 To: freebsd-dtrace@freebsd.org X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MHBZK11YFz40dW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mpp302@gmail.com designates 209.85.208.46 as permitted sender) smtp.mailfrom=mpp302@gmail.com X-Spamd-Result: default: False [-2.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[0mp@FreeBSD.org,mpp302@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.46:from]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[0mp@FreeBSD.org,mpp302@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.46:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_21A9CCA2-6BC2-43C1-B484-2EE36926FCF8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello everyone, Is it possible to convert an int to a string in DTrace? E.g., I'd like the following script to work (it's an example from = dtrace_io(4), but with device unit number added): #!/usr/sbin/dtrace -s #pragma D option quiet io:::start { this->unit_number =3D args[1]->unit_number >=3D 0 ? = (string)args[1]->unit_number : ""; @[args[1]->device_name, this->unit_number, execname, pid] =3D = sum(args[0]->bio_bcount); } END { printf("%10s%-3s %20s %10s %15s\n", "DEVICE", "", "APP", "PID", = "BYTES"); printa("%10s%-3s %20s %10d %15@d\n", @); } (Of course, the `(string)` cast does not work here because it's just not = how DTrace works.) Best, Mateusz= --Apple-Mail=_21A9CCA2-6BC2-43C1-B484-2EE36926FCF8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hello= everyone,

Is it = possible to convert an int to a string in DTrace?
E.g., I'd like the following script to = work (it's an example from dtrace_io(4), but with device unit number = added):

#!/usr/sbin/dtrace -s

#pragma D option quiet

io:::start
{
    =     this->unit_number =3D args[1]->unit_number >=3D 0 = ? (string)args[1]->unit_number : "";
        @[args[1]->device_name, = this->unit_number, execname, pid] =3D = sum(args[0]->bio_bcount);
}

END
{
        printf("%10s%-3s %20s %10s = %15s\n", "DEVICE", "", "APP", "PID", "BYTES");
        printa("%10s%-3s = %20s %10d %15@d\n", @);
}

(Of course, the `(string)` cast = does not work here because it's just not how DTrace works.)

Best,
Mateusz
= --Apple-Mail=_21A9CCA2-6BC2-43C1-B484-2EE36926FCF8-- From nobody Tue Aug 30 15:58:26 2022 X-Original-To: freebsd-dtrace@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 4MHBml5YqQz4Zmt3 for ; Tue, 30 Aug 2022 15:58:31 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MHBmk4YDVz41T9 for ; Tue, 30 Aug 2022 15:58:30 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: by mail-wm1-x333.google.com with SMTP id n23-20020a7bc5d7000000b003a62f19b453so10216068wmk.3 for ; Tue, 30 Aug 2022 08:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc; bh=zR0jMZp0Ilj6J3/43RmerluHoNclcWom2fsPhKMz+Xk=; b=FbyDuFBE2rOQteSmfJR1TJI5fMqFmwE2WuM/p6DGwcQLvOyROMyS0Wgycbrem2zEPT +dC1phAYP0FtZFFxQkKm5GsK+VaxsQ5/FyppCQ2fpDVwws/kS7scY5637VDu1Js+jKKA KWlIX2gt1QbTLe/92zf4vpydiJYNesG/gLSY5phfKdOwnQy60DlKG6TVmS5cNklJYwaO szP1Qs21ux48aI/VgbRDP119tsHLOAxl4lJ86lHPsqdBNwEc2O0hHwe4Nf8IwGw6stc9 6RCRU2EHhT3wSprM+CtEJr8FjhxzuPhpdza9nIx1GXK4uAJlZwrey6ZdtVPvowN9exCv ux4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc; bh=zR0jMZp0Ilj6J3/43RmerluHoNclcWom2fsPhKMz+Xk=; b=eyen0RqENIa/ELybfw0wHC7POUu2oYEfrBdAo16pVP/86k0zXMzSzq/a3bAGPLN5Xi q3FHRGAKtzMp2cuFlPaVoRtHXVk+o6E/jrNg50d5W0R5xmr5HaA2OAmKenhxPT7/XaDr wtbg56L7Uup3yb6girqOwTb4K3/feAFGB8KwE1cD6GN8ywC4nvyPqOHEfyGMYipmdepy OuwLhGneTvgyxa4Bv6zu0J38Wpn7c1ksZJCaYUAhF+yWs8m+n+DotYlQHmxizr4+kQ3A KZEunY41ww1bOmz2wcl9ZBjPYpOixbLT48E35yMPB4nygnlJ7yrzPfb3RVlG2mKC31O5 c/BA== X-Gm-Message-State: ACgBeo3iyQ38ajSUaL8W5IEqfkmstBPiGryO47smO0d4HB0nKd1Z/N8P DQzdcVuv2DvbEn17Vakmu1bR948fhwM= X-Google-Smtp-Source: AA6agR5Cpd1Ro0ovYXVyBkXf4ghgIQJpZeVl1MSXfLaSa8XzmdyuwuHEet7l8G/sbVBbRRb8Isu/FA== X-Received: by 2002:a05:600c:2483:b0:3a5:e70c:d5f6 with SMTP id 3-20020a05600c248300b003a5e70cd5f6mr10107543wms.51.1661875108967; Tue, 30 Aug 2022 08:58:28 -0700 (PDT) Received: from [10.16.0.14] ([141.98.252.163]) by smtp.gmail.com with ESMTPSA id e7-20020a5d4e87000000b0022587413219sm10043566wru.16.2022.08.30.08.58.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 08:58:27 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------1viIHluN1HYGP4F0X3I01dDB" Message-ID: Date: Tue, 30 Aug 2022 16:58:26 +0100 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: Converting int to a string in DTrace To: freebsd-dtrace@freebsd.org References: <317C65CC-5BF0-422D-80E9-4340CD241569@FreeBSD.org> From: Domagoj Stolfa In-Reply-To: <317C65CC-5BF0-422D-80E9-4340CD241569@FreeBSD.org> X-Rspamd-Queue-Id: 4MHBmk4YDVz41T9 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=FbyDuFBE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of domagoj.stolfa@gmail.com designates 2a00:1450:4864:20::333 as permitted sender) smtp.mailfrom=domagoj.stolfa@gmail.com X-Spamd-Result: default: False [-3.66 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.996]; NEURAL_HAM_MEDIUM(-0.67)[-0.670]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::333:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------1viIHluN1HYGP4F0X3I01dDB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Mateusz: I believe that lltostr might be what you're looking for?         this->unit_number = args[1]->unit_number >= 0 ? lltostr(args[1]->unit_number) : ""; -- Domagoj On 8/30/2022 4:49 PM, Mateusz Piotrowski wrote: > Hello everyone, > > Is it possible to convert an int to a string in DTrace? > > E.g., I'd like the following script to work (it's an example from > dtrace_io(4), but with device unit number added): > > #!/usr/sbin/dtrace -s > > #pragma D option quiet > > io:::start > { >         this->unit_number = args[1]->unit_number >= 0 ? > (string)args[1]->unit_number : ""; >         @[args[1]->device_name, this->unit_number, execname, pid] > = sum(args[0]->bio_bcount); > } > > END > { >         printf("%10s%-3s %20s %10s %15s\n", "DEVICE", "", "APP", > "PID", "BYTES"); >         printa("%10s%-3s %20s %10d %15@d\n", @); > } > > > (Of course, the `(string)` cast does not work here because it's just > not how DTrace works.) > > Best, > Mateusz --------------1viIHluN1HYGP4F0X3I01dDB Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi Mateusz:


I believe that lltostr might be what you're looking for?


        this->unit_number = args[1]->unit_number >= 0 ? lltostr(args[1]->unit_number) : "";


--
Domagoj

On 8/30/2022 4:49 PM, Mateusz Piotrowski wrote:
Hello everyone,

Is it possible to convert an int to a string in DTrace?

E.g., I'd like the following script to work (it's an example from dtrace_io(4), but with device unit number added):

#!/usr/sbin/dtrace -s

#pragma D option quiet

io:::start
{
        this->unit_number = args[1]->unit_number >= 0 ? (string)args[1]->unit_number : "";
        @[args[1]->device_name, this->unit_number, execname, pid] = sum(args[0]->bio_bcount);
}

END
{
        printf("%10s%-3s %20s %10s %15s\n", "DEVICE", "", "APP", "PID", "BYTES");
        printa("%10s%-3s %20s %10d %15@d\n", @);
}

(Of course, the `(string)` cast does not work here because it's just not how DTrace works.)

Best,
Mateusz
--------------1viIHluN1HYGP4F0X3I01dDB-- From nobody Tue Aug 30 16:01:07 2022 X-Original-To: freebsd-dtrace@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 4MHBqq6GCqz4ZnFT for ; Tue, 30 Aug 2022 16:01:11 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MHBqp4Xkdz41mc for ; Tue, 30 Aug 2022 16:01:10 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-ej1-f42.google.com with SMTP id lx1so23058710ejb.12 for ; Tue, 30 Aug 2022 09:01:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date; bh=HVwhR8m82mAhEz9M3ThyZSnZBrLwrloPx7C6QmTHci8=; b=iWwBhbHundSh7lBrHz6P53es/tsY9qujNGs2px7ZYCYDOe4wlWKOh0L8w8jQAD88Sm VzNoMyjYihyO+6Rt4m3pu3WQGT8P2MSRVJG0LHkYhMb5/mYZnzajiG9CQHkBfhqt9bPF xQouoe4Gu2cE/p/a+fZwx8o1xu3P2YzCfq5vgUaG3JohWX08Q/a1KsKyW4z4pon6vb4q aPf17TN0F2rdLnGJLPYLxCxGdzWMUyHlS6d39xLcMBratZ6z9mc4wfF6jSp0hZ9TytJV QR7xW/osvWNZDsxfQn31UYAWSwfi8cFVQYLXAAj2CJV5bBXJk+j0A/D88D5TyIE3uGtH Z3gQ== X-Gm-Message-State: ACgBeo2B0rGMNNorZxq7O8slA9CTgGCALLY9ITrMHWxgshOlZnk2fr2M BMRk0KuaaiDt2RlpTOKsKhgwTZBv0qVa1pPI X-Google-Smtp-Source: AA6agR4F/DFRIGk4fnEKdvqEOlKfZawjFmHju+ObxX1w1c4W6XoqXQC5dD3qZY1EsdsKuBuZKohDYw== X-Received: by 2002:a17:906:ee86:b0:741:89bc:27a1 with SMTP id wt6-20020a170906ee8600b0074189bc27a1mr7686267ejb.725.1661875268924; Tue, 30 Aug 2022 09:01:08 -0700 (PDT) Received: from smtpclient.apple ([2a02:8109:8680:1304:b0ff:f3f4:ad0d:90b9]) by smtp.gmail.com with ESMTPSA id ku13-20020a170907788d00b00728f6d4d0d7sm5955543ejc.67.2022.08.30.09.01.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Aug 2022 09:01:08 -0700 (PDT) From: Mateusz Piotrowski <0mp@FreeBSD.org> Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_F03FF6C7-9C86-493A-A802-87D06D353227" List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Converting int to a string in DTrace Date: Tue, 30 Aug 2022 18:01:07 +0200 In-Reply-To: Cc: freebsd-dtrace@freebsd.org To: Domagoj Stolfa References: <317C65CC-5BF0-422D-80E9-4340CD241569@FreeBSD.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MHBqp4Xkdz41mc X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mpp302@gmail.com designates 209.85.218.42 as permitted sender) smtp.mailfrom=mpp302@gmail.com X-Spamd-Result: default: False [-2.60 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[0mp@FreeBSD.org,mpp302@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[209.85.218.42:from]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; DMARC_NA(0.00)[freebsd.org]; R_DKIM_NA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[209.85.218.42:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[0mp@FreeBSD.org,mpp302@gmail.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_F03FF6C7-9C86-493A-A802-87D06D353227 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hey Domagoj! > On 30. Aug 2022, at 17:58, Domagoj Stolfa = wrote: >=20 >=20 > this->unit_number =3D args[1]->unit_number >=3D 0 ? = lltostr(args[1]->unit_number) : ""; This is exactly what I was looking for, thanks! Is it documented somewhere on FreeBSD? Best, Mateusz= --Apple-Mail=_F03FF6C7-9C86-493A-A802-87D06D353227 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Hey Domagoj!

On 30. Aug 2022, at 17:58, Domagoj Stolfa <domagoj.stolfa@gmail.com> wrote:


        this->unit_number = args[1]->unit_number >= 0 ? lltostr(args[1]->unit_number) : "";

This is exactly what  I was looking for, thanks!

Is it documented somewhere on FreeBSD?

Best,
Mateusz
--Apple-Mail=_F03FF6C7-9C86-493A-A802-87D06D353227-- From nobody Tue Aug 30 16:11:04 2022 X-Original-To: freebsd-dtrace@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 4MHC3J3yphz4Zp6d for ; Tue, 30 Aug 2022 16:11:08 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MHC3H4lHrz4394; Tue, 30 Aug 2022 16:11:07 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: by mail-wm1-x32c.google.com with SMTP id v7-20020a1cac07000000b003a6062a4f81so10234144wme.1; Tue, 30 Aug 2022 09:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc; bh=m1LMqtzPYJ5KkSvuRO5Sy4KjtBhdoJc4bhqz80dyWiU=; b=hVQF/63nfG74CrBeUsuUhRsWaliSzVeQkFZ7+WZVpQVb5cI7xL3Q1RqHcF2i3i+EHF LuNt24S+AczwyUF2kZBCzU6UKC68N19U0uc2vg+a9LQT0XttCC2N4q8B46n8cFRK1m0p riWVVIpoCi6D7QOOeMXT8Uwq/X7M3XWoPS+LXR4pfTwZOoMk2aiIX9CcaJiYBu08iLWP /htEJHj+O3tgB2tYa3NWD2W/dg9YJxEIUV4Jcc0DpXr/WDJ4fA6NeK0ZslQrV+wKKi6A fOUXiWVYKXdzuOOVFxR7QrV/v34jTmHaKKsS8SmjF9uNcfbe8f2PmilbwSq0UEwLyCCR oPVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc; bh=m1LMqtzPYJ5KkSvuRO5Sy4KjtBhdoJc4bhqz80dyWiU=; b=CJqCT/zfHNDvMTB/BXYWOHH/R3t/jCVaJP00p2rjvRI4F4JjmiDnD+ApVDM+XcFRea ctOjCJRkRMpVcxUBZCFNKmgJ5nnuAk3qXEivmppC7aaJNf5ZCVUWPfK3Mxh+BbETnWSo VANIcqivEC0aZjHegE5XIX5/M8QUE+28TjHJZOUG1/ojlLLYWeR+loMnezpn7MWhESqa ZGISrlMkIsMpvywp8nX4v43QFZFISkVYOJT+UDRBobTAkCacIvGWziGO8A27P6gkUztT NQORPNikdsLUIypQwqLX5/kWDp31IhbBD4d3jKpiCReGVJ53lOC8ZyKRmNvXtZORP+ic ea6g== X-Gm-Message-State: ACgBeo1R1Im/cWkPk0A3YnaP0Cz0hSs4KM8zwmRz38r51KzRJtW+mcL8 7HpcMi9TAIIv8VvyiGlCx93qZcHtzGA= X-Google-Smtp-Source: AA6agR7cB1DCZgtUwGFCBEmHxFT1rIPKWoO6S8medjxlfQOo8Kje5mSacZagcIHP0mrcCJqnnwU20Q== X-Received: by 2002:a1c:241:0:b0:3a6:655c:391b with SMTP id 62-20020a1c0241000000b003a6655c391bmr10055549wmc.67.1661875866413; Tue, 30 Aug 2022 09:11:06 -0700 (PDT) Received: from [10.16.0.14] ([141.98.252.163]) by smtp.gmail.com with ESMTPSA id z7-20020a05600c0a0700b003a5c1e916c8sm4500103wmp.1.2022.08.30.09.11.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 09:11:05 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------kRyG1WwOLVXjXWkrc6dvtaNi" Message-ID: <12978a6c-3d61-7684-c234-26e03131dcd8@gmail.com> Date: Tue, 30 Aug 2022 17:11:04 +0100 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: Converting int to a string in DTrace To: Mateusz Piotrowski <0mp@FreeBSD.org> Cc: freebsd-dtrace@freebsd.org References: <317C65CC-5BF0-422D-80E9-4340CD241569@FreeBSD.org> From: Domagoj Stolfa In-Reply-To: X-Rspamd-Queue-Id: 4MHC3H4lHrz4394 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="hVQF/63n"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of domagoj.stolfa@gmail.com designates 2a00:1450:4864:20::32c as permitted sender) smtp.mailfrom=domagoj.stolfa@gmail.com X-Spamd-Result: default: False [-3.01 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.984]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_MEDIUM(-0.03)[-0.031]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32c:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------kRyG1WwOLVXjXWkrc6dvtaNi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I'm not sure if it's documented anywhere in FreeBSD itself, but it is documented here: https://illumos.org/books/dtrace/chp-actsub.html. -- Domagoj On 8/30/2022 5:01 PM, Mateusz Piotrowski wrote: > Hey Domagoj! > >> On 30. Aug 2022, at 17:58, Domagoj Stolfa >> wrote: >> >> >>         this->unit_number = args[1]->unit_number >= 0 ? >> lltostr(args[1]->unit_number) : ""; > > This is exactly what  I was looking for, thanks! > > Is it documented somewhere on FreeBSD? > > Best, > Mateusz --------------kRyG1WwOLVXjXWkrc6dvtaNi Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

I'm not sure if it's documented anywhere in FreeBSD itself, but it is

documented here: https://illumos.org/books/dtrace/chp-actsub.html.


--

Domagoj


On 8/30/2022 5:01 PM, Mateusz Piotrowski wrote:
Hey Domagoj!

On 30. Aug 2022, at 17:58, Domagoj Stolfa <domagoj.stolfa@gmail.com> wrote:


        this->unit_number = args[1]->unit_number >= 0 ? lltostr(args[1]->unit_number) : "";

This is exactly what  I was looking for, thanks!

Is it documented somewhere on FreeBSD?

Best,
Mateusz
--------------kRyG1WwOLVXjXWkrc6dvtaNi-- From nobody Mon Sep 5 08:59:21 2022 X-Original-To: freebsd-dtrace@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 4MLjBS4wB1z4bkGx for ; Mon, 5 Sep 2022 08:59:28 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MLjBR4SPrz3Nt3 for ; Mon, 5 Sep 2022 08:59:27 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-ed1-f42.google.com with SMTP id z8so10442109edb.6 for ; Mon, 05 Sep 2022 01:59:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date; bh=eF6YLvDQ+esgsfgkUbnkrHds17vIZnZQBtMT2o+sX+M=; b=TCBNEmNX9BHQpFPYMlzbcKQ9pYMI7Rri5Qe4sqngjndQZsarFTVap/8L3TyGvROYEb rf9RnHVpSJ9IGzKP0ovLDQYqN1RIteqyOp+XbCv2Oc7MUtz7arbDkd3NYli1u9gOSvSP h3CaFSv1i/tcXwZXbqo0K95gw+mEEqbph9+s42HvIr6UBYioYyfIUJ3ZzW7HTZrDoLEs 4l6CIIYUSrIRl0yQW1etovtvTGk4WxQ9ZzAVBclebDeMthAKQ0zZXLQx3P8G7pkLT1yP chM71nNBsNqMAVXeN0jEes6O8PlV5hz46zB6b+7qip7ZGhFl8p4eeK2netufYIvv+wl5 OL3w== X-Gm-Message-State: ACgBeo0xFprEYrCDqYfZiPvYQOrfjf64Te8js/9TH7bzvTuLiepwcbX4 EjlJcKHuO8GLnGL3ynEGjzDj/szV7EbXr5xo X-Google-Smtp-Source: AA6agR6nUi1OJCikXV+wtuFQK0onm1UcLdai4Ms6o3SmWVpBhYTbEMsy+w4fNHXuiKBL62AgAIFviQ== X-Received: by 2002:a05:6402:501d:b0:443:1c7:ccb9 with SMTP id p29-20020a056402501d00b0044301c7ccb9mr42942953eda.101.1662368365888; Mon, 05 Sep 2022 01:59:25 -0700 (PDT) Received: from smtpclient.apple ([2a02:8109:8680:1304:e137:9d5f:917b:cc56]) by smtp.gmail.com with ESMTPSA id p16-20020a17090653d000b0073c10031dc9sm4681813ejo.80.2022.09.05.01.59.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Sep 2022 01:59:25 -0700 (PDT) From: Mateusz Piotrowski <0mp@FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: How to join ustack() and stack()? Message-Id: <14DCF8FF-DCA7-4D0E-8D55-67FA8B286D54@FreeBSD.org> Date: Mon, 5 Sep 2022 10:59:21 +0200 To: freebsd-dtrace@freebsd.org X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MLjBR4SPrz3Nt3 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mpp302@gmail.com designates 209.85.208.42 as permitted sender) smtp.mailfrom=mpp302@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[0mp@FreeBSD.org,mpp302@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.42:from]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TO_DOM_EQ_FROM_DOM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[0mp@FreeBSD.org,mpp302@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.42:from] X-ThisMailContainsUnwantedMimeParts: N Hi dtrace@, I'd like to produce a flame graph that shows both stack() and ustack() = at the same time. Is there an easy way to do it in DTrace?=20 strjoin(ustack(), stack()) does not work, because those functions output = is typed as "stack" instead of "string". There also seem to be no = function called stacktostr() that could be handy here. Best, Mateusz= From nobody Mon Nov 7 22:39:43 2022 X-Original-To: dtrace@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 4N5mPq69qqz4gbBQ for ; Mon, 7 Nov 2022 22:39:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N5mPq4H9Lz5C5d for ; Mon, 7 Nov 2022 22:39:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N5mPq3FzWzHjy for ; Mon, 7 Nov 2022 22:39:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2A7MdhcI078690 for ; Mon, 7 Nov 2022 22:39:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2A7MdhLe078689 for dtrace@FreeBSD.org; Mon, 7 Nov 2022 22:39:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 267619] dtrace: Compiler produces bogus error message: internal error -- token type 316 is not a valid D compilation token Date: Mon, 07 Nov 2022 22:39:43 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: assigned_to bug_severity short_desc cc bug_status keywords flagtypes.name Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667860783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C08cxf0MPTbLmQvcachusr7EMbKpY3HbmMNHAzDB2MI=; b=FRb7EbmRU38hUHj91TZJqK12+4+ZXJvx6nJorldsW2pu/lfQgoanmxcjc5EiAwEDMIup7h oJuupvWRkBScJmKikRUzUGNAT1Y0VrIfvFwn8PcGtSXxEHma+2EjbQbekqUNlevfm84ay3 j6hBO363ElUWpYi5pAYS8ysgrP1aAdG7MH4uMl4nmgTnt2K7D5fg6Vp30cOO96JtV3vhY9 NjB72QXoa/jEQkVcRJpAn3O79hw1v0RJYNgyYnJFfwcnXRFcnt7DBHPaPhMvU7TfRX+RA3 rjdDddRsoGBJ1HpzdO4dWauIW77IxS7v1c1rnbaY0PlgLrjumrc+HAQLU2eG6w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667860783; a=rsa-sha256; cv=none; b=oA9eO1JjizKgRQsrEQDoxNoyr0Ox54zVaDhd4KsYWCSeP4W71CJy52wYYTkXlGfiVp/Ka7 /XEFr3KylneVv5Ot04BbRatKInuGz/z7wBlpoL3rrIZdy8Mbe3XlwEaMtg5dc6ALm/7ynW 11zFAgs+fOhcZ8IjUJHFOnKaaCzDs3s3hlfrGCU1v/rgINxrA/oamcZs4HsYmQtA7AtdUT oMG+Kh+NDk9FdIreiA2QRU3DwGT6PcgtRqRuV3wiFkWklxZ1q652cTTmD7BvGFWpofDb6c UtjmHiwZ4rm6iv38PafAC+NIeHiiAkolOJOIHfMEgiJRGus6LlEF8P9m4ApTMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267619 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |dtrace@FreeBSD.org Severity|Affects Only Me |Affects Some People Summary|dtrace compiler produces a |dtrace: Compiler produces |bogus error message |bogus error message: | |internal error -- token | |type 316 is not a valid D | |compilation token CC| |dtrace@FreeBSD.org Status|New |Open Keywords| |needs-qa Flags| |mfc-stable13?, | |mfc-stable12? --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From nobody Thu Nov 17 15:16:33 2022 X-Original-To: freebsd-dtrace@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 4NCk5w21Mgz4hWfV for ; Thu, 17 Nov 2022 15:16:36 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NCk5v5DgXz3hVX for ; Thu, 17 Nov 2022 15:16:35 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=er1Micwd; spf=pass (mx1.freebsd.org: domain of domagoj.stolfa@gmail.com designates 2a00:1450:4864:20::335 as permitted sender) smtp.mailfrom=domagoj.stolfa@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wm1-x335.google.com with SMTP id t4so1593091wmj.5 for ; Thu, 17 Nov 2022 07:16:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:subject:from:to:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=Gy/BKWNJWSUyKNvBgmSuXsnyXVWHNPecVEZ/wtDQjhQ=; b=er1MicwdgJM2FJGLbPv8utne74nueNSHmU9EiFFqqIjXJgzof8gRbuV6l+GKk1b3cL 9e6JRU7ioMSiplhjIeymr4sy8n+m66WkPLhl+wfRrArLnFUukzqAwThFnr0+2b5Ls6bp r7YbOJ2iDEY8/hgR9MYEvemhZ0Uw2yGePjcEYj1wK7kGfh0wCihUEEeCRQaaHytNJaG/ Sxs9nfGsbiis5pZqnRPm9u7V02SFoRnB7paUYN9HwrvoHWJcm7w2mOBr5AnA+sxhv4PF kYttmrojz7Nc15UEsXQeniHvSIQAy4JXmMyY8MXa1c1NOxoYg7TLIdzLEttQLdSnJUZy Xd7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:to:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Gy/BKWNJWSUyKNvBgmSuXsnyXVWHNPecVEZ/wtDQjhQ=; b=m8jKwV3tvwFpSeHqpZALqD1cban36EcYKuSVu6dtQk/bLkuMagaD3PQNMSCfSYLiLN E1MXzT0DccjQR3cTYDFJYEIjpSwtrtvDyP+tVPHiPkdEgdIDS8V6FpSyD8D9LPESGb9w AOpW0ok7ssJN18bwldnmbG7hAYYYbdvrmviPWypet5IMqOOqmKyyuXb74/pUBb6gVNjo 5wbWvIdo/aLvSqs3CZhX+7nsYpAS3FcahBDH/XKCbterx9C3cWly4voArGJvGF092Uzd j4o7GibPVPcy6TRBB77XS1ivQgm34auQxWWOwvAhLpsn7RoSF86TWFloyOaVYlW7SBmk 2keA== X-Gm-Message-State: ANoB5pmftsaE4QxQb2YralrhL/UzUiVtgNLK2PDAeBNT0UpJ5RYJQmQX 04e1FDgbzdGciqw1Q4Rjl1p/M+BkEjc= X-Google-Smtp-Source: AA0mqf7N9pOatg+CSK8hZlWLgfMY04qD0/jNh6fgMFbAgAFPHZfaoshUJR35RwXUbM+W5NYvUETT8A== X-Received: by 2002:a05:600c:4f82:b0:3cf:aa11:9394 with SMTP id n2-20020a05600c4f8200b003cfaa119394mr1987865wmq.183.1668698194474; Thu, 17 Nov 2022 07:16:34 -0800 (PST) Received: from ?IPV6:2a00:23c7:8590:6d01:799a:3277:6f0b:fd04? ([2a00:23c7:8590:6d01:799a:3277:6f0b:fd04]) by smtp.gmail.com with ESMTPSA id t13-20020a05600c198d00b003cf75f56105sm2003568wmq.41.2022.11.17.07.16.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Nov 2022 07:16:34 -0800 (PST) Message-ID: <51260b38-130f-f350-aab4-0f3518198047@gmail.com> Date: Thu, 17 Nov 2022 15:16:33 +0000 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 To: freebsd-dtrace@freebsd.org From: Domagoj Stolfa Subject: Query about work with/on DTrace Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.89 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.89)[-0.890]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::335:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org] X-Rspamd-Queue-Id: 4NCk5v5DgXz3hVX X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hi: I'm in the process of writing an article for the FreeBSD Journal regarding DTrace and was hoping to get some submissions of what people are working on in what would be called the "exciting new work" part of the article. If you'd like to share your work with a quick summary and link to it for it to be included, feel free to email me! -- Domagoj From nobody Mon Nov 21 14:12:24 2022 X-Original-To: freebsd-dtrace@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 4NG8V554bRz4j7gm for ; Mon, 21 Nov 2022 14:12:29 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NG8V45VgXz4D40 for ; Mon, 21 Nov 2022 14:12:28 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=ooEhrlSv; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=markjdb@gmail.com; dmarc=none Received: by mail-qt1-x835.google.com with SMTP id s4so7278769qtx.6 for ; Mon, 21 Nov 2022 06:12:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=VakwgQqcDmC1WozDBPc+/4itFvrCyxV0Ku0rcpQFVzY=; b=ooEhrlSvV1bnVocJXdG+9+inIgWnK9me4awHgVL/NRLNpNt6qWt+MuuR7wusyjXuIa Q6CB0kyrkWiPkVIrM8XyQngWtwB9m6WHNWhLlTZdBPpP9UVhqDYgAcEIFKJ7lYNlIaau c7BE//KTL+jWl5/ee+rPd49pqhSPhJvFfGSzsdSeEGI4VkDK0lFLXwgeKRpmvfUKYRlI Vqe0JQmJ1MuuXEkvF9HTP3GUN0B0dyM/UVPGmmv9b21ox0vy22eBWy82qoJ1pp6weYKb xg+VJauDV694DKLlYogSGwQRB4KUwocopdg292m+R8HQ0LTmyZjxTdRZ/52L9eT3N0+T NU/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VakwgQqcDmC1WozDBPc+/4itFvrCyxV0Ku0rcpQFVzY=; b=xWjznSgKrqWAkXcqd8i3WItLp/Q4Z0oxyw73ejNVh5owBIxg1t9czJhbq8i8Zu7Tfl LQ6lkbKw9WKoiCK5T7SdsL/6QuvBZ9K6iA/lSU7yXdw0yxmrWdtYKCyLNFdKCaEUpE/y 8Kncgr3ixycO194E3P7QHv8WWR+RZrSrbTNho6DTGAbddjacKqe0ZpWIDLEfS3lFVsoI SL/G4cU9bw4hz9Qb95RXhUe4XyvJpRQAV+u6bUBhqxYEMQmAsPA/RKf+tBlIup7mEWa0 UajSyj3aL5cjTBkF2HgA/D5vWwhUXbMilBDdmKVOISUEKtV1Jz5adA3yCt+q+It8zK1y JyGA== X-Gm-Message-State: ANoB5pmF3LksRnudMKhSQUpokUj88o26QyKPLoBlWM+1y1VRoxgtT8Rd armOyDxAyQwY96GJDjy1OAc5bDgpplA= X-Google-Smtp-Source: AA0mqf7VOStK1HIIPax4q6uS6TBZTtb3yJFjlXtJFxeNPHf8BW1bJaZFOVB+nKkaVRTOBFCDEpaDng== X-Received: by 2002:ac8:100c:0:b0:3a5:17fe:aa58 with SMTP id z12-20020ac8100c000000b003a517feaa58mr1295991qti.355.1669039947977; Mon, 21 Nov 2022 06:12:27 -0800 (PST) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id dt18-20020a05620a479200b006ea7f9d8644sm8226197qkb.96.2022.11.21.06.12.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 06:12:26 -0800 (PST) Date: Mon, 21 Nov 2022 09:12:24 -0500 From: Mark Johnston To: Domagoj Stolfa Cc: freebsd-dtrace@freebsd.org Subject: Re: Query about work with/on DTrace Message-ID: References: <51260b38-130f-f350-aab4-0f3518198047@gmail.com> List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51260b38-130f-f350-aab4-0f3518198047@gmail.com> X-Spamd-Result: default: False [-2.62 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.92)[-0.922]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::835:from]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_TO(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4NG8V45VgXz4D40 X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N On Thu, Nov 17, 2022 at 03:16:33PM +0000, Domagoj Stolfa wrote: > Hi: > > > I'm in the process of writing an article for the FreeBSD Journal > regarding DTrace and was hoping to get some submissions of what people > are working on in what would be called the "exciting new work" part of > the article. If you'd like to share your work with a quick summary and > link to it for it to be included, feel free to email me! Hi Domagoj, A couple of recent projects which may be of interest are kinst, a new kernel provider which enables tracing of arbitrary kernel instructions on amd64, and CTFv3, which removes a number of limits in the previous version which were biting people. A description of the former, along with some future project ideas, is here: https://www.freebsd.org/status/report-2022-07-2022-09/#_dtrace_instruction_level_dynamic_tracing From nobody Mon Nov 21 17:19:16 2022 X-Original-To: freebsd-dtrace@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 4NGDdl0PcXz4jVxs for ; Mon, 21 Nov 2022 17:19:23 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NGDdk0YyRz3K94 for ; Mon, 21 Nov 2022 17:19:22 +0000 (UTC) (envelope-from mpp302@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of mpp302@gmail.com designates 209.85.222.180 as permitted sender) smtp.mailfrom=mpp302@gmail.com; dmarc=none Received: by mail-qk1-f180.google.com with SMTP id x21so8500347qkj.0 for ; Mon, 21 Nov 2022 09:19:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DCsvt5tCRGkyY91QHBxE6IuRRmAGOwg/slKyvcyv03w=; b=JKA54pHVpByRu7h2/rIwG0Qk64bmmZY1wjDqQaI3JwRpvE1J6n90Ucqif6V8wHpxsN giwXHQPzWseWb7EywRO78rhwCXdFHBMtbMnRfocqFyJWq/bGtURU7ODBbYtY7WHy3HFR VtCTr7EM+TXPGFAlSBdNqpMp0WPVm1Rsz1ekXIcaPe0Lm8gH21R3XbF8vk1rAJRv2hA+ ilpxkVftvdzqOclnCU9qHNeCBpoqOBrcIpfXrFPHKFcSJwiOZ6S9a92Z0nzmZR29VKfu TSp5ujdaSy7pAJJh07/QlrIkG4I0mFpz9smi1UqnLu8pu3HIGZiZ1MKNZYVwSdx6AmjK +9hg== X-Gm-Message-State: ANoB5pn7o5/LTB5DRZfR0FhD6a9H8f1keO08Fhmy/Pebcte6czcPcbuG RJQe+FogMNS7kmiz+GZqi5KK+p+GqX0= X-Google-Smtp-Source: AA0mqf6R1hr9vculBaJ6XePW0JE8aXEeeRp2VtMOnhjheJRz8yCF42vARp0h9kEd/2DpHR1HhNbPrA== X-Received: by 2002:a05:620a:108c:b0:6cd:fd44:d83e with SMTP id g12-20020a05620a108c00b006cdfd44d83emr3558433qkk.594.1669051160853; Mon, 21 Nov 2022 09:19:20 -0800 (PST) Received: from smtpclient.apple (ip5f5af5a7.dynamic.kabel-deutschland.de. [95.90.245.167]) by smtp.gmail.com with ESMTPSA id z11-20020ac8100b000000b003a50ef44a77sm6832490qti.28.2022.11.21.09.19.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Nov 2022 09:19:20 -0800 (PST) From: Mateusz Piotrowski <0mp@FreeBSD.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_9AFBAE28-2D18-4A94-8979-B2FE01D2F5D1" List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: In DTrace, why does timestamp increase after a call to chill() but vtimestamp and walltimestamp do not? Message-Id: Date: Mon, 21 Nov 2022 18:19:16 +0100 To: freebsd-dtrace@freebsd.org X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spamd-Result: default: False [-1.47 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.97)[-0.970]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[0mp@FreeBSD.org,mpp302@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DMARC_NA(0.00)[freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.222.180:from]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[0mp@FreeBSD.org,mpp302@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.222.180:from] X-Rspamd-Queue-Id: 4NGDdk0YyRz3K94 X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_9AFBAE28-2D18-4A94-8979-B2FE01D2F5D1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello all, I'd like to understand why calling chill() in a DTrace action block = increases the timestampvariable, but not vtimestamp and walltimestamp. Here's an example showing timestamp increasing after a call to chill(): # dtrace -w -c true -n 'pid$target:::entry {self->t =3D $1; = chill(1); printf("%d\n", $1 - self->t);}' timestamp dtrace: description 'pid$target:::entry ' matched 3082 probes dtrace: allowing destructive actions dtrace: pid 6734 has exited CPU ID FUNCTION:NAME 5 83475 _r_debug_postinit:entry 11258 =20 5 85771 atexit:entry 2218 =20 5 86468 __libc_atexit:entry 491 =20 5 86428 exit:entry 441 =20 5 85397 __cxa_thread_call_dtors:entry 441 =20 5 86213 __cxa_finalize:entry 447 =20 5 86213 __cxa_finalize:entry 565 =20 5 83470 _rtld_addr_phdr:entry 454 =20 5 86213 __cxa_finalize:entry 431 =20 5 83470 _rtld_addr_phdr:entry 1645 =20 5 84405 _exit:entry 432 If we run the same script but use walltimestamp (or vtimestamp), we'll = see the counter did not increase: # dtrace -w -c true -n 'pid$target:::entry {self->t =3D $1; = chill(1); printf("%d\n", $1 - self->t);}' walltimestamp dtrace: description 'pid$target:::entry ' matched 3082 probes dtrace: allowing destructive actions dtrace: pid 6707 has exited CPU ID FUNCTION:NAME 4 83475 _r_debug_postinit:entry 0 =20 4 85771 atexit:entry 0 =20 4 86468 __libc_atexit:entry 0 =20 4 86428 exit:entry 0 =20 4 85397 __cxa_thread_call_dtors:entry 0 =20 4 86213 __cxa_finalize:entry 0 =20 4 86213 __cxa_finalize:entry 0 =20 4 83470 _rtld_addr_phdr:entry 0 =20 4 86213 __cxa_finalize:entry 0 =20 4 83470 _rtld_addr_phdr:entry 0 =20 4 84405 _exit:entry 0 This is understandable for vtimestamp, as it does not increase when = executing DTrace code, but I don't understand walltimestamp's behavior = here. I'm running FreeBSD 13.1-RELEASE-p1 here on amd64. Best, Mateusz= --Apple-Mail=_9AFBAE28-2D18-4A94-8979-B2FE01D2F5D1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Hello all,

I'd like to understand why calling chill() = in a DTrace action block increases the timestampvariable, but not = vtimestamp and walltimestamp.
Here's an example showing timestamp = increasing after a call to chill():

        # dtrace -w -c = true -n 'pid$target:::entry {self->t =3D $1; chill(1); printf("%d\n", = $1 - self->t);}' timestamp
        dtrace: = description 'pid$target:::entry ' matched 3082 = probes
        dtrace: = allowing destructive actions
        dtrace: pid = 6734 has exited
        CPU   =   ID                   =  FUNCTION:NAME
          5 =  83475          _r_debug_postinit:entry = 11258
      =   
          5 =  85771                 =     atexit:entry 2218
      =   
          5 =  86468             =  __libc_atexit:entry 491
      =   
          5 =  86428                 =       exit:entry 441
      =   
          5 =  85397    __cxa_thread_call_dtors:entry = 441
      =   
          5 =  86213             = __cxa_finalize:entry 447
      =   
          5 =  86213             = __cxa_finalize:entry 565
      =   
          5 =  83470           =  _rtld_addr_phdr:entry 454
      =   
          5 =  86213             = __cxa_finalize:entry 431
      =   
          5 =  83470           =  _rtld_addr_phdr:entry 1645
      =   
          5 =  84405                 =      _exit:entry 432

If we run the same script but use = walltimestamp (or vtimestamp), we'll see the counter did not = increase:

      =   # dtrace -w -c true -n 'pid$target:::entry {self->t =3D $1; = chill(1); printf("%d\n", $1 - self->t);}' = walltimestamp
        dtrace: = description 'pid$target:::entry ' matched 3082 = probes
        dtrace: = allowing destructive actions
        dtrace: pid = 6707 has exited
        CPU   =   ID                   =  FUNCTION:NAME
          4 =  83475          _r_debug_postinit:entry = 0
      =   
          4 =  85771                 =     atexit:entry 0
      =   
          4 =  86468             =  __libc_atexit:entry 0
      =   
          4 =  86428                 =       exit:entry 0
      =   
          4 =  85397    __cxa_thread_call_dtors:entry = 0
      =   
          4 =  86213             = __cxa_finalize:entry 0
      =   
          4 =  86213             = __cxa_finalize:entry 0
      =   
          4 =  83470           =  _rtld_addr_phdr:entry 0
      =   
          4 =  86213             = __cxa_finalize:entry 0
      =   
          4 =  83470           =  _rtld_addr_phdr:entry 0
      =   
          4 =  84405                 =      _exit:entry 0

This is understandable for vtimestamp, as = it does not increase when executing DTrace code, but I don't understand = walltimestamp's behavior here.

I'm running FreeBSD 13.1-RELEASE-p1 here on = amd64.

Best,
Mateusz
= --Apple-Mail=_9AFBAE28-2D18-4A94-8979-B2FE01D2F5D1-- From nobody Wed Nov 23 14:07:23 2022 X-Original-To: freebsd-dtrace@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 4NHNHQ0hFnz4hTL7 for ; Wed, 23 Nov 2022 14:07:30 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NHNHN1RPfz4c7c; Wed, 23 Nov 2022 14:07:28 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=gMsMkZyE; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::735 as permitted sender) smtp.mailfrom=markjdb@gmail.com; dmarc=none Received: by mail-qk1-x735.google.com with SMTP id p18so12438259qkg.2; Wed, 23 Nov 2022 06:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=3v5frZsMsb+ciFsk2q3afqGeQomh+JGLaryKZ+vzixs=; b=gMsMkZyEvLR4OaCAWfjcr/rnCPGOT3JXN2a99T6O5zwLhdGaYP0Kg0FsNkvjlQQkM0 vBt6Zn2ZcaWXRyaUcqHLtReJiwWT5T2RP/J3BGypqkrYFZ3COPZrIizq1aRqMff8XvcK 8p3Aagkvz+qUw8C56lBLIo6VvEkqW9vCOyGnqsliLm0u63HgVITqa0afLllEQuy04HJ/ KEpcBV6ba8ylFXSUo7o10TlYI3m5IBsZQ0qNoMjjnZS10cN8fRLzNNb6nqQQdgZSiaPN ILQpplFQ5wmODOLVO7P+00u8NuG6sP44HRSEZhtozLRbioeUM6dnjBO2W4mkfhwmTcx3 KR/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3v5frZsMsb+ciFsk2q3afqGeQomh+JGLaryKZ+vzixs=; b=bG73vb66zmsWHxPg0TQ0YzypdkOygNJikj+xGeLueT6zuEj2iXMKGF0AUr2TgUtjoM ienNanoRhlvk5O/6sRgK/Ln9pmRQHJgdBd7AU76TxvMF82B/dvvOym+n+wCE7rgrVkZS x51Lg1gtSbJdIWLUojPJLg/irRlXqPyCMu7Qec4MUFTYOSrls/mkcpaRzYQAcZYz2Bpd 2p2MPWi9w0f0xuNPT7+1eh7Lggo8EJ8varlGCa3POAyOCdKuibEfMrl7eR8zZHYgu2zd l2+FSwSKe4xv+Ktn6O68EPe443VZHdm4w6OpwDwynqsNQ9JINfR3cLFGE+q5hrtufEU2 tz3g== X-Gm-Message-State: ANoB5plKDCTIwmnOYdiegvd0bNOkZBaitVPv8OOM9BxnOs1g1GcfVKNa WtpZGsVy+CFalGG2sUCgfPunSa7Mgy0= X-Google-Smtp-Source: AA0mqf6TBTQh4GA8LVLki0UqcBsQqTO0xCeI7I7c1vmuBIkuj+C6oftr7cmwA8GmWFDFm66O24w6cw== X-Received: by 2002:a05:620a:167a:b0:6fb:4d23:bdf9 with SMTP id d26-20020a05620a167a00b006fb4d23bdf9mr24062655qko.576.1669212446751; Wed, 23 Nov 2022 06:07:26 -0800 (PST) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id y11-20020a37f60b000000b006ce1bfbd603sm11780341qkj.124.2022.11.23.06.07.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 06:07:25 -0800 (PST) Date: Wed, 23 Nov 2022 09:07:23 -0500 From: Mark Johnston To: Mateusz Piotrowski <0mp@freebsd.org> Cc: freebsd-dtrace@freebsd.org Subject: Re: In DTrace, why does timestamp increase after a call to chill() but vtimestamp and walltimestamp do not? Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-1.67 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.971]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::735:from]; DMARC_NA(0.00)[freebsd.org]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4NHNHN1RPfz4c7c X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N On Mon, Nov 21, 2022 at 06:19:16PM +0100, Mateusz Piotrowski wrote: > Hello all, > > I'd like to understand why calling chill() in a DTrace action block increases the timestampvariable, but not vtimestamp and walltimestamp. > Here's an example showing timestamp increasing after a call to chill(): I think you found a bug in dtrace. When a dtrace probe fires and actions attached to that probe are executed, the value of *timestamp is cached in a struct dtrace_mstate on the firing CPU's stack. This means that in D, within a probe body, multiple accesses of *timestamp will return the same cached value. As it turns out, the implementation of chill() will invalidate that cached value, but only for "timestamp", not for walltimestamp, which seems incorrect. Below is an untested patch which should fix your example. I think the behaviour of vtimestamp that you observe is expected. From the description, "The counter does not include the time that is spent in DTrace predicates and actions", so I wouldn't expect it to advance while dtrace_probe() is running. And indeed, it gets advanced once at the beginning of dtrace_probe(). diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c index 44a85db65117..cd6ed332af7b 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c @@ -7082,11 +7082,12 @@ dtrace_action_chill(dtrace_mstate_t *mstate, hrtime_t val) continue; /* - * Normally, we assure that the value of the variable "timestamp" does - * not change within an ECB. The presence of chill() represents an - * exception to this rule, however. + * Normally, we assure that the value of the variables "timestamp" and + * "walltimestamp" do not change within an ECB. The presence of chill() + * represents an exception to this rule, however. */ - mstate->dtms_present &= ~DTRACE_MSTATE_TIMESTAMP; + mstate->dtms_present &= + ~(DTRACE_MSTATE_TIMESTAMP | DTRACE_MSTATE_WALLTIMESTAMP); cpu->cpu_dtrace_chilled += val; } From nobody Thu Dec 1 21:08:03 2022 X-Original-To: freebsd-dtrace@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 4NNTF92VMxz4jLMK for ; Thu, 1 Dec 2022 21:08:13 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NNTF81g8vz3NH6; Thu, 1 Dec 2022 21:08:12 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=RSH0qbEn; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::829 as permitted sender) smtp.mailfrom=markjdb@gmail.com; dmarc=none Received: by mail-qt1-x829.google.com with SMTP id e15so2599913qts.1; Thu, 01 Dec 2022 13:08:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=zMErbTGKujtfk3EVQsOGLmpiav6EoVBX14tNTC92IQ8=; b=RSH0qbEnnfr8aTeXppgVDc7I6rjI874wxeunAOEuDCErBpiqcpHCzw7eMCMM1mnRmZ MSZZj4dTPTUGfgoQYCSD8+9eDibcXV9Pg9FFs0Oeailwf1TH69KwmnAyceuIn5o3ptiP 75b8hAGQXfGS+EoDp5tThch4mOJ091mGSGWNiZ4LU/P4sAH6TXI56znsy0atq/ub0SWn k+CTP3/N9YRROPf3Z65V0mOyehbUUvIOlS+h/Ge6J23Mo1+Y7MwF+acfA7ckzkFvVtJk omvpayPFTIdEFBT3TnoOaT4WU1GBhm2IaQPnY3nGmrRQ7U8pjomM32O2uqnkonLLsuDg vHvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zMErbTGKujtfk3EVQsOGLmpiav6EoVBX14tNTC92IQ8=; b=aTQhFCiUmcUr3daidnoXeQVthHZeSCBEjVTTOKX6vya9Bk8aUcu7ct/GIc0SM+T8h7 9VCq0ruL3mS1p65rG57D+rT1JruFLA6qTkgYgpy9MwqR3OZDzjEyg18ohJzBrTcLwcjT Zq4GUQz7+slVOBMovFKkwxMyTchieuWxm3zwBSO3skTA5lWuLouyxMuPAF2e7xoV1jG8 3ApU7CktOXDBDLDdrgk9iYEzbVY5C272I+43qxMXl7/ede2W9VBozpcJVn4dY8MyOw0R VbIGnGbegTXBCuIQBO1fKsi3IS5GbmCG0zK64oK98oKSBFLZ9zjsScFfQv6w7RrQxWGU +nLw== X-Gm-Message-State: ANoB5plQ0AiSiaGB2VRSQ9U8FpzMraC/Vr4sMXXpvgn4ZMMSP6uHhKWJ hN3Mt+chTMY9hlUp+KLE/eYMEVK3Xp8= X-Google-Smtp-Source: AA0mqf5mZUCqkL6b2+f3b776HIECsedJDqznBzyAcMb+gcJ7Jbq29Hn3mXjtDe7EGsyOGW3qE5se8g== X-Received: by 2002:ac8:5c56:0:b0:3a5:20b1:e390 with SMTP id j22-20020ac85c56000000b003a520b1e390mr64224229qtj.626.1669928890073; Thu, 01 Dec 2022 13:08:10 -0800 (PST) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id r26-20020ac867da000000b003a5689134afsm3121592qtp.36.2022.12.01.13.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 13:08:06 -0800 (PST) Date: Thu, 1 Dec 2022 16:08:03 -0500 From: Mark Johnston To: Mateusz Piotrowski <0mp@freebsd.org> Cc: freebsd-dtrace@freebsd.org Subject: Re: In DTrace, why does timestamp increase after a call to chill() but vtimestamp and walltimestamp do not? Message-ID: References: List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-1.67 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.968]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::829:from]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4NNTF81g8vz3NH6 X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N On Wed, Nov 23, 2022 at 09:07:23AM -0500, Mark Johnston wrote: > On Mon, Nov 21, 2022 at 06:19:16PM +0100, Mateusz Piotrowski wrote: > > Hello all, > > > > I'd like to understand why calling chill() in a DTrace action block increases the timestampvariable, but not vtimestamp and walltimestamp. > > Here's an example showing timestamp increasing after a call to chill(): > > I think you found a bug in dtrace. When a dtrace probe fires and > actions attached to that probe are executed, the value of *timestamp is > cached in a struct dtrace_mstate on the firing CPU's stack. This means > that in D, within a probe body, multiple accesses of *timestamp will > return the same cached value. > > As it turns out, the implementation of chill() will invalidate that > cached value, but only for "timestamp", not for walltimestamp, which > seems incorrect. Below is an untested patch which should fix your > example. I tested this and found that it isn't sufficient. Even if we re-read the walltimestamp value, it is usually the same before and after a chill(). The reason is that walltimestamp returns the last saved timecounter value rather than querying the timecounter directly and so is not very precise. This cannot be changed without violating the invariant that DIF execution cannot invoke code that is not part of dtrace itself. Otherwise, reading walltimestamp could cause a probe to fire. It is possible that a timer interrupt on a different CPU will update the timehands during a chill() and so the probe will see different values before and after, but whether or not this happen is up to chance. So, I think you examples behave as expected, even though the results are a bit unintuitive. > I think the behaviour of vtimestamp that you observe is expected. From > the description, "The counter does not include the time that is spent in > DTrace predicates and actions", so I wouldn't expect it to advance while > dtrace_probe() is running. And indeed, it gets advanced once at the > beginning of dtrace_probe(). From nobody Sat Dec 10 20:24:40 2022 X-Original-To: freebsd-dtrace@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 4NTzrs2G4Sz4kNCw for ; Sat, 10 Dec 2022 20:24:45 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from dss.incore.de (dss.incore.de [195.145.1.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NTzrq74gfz3tsk for ; Sat, 10 Dec 2022 20:24:43 +0000 (UTC) (envelope-from longwitz@incore.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=incore.de header.s=dkim header.b=UEitBJU0; spf=pass (mx1.freebsd.org: domain of longwitz@incore.de designates 195.145.1.138 as permitted sender) smtp.mailfrom=longwitz@incore.de; dmarc=none Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id 213C76BC741 for ; Sat, 10 Dec 2022 21:24:42 +0100 (CET) X-Virus-Scanned: amavisd-new at incore.de Received: from dss.incore.de ([10.3.0.3]) by inetmail.dmz (inetmail.dmz [10.3.0.3]) (amavisd-new, port 10024) with LMTP id FDhWeaBIJ4Lb for ; Sat, 10 Dec 2022 21:24:41 +0100 (CET) Received: from mail.local.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id 60EA66BC73D for ; Sat, 10 Dec 2022 21:24:41 +0100 (CET) Received: from mail.incore (localhost [127.0.0.1]) by mail.local.incore (Postfix) with ESMTP id 5A6549CD27 for ; Sat, 10 Dec 2022 21:24:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=incore.de; h= content-transfer-encoding:content-type:content-type:subject :subject:mime-version:user-agent:from:from:date:date:message-id :received:received; s=dkim; t=1670703881; bh=wWf5d4N/xZ/N4v5Tmut HmZPrnTVfDNUcNxzdVX/MFb4=; b=UEitBJU0ZkOtMDf2Df9bnTYRPvc0R1746LW K6MbyC+eedrTz5NTISkxuhX1ie1uTZcdHlpOaLgdcxSxxDB6iCZteOQpJ9kgNuLN dVZTh1MHOBTeVB3BvCCdWJ0EMYkLxq6FA+OoRGIrxkAB1VLSgquc8vmwW0r8ozz7 sFokota8= Received: from mail.local.incore ([127.0.0.1]) by mail.incore (mail.incore [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ofw1d0t_6FXD for ; Sat, 10 Dec 2022 21:24:41 +0100 (CET) Received: from bsdmhs.longwitz (unknown [192.168.99.6]) by mail.local.incore (Postfix) with ESMTP id 334ED9CC1C for ; Sat, 10 Dec 2022 21:24:41 +0100 (CET) Message-ID: <6394EB08.5060604@incore.de> Date: Sat, 10 Dec 2022 21:24:40 +0100 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 To: "freebsd-dtrace@freebsd.org" Subject: Format problem in printa() for negative values Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+ip4:195.145.1.138:c]; R_DKIM_ALLOW(-0.20)[incore.de:s=dkim]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-dtrace@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; ASN(0.00)[asn:3320, ipnet:195.145.0.0/16, country:DE]; ARC_NA(0.00)[]; RCVD_COUNT_SEVEN(0.00)[7]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[incore.de:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[incore.de]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4NTzrq74gfz3tsk X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On my laptop running FreeBSD 12.3-STABLE #3 r371380 a saw a problem with the printa() function of DTrace. To explain I use the C program printa: #include #include void fkt1() { printf( "fkt1() called\n" ); } void fkt2() { printf( "fkt2() called\n" ); } int main () { sleep( 10 ); fkt1(); fkt2(); fkt1(); fkt2(); fkt1(); } After start of printa I run the following DTrace script with "dtrace -p $(pgrep printa) -s printa.d" : dtrace:::BEGIN { printf("demo for printa\n"); } pid$target::fkt1:entry /execname == "printa"/ { @fkt1 = count(); @saldo1 = sum(1); @saldo2 = sum(-1); } pid$target::fkt2:entry /execname == "printa"/ { @fkt2 = count(); @saldo1 = sum(-1); @saldo2 = sum(1); } dtrace:::END { printf("demo for printa\n"); printa("fkt1=%@d, fkt2=%@d, saldo1=%@d\n", @fkt1, @fkt2, @saldo1); printa("fkt1=%@d, fkt2=%@d, saldo2=%@d\n", @fkt1, @fkt2, @saldo2); printa("saldo2=%@d, fkt1=%@d, fkt2=%@d\n", @saldo2, @fkt1, @fkt2); } The result is dtrace: script './printa.d' matched 4 probes CPU ID FUNCTION:NAME 3 1 :BEGIN demo for printa fkt1() called fkt2() called fkt1() called fkt2() called fkt1() called dtrace: pid 11387 has exited 2 2 :END demo for printa fkt1=3, fkt2=2, saldo1=1 fkt1=3, fkt2=2, saldo2=18446744073709551615 saldo2=-1, fkt1=3, fkt2=2 The negative value of @saldo2 is wrong, when it is not the first parameter in the printa() function.