mutex_owner

Dr. Baud drbaud at yahoo.com
Tue Feb 5 14:37:08 UTC 2013


All,

     Anyone use mutex_owner in a dtrace script, as the obvious does not work for me:

    Content of spin.d:

#!/usr/sbin/dtrace -qs

:::*spin
{
self->mutex = (kmutex_t *) arg0;
self->mutex_owner = mutex_owner((kmutex_t *) :self->mutex);
}



# dtrace -s spin.d
dtrace: failed to compile script spin.d: line 5: mutex_owner( ) argument #1 is i
ncompatible with prototype:
        prototype: struct mtx *
         argument: kmutex_t *


    Dr.


More information about the freebsd-hackers mailing list