fbt:kernel:breadn_flags:entry): invalid address (0x0) in action #7

Mark Johnston markjdb at gmail.com
Thu May 18 23:52:18 UTC 2017


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 {
		...
	}
}


More information about the freebsd-dtrace mailing list