From owner-freebsd-dtrace@freebsd.org Wed May 10 10:05:03 2017 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB97BD64189 for ; Wed, 10 May 2017 10:05:03 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from dss.incore.de (dss.incore.de [195.145.1.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B3338E39 for ; Wed, 10 May 2017 10:05:03 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id D193B67936 for ; Wed, 10 May 2017 11:57:44 +0200 (CEST) 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 gQVJghY8HM8I for ; Wed, 10 May 2017 11:57:44 +0200 (CEST) Received: from mail.local.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id 06E406791E for ; Wed, 10 May 2017 11:57:44 +0200 (CEST) Received: from bsdlo.incore (bsdlo.incore [192.168.0.84]) by mail.local.incore (Postfix) with ESMTP id EC5A8508A1 for ; Wed, 10 May 2017 11:57:43 +0200 (CEST) Message-ID: <5912E417.5070404@incore.de> Date: Wed, 10 May 2017 11:57:43 +0200 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: freebsd-dtrace@freebsd.org Subject: DTrace boken in FreeBSD 10.3 Stable Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 10:05:04 -0000 After upgrade FreeBSD 10.3 from r307955 to r317936 DTrace is broken: The output of dtrace -n 'dtrace:::BEGIN { printf("Hello FreeBSD!\n"); }' gives dtrace: invalid probe specifier dtrace:::BEGIN { printf("Hello FreeBSD!\n"); }: "/usr/lib/dtrace/ip.d", line 245: m_data is not a member of struct mbuf The file ip.d was replaced with commit of Revision 317375. Using the previus version of the file /usr/lib/dtrace/ip.d lets DTrace work again. Another problem with DTrace now are error messages in /var/log/messages while running "dtrace -vl" like dsssrvt7 kernel: fbt_getargdesc(1296): Unknown function! dsssrvt7 last message repeated 45 times This problem looks like the problem described in the old PR kern/160275. I do not know how to fix this. -- Dr. Andreas Longwitz From owner-freebsd-dtrace@freebsd.org Wed May 10 14:18:47 2017 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46418D5D8BB for ; Wed, 10 May 2017 14:18:47 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C72CF1B for ; Wed, 10 May 2017 14:18:47 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-io0-x22a.google.com with SMTP id f102so2193406ioi.2 for ; Wed, 10 May 2017 07:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7ruCg1fh0V6/MjX+FRYmZftsEH8Yv/14B8J6avI5thk=; b=DCXKaRhyFkxs0Gq9qZWLR70yRjjNoQ16yn7P0l5sH4m1B1BCDR3UhzglA5AiH2VfLu 555Yg0k/lnX8bNnHqST/RSZ953fupXiSJiUeagESO2ja10FeoJ5tWP+QRqBFCDTA8yUc jdceO7guV5IV4ZKNNAASTLJSlpoD2tlnBWHCqnTCmtGEzUgXBV6m/CEBh/GcX28GLDav G1fTxRouGOAcghbwWuKOFBJRXXvmAoPwiQw41v37usSK++9xRZGWxJiRzlVZxg2q+w8p 2BrcmP6SXv8Mp/IMQb8s9PujBxsXBVyIoV87zeuhvWTjOfznd5toMVp6P8rSdlGZxaGX jsGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7ruCg1fh0V6/MjX+FRYmZftsEH8Yv/14B8J6avI5thk=; b=iw5bZD/yLXfKlErspJLwLXj0IyI429VIU9SvoA2Lswmd0fhah60LqwzwJ3XkV7Ti3X tnTTb0cN0TtDzscG4TcuaBxCypko0ogOv7wk6SBZLHhh2b9e3UeRY/R0ZcecIq/tWKi2 9Zs2t/NxgynLsRAqRMt/lFlfPwDqbicPc5okg4L+adQ0CM6vh9mKCaq8zyTDy8GKRqqU lRy6I3ofatg/bO/xXIytsK5jy+oWbfAwuSEkaVh2n4pMHjv+J4whk6iouVlopKnmioQm sg+80AX/fPrZZfC9dOQ+g4V9PcSO7Mc3olmU4T8q1PzeESBBT1szNmGNg6kN/6SCb/cM fIzA== X-Gm-Message-State: AODbwcACL1bpaG+ucguYvlxr6l2mBr0rLryrxKk7Vv31AiPdeYhGbyd3 q3r9PTdQhSiUqQmAKl1NS0cPxsbBoQ== X-Received: by 10.107.25.203 with SMTP id 194mr3461849ioz.182.1494425926307; Wed, 10 May 2017 07:18:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.32.211 with HTTP; Wed, 10 May 2017 07:18:45 -0700 (PDT) In-Reply-To: <5912E417.5070404@incore.de> References: <5912E417.5070404@incore.de> From: Ryan Stone Date: Wed, 10 May 2017 10:18:45 -0400 Message-ID: Subject: Re: DTrace boken in FreeBSD 10.3 Stable To: Andreas Longwitz Cc: "freebsd-dtrace@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 14:18:47 -0000 On Wed, May 10, 2017 at 5:57 AM, Andreas Longwitz wrote: > After upgrade FreeBSD 10.3 from r307955 to r317936 DTrace is broken: > > The output of > dtrace -n 'dtrace:::BEGIN { printf("Hello FreeBSD!\n"); }' > gives > dtrace: invalid probe specifier dtrace:::BEGIN { printf("Hello > FreeBSD!\n"); }: "/usr/lib/dtrace/ip.d", line 245: m_data is not a > member of struct mbuf > > The file ip.d was replaced with commit of Revision 317375. Using the > previus version of the file /usr/lib/dtrace/ip.d lets DTrace work again. > > Another problem with DTrace now are error messages in /var/log/messages > while running "dtrace -vl" like > > dsssrvt7 kernel: fbt_getargdesc(1296): Unknown function! > dsssrvt7 last message repeated 45 times > > This problem looks like the problem described in the old PR kern/160275. > I do not know how to fix this. These error messages suggest that the kernel was built without CTF data. Did you build and install the kernel yourself? If so, I'd recommend rerunning make buildkernel with "WITH_CTF=1" added to the commandline. From owner-freebsd-dtrace@freebsd.org Wed May 10 16:14:25 2017 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A80CD67B0A for ; Wed, 10 May 2017 16:14:25 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from dss.incore.de (dss.incore.de [195.145.1.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 002DFCA2 for ; Wed, 10 May 2017 16:14:24 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id 8078367A14; Wed, 10 May 2017 18:14:21 +0200 (CEST) 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 135ljL2pd8kE; Wed, 10 May 2017 18:14:20 +0200 (CEST) Received: from mail.local.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id 8CC31679CE; Wed, 10 May 2017 18:14:20 +0200 (CEST) Received: from bsdlo.incore (bsdlo.incore [192.168.0.84]) by mail.local.incore (Postfix) with ESMTP id 68073508A5; Wed, 10 May 2017 18:14:20 +0200 (CEST) Message-ID: <59133C5C.4000500@incore.de> Date: Wed, 10 May 2017 18:14:20 +0200 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: Ryan Stone CC: "freebsd-dtrace@freebsd.org" Subject: Re: DTrace boken in FreeBSD 10.3 Stable References: <5912E417.5070404@incore.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2017 16:14:25 -0000 Thanks for answer, > These error messages suggest that the kernel was built without CTF > data. Did you build and install the kernel yourself? If so, I'd > recommend rerunning make buildkernel with "WITH_CTF=1" added to the > commandline. I did a complete clean (empty /usr/obj) buildworld and buildkernel. I think WITH_CTF=1 is default in 10.3, the log of my buildkernel gives echo $(grep WITH_CTF=\"1\" buildkernel.log | wc -l ) --> 8. I agree, the problem is correlated with CTF, but only for some functions of the MODULES freebsd and freebsd32. A snippet from the output of "dtrace -l" looks like this: 39180 syscall freebsd32 getdtablesize return 39181 syscall freebsd32 dup2 entry 39182 syscall freebsd32 dup2 return 39183 syscall freebsd32 #91 entry 39184 syscall freebsd32 #91 return 39185 syscall freebsd32 freebsd32_fcntl entry 39186 syscall freebsd32 freebsd32_fcntl return 39187 syscall freebsd32 freebsd32_select entry 39188 syscall freebsd32 freebsd32_select return 39189 syscall freebsd32 #94 entry 39190 syscall freebsd32 #94 return 39191 syscall freebsd32 fsync entry 39192 syscall freebsd32 fsync return The function names are missing only for MODULE freebsd or freebsd32: dtrace -l | grep '#' | wc -l -- > 350 dtrace -l | grep '#' | grep freebsd32 | wc -l --> 196 dtrace -l | grep '#' | grep 'freebsd ' | wc -l --> 154 The kernel message 'fbt_getargdesc' appears on use of 'dtrace -vl'. -- Dr. Andreas Longwitz From owner-freebsd-dtrace@freebsd.org Thu May 11 17:56:15 2017 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4179AD680E3 for ; Thu, 11 May 2017 17:56:15 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt0-x229.google.com (mail-qt0-x229.google.com [IPv6:2607:f8b0:400d:c0d::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE0541059; Thu, 11 May 2017 17:56:14 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt0-x229.google.com with SMTP id v27so11244245qtg.2; Thu, 11 May 2017 10:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GQO1QhjScQqdl25ZIc3LCpD53X+0xGWW8HPBdD/sQW0=; b=mnpeHMVWtJCu29HeNEXvDV8flNYDKIOFd25X1tkU7hCckaWAb6ZqBXZtfIn5w8p7Wx B8tN9Skk5+DGHlm6h+aXZoqLBf8jZUDocWPUueNUpRqL8RMXBAf+SZKExfgfih/uffOL 1qteoRkaQOHDW3HsyGANCmumUspYJZ3mvfF+HAw9y7MP3UgK7QF2UyMXb1TOhZ52zd6C XjuEi0532/zW6V+H+thc6t6Ftp5tKQsMS9swTaB7M2txI199BU7wkNCecdHDHM0Rqn2R cr8V7ZIB8AJNVO9ytBi68e43Ws4tNBPadlx9KbMMfEYIB85t+eylQS571B/0V5aDFNvA oCWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=GQO1QhjScQqdl25ZIc3LCpD53X+0xGWW8HPBdD/sQW0=; b=jvil9b8NVZtbR/eW7kJTwzS6DeXZKP8ryThpbnrqdjumEw5F01fPiXpZZio5oG51l1 D3hO+BZMvyuzN8sKG3GHFZ1xUC4GMYC4FCc250GcFwg5yNRxEyfcNelFqGJR+rZdr68o GLtyuyh/x2wZhSJYTZuS5ZXwahic93tR1/4+AM3vRRUIlYv9ULahlgGZd+i21fm5+6ia 7GCRFx8zwyUHtk7gSEevbY/LovNTkX6u3m557IHRnHGgtif1oCimyB6MTpK5jfMdy9BJ gs7bzPLI8c2uBaebGboiKYbHvtCDmAZCxbbXYDHgJ4PtNxZ1DUz1YDov7nckbYYLaxCi Axyg== X-Gm-Message-State: AODbwcBl1OSq/i+8fwTk93hzuhXtYYfFMCgJNezoQj8n1Jt59d/tkI+t k7md3YoZ7uOrkA== X-Received: by 10.200.50.45 with SMTP id x42mr51994qta.23.1494525353807; Thu, 11 May 2017 10:55:53 -0700 (PDT) Received: from wkstn-mjohnston.west.isilon.com (c-76-104-201-218.hsd1.wa.comcast.net. [76.104.201.218]) by smtp.gmail.com with ESMTPSA id d21sm557410qke.62.2017.05.11.10.55.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2017 10:55:52 -0700 (PDT) Sender: Mark Johnston Date: Thu, 11 May 2017 10:55:21 -0700 From: Mark Johnston To: smh@FreeBSD.org Cc: freebsd-dtrace@freebsd.org, Andreas Longwitz Subject: Re: DTrace boken in FreeBSD 10.3 Stable Message-ID: <20170511175521.GC2950@wkstn-mjohnston.west.isilon.com> References: <5912E417.5070404@incore.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5912E417.5070404@incore.de> User-Agent: Mutt/1.8.2 (2017-04-18) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 17:56:15 -0000 On Wed, May 10, 2017 at 11:57:43AM +0200, Andreas Longwitz wrote: > After upgrade FreeBSD 10.3 from r307955 to r317936 DTrace is broken: > > The output of > dtrace -n 'dtrace:::BEGIN { printf("Hello FreeBSD!\n"); }' > gives > dtrace: invalid probe specifier dtrace:::BEGIN { printf("Hello > FreeBSD!\n"); }: "/usr/lib/dtrace/ip.d", line 245: m_data is not a > member of struct mbuf > > The file ip.d was replaced with commit of Revision 317375. Using the > previus version of the file /usr/lib/dtrace/ip.d lets DTrace work again. Steven, could you please take a look at this? I think it was incorrect to merge the changes to in_kdtrace.c since the probe sites in the TCP code have not been correspondingly updated.