Date: Thu, 18 May 2017 16:52:07 -0700 From: Mark Johnston <markjdb@gmail.com> To: Domagoj Stolfa <domagoj.stolfa@gmail.com> Cc: Samuel Lepetit <slepetit@apple.com>, Andreas Longwitz <longwitz@incore.de>, freebsd-dtrace@freebsd.org Subject: Re: fbt:kernel:breadn_flags:entry): invalid address (0x0) in action #7 Message-ID: <20170518235207.GB37643@wkstn-mjohnston.west.isilon.com> In-Reply-To: <20170518204534.GA37126@wraith> References: <591E01F5.8080208@incore.de> <6A020677-BC76-41E1-8372-10B7962F4EDE@apple.com> <20170518204534.GA37126@wraith>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 18, 2017 at 10:45:34PM +0200, Domagoj Stolfa wrote:
> Hello,
>
> > 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).
On FreeBSD head you can also use if-statements. :)
fbt:kernel:breadn_flags:entry
{
if (args[6] != NULL) {
...
} else {
...
}
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170518235207.GB37643>
