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 {
                ...
        }
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
To unsubscribe, send any mail to "[email protected]"

Reply via email to