Date: Sun, 21 May 2017 22:15:43 +0200 From: Andreas Longwitz <longwitz@incore.de> To: Mark Johnston <markjdb@gmail.com> Cc: Domagoj Stolfa <domagoj.stolfa@gmail.com>, Samuel Lepetit <slepetit@apple.com>, freebsd-dtrace@freebsd.org Subject: Re: fbt:kernel:breadn_flags:entry): invalid address (0x0) in action #7 Message-ID: <5921F56F.7090509@incore.de> In-Reply-To: <20170518235207.GB37643@wkstn-mjohnston.west.isilon.com> References: <591E01F5.8080208@incore.de> <6A020677-BC76-41E1-8372-10B7962F4EDE@apple.com> <20170518204534.GA37126@wraith> <20170518235207.GB37643@wkstn-mjohnston.west.isilon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5921F56F.7090509>