From owner-freebsd-dtrace@freebsd.org Sun May 21 20:15:57 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 950AED77C8B for ; Sun, 21 May 2017 20:15:57 +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 5CEF1922 for ; Sun, 21 May 2017 20:15:56 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from secmail.incore.de (inetdssm.dmz [10.11.0.4]) by dss.incore.de (Postfix) with ESMTP id 77A2767989; Sun, 21 May 2017 22:15:48 +0200 (CEST) Received: from lolap.longwitz (87-57-220-129-dynamic.dk.customer.tdc.net [87.57.220.129]) by secmail.incore.de (Postfix) with ESMTPS id 2A66C6797C; Sun, 21 May 2017 22:15:48 +0200 (CEST) Message-ID: <5921F56F.7090509@incore.de> Date: Sun, 21 May 2017 22:15:43 +0200 From: Andreas Longwitz User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:15.0) Gecko/20120917 Thunderbird/15.0.1 MIME-Version: 1.0 To: Mark Johnston CC: Domagoj Stolfa , Samuel Lepetit , freebsd-dtrace@freebsd.org Subject: Re: fbt:kernel:breadn_flags:entry): invalid address (0x0) in action #7 References: <591E01F5.8080208@incore.de> <6A020677-BC76-41E1-8372-10B7962F4EDE@apple.com> <20170518204534.GA37126@wraith> <20170518235207.GB37643@wkstn-mjohnston.west.isilon.com> In-Reply-To: <20170518235207.GB37643@wkstn-mjohnston.west.isilon.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Sun, 21 May 2017 20:15:57 -0000 Hello, thanks for answer >>> I suspect the easiest way here is just to check that your credential in args[6] is non-null in a predicate. >> >> yes, you would likely have to enable the probe twice -- once with a non-null >> argument and once with a null argument (if required). My problem is: The probe fbt:kernel:breadn_flags:entry should fire in the case args[6] == 0, the case args[6] != 0 works but is not important to me. > On FreeBSD head you can also use if-statements. :) > > fbt:kernel:breadn_flags:entry > { > if (args[6] != NULL) { > ... > } else { > ... > } > } Does this mean, my problem is solved in head even with a better if-syntax and no chance in V10 ?