#!/usr/sbin/dtrace -s
#pragma D option quiet

sjsws$1::*:saf-entry
/ copyinstr(arg0) == "send-file" /
{
    printf("thread %d: Calling saf %s\n", tid, copyinstr(arg0));
}

sjsws$1:::saf-exit
/ copyinstr(arg0) == "send-file" /
{
    printf("thread %d: saf %s returned %d\n", tid, copyinstr(arg0), args[1]);
}