From owner-freebsd-dtrace@freebsd.org Wed Jul 19 09:56:52 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 06CD3C31CCD for ; Wed, 19 Jul 2017 09:56:52 +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 C146A73B25 for ; Wed, 19 Jul 2017 09:56:51 +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 508BE67867 for ; Wed, 19 Jul 2017 11:56:43 +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 P2aa7rgKzcKA for ; Wed, 19 Jul 2017 11:56:42 +0200 (CEST) Received: from mail.local.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id 700AB67846 for ; Wed, 19 Jul 2017 11:56:42 +0200 (CEST) Received: from bsdlo.incore (bsdlo.incore [192.168.0.84]) by mail.local.incore (Postfix) with ESMTP id 3EBC6508A1 for ; Wed, 19 Jul 2017 11:56:42 +0200 (CEST) Message-ID: <596F2CDA.1000705@incore.de> Date: Wed, 19 Jul 2017 11:56:42 +0200 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: "freebsd-dtrace@freebsd.org" Subject: g_journal_read has broken argument list in V10 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, 19 Jul 2017 09:56:52 -0000 I use FreeBSD 10.3-STABLE r317936 with "old" /usr/lib/dtrace/ip.c and can't get DTrace to work for the function g_journal_read(). In the output of "dtrace -lv" I see 33379 fbt geom_journal g_journal_read entry Probe Description Attributes Identifier Names: Private Data Semantics: Private Dependency Class: Unknown Argument Attributes Identifier Names: Private Data Semantics: Private Dependency Class: ISA Argument Types args[0]: struct g_journal_softc * args[1]: off_t args[2]: off_t args[3]: struct bio * but the sourcefile g_journal.c gives static void g_journal_read(struct g_journal_softc *sc, struct bio *pbp, off_t ostart, off_t oend) So args[0] and args[2] matches in type, but args[1] and args[3] does not. This problem did not exist in FreeBSD V8, dtrace -lv gives correct 31519 fbt geom_journal g_journal_read entry Probe Description Attributes Identifier Names: Private Data Semantics: Private Dependency Class: Unknown Argument Attributes Identifier Names: Private Data Semantics: Private Dependency Class: ISA Argument Types args[0]: struct g_journal_softc * args[1]: struct bio * args[2]: off_t args[3]: off_t Please can somebody show me how this can be fixed ? -- Andreas Longwitz