#include <sys/lockstat.h>

sys/lockstat.h

43 macros

macroLS_LCK_MTX_LOCK_SPIN

Name the various locking functions...
#define LS_LCK_MTX_LOCK_SPIN "lck_mtx_lock_spin"

macroLS_LCK_MTX_LOCK

#define LS_LCK_MTX_LOCK "lck_mtx_lock"

macroLS_LCK_MTX_TRY_LOCK_SPIN

#define LS_LCK_MTX_TRY_LOCK_SPIN "lck_mtx_try_lock_spin"

macroLS_LCK_MTX_TRY_LOCK

#define LS_LCK_MTX_TRY_LOCK "lck_mtx_try_lock"

macroLS_LCK_MTX_UNLOCK

#define LS_LCK_MTX_UNLOCK "lck_mtx_unlock"

macroLS_LCK_SPIN_LOCK

#define LS_LCK_SPIN_LOCK "lck_spin_lock"

macroLS_LCK_SPIN_TRY_LOCK

#define LS_LCK_SPIN_TRY_LOCK "lck_spin_try_lock"

macroLS_LCK_SPIN_UNLOCK

#define LS_LCK_SPIN_UNLOCK "lck_spin_unlock"

macroLS_LCK_RW_LOCK_SHARED

#define LS_LCK_RW_LOCK_SHARED "lck_rw_lock_shared"

macroLS_LCK_RW_LOCK_EXCL

#define LS_LCK_RW_LOCK_EXCL "lck_rw_lock_exclusive"

macroLS_LCK_RW_DONE

#define LS_LCK_RW_DONE "lck_rw_done"

macroLS_LCK_RW_TRY_LOCK_EXCL

#define LS_LCK_RW_TRY_LOCK_EXCL "lck_rw_try_lock_exclusive"

macroLS_LCK_RW_TRY_LOCK_SHARED

#define LS_LCK_RW_TRY_LOCK_SHARED "lck_rw_try_lock_shared"

macroLS_LCK_RW_LOCK_SHARED_TO_EXCL

#define LS_LCK_RW_LOCK_SHARED_TO_EXCL "lck_rw_lock_shared_to_exclusive"

macroLS_LCK_RW_LOCK_EXCL_TO_SHARED

#define LS_LCK_RW_LOCK_EXCL_TO_SHARED "lck_rw_lock_exclusive_to_shared"

macroLS_LCK_TICKET_LOCK

#define LS_LCK_TICKET_LOCK "lck_ticket_lock"

macroLS_LCK_TICKET_UNLOCK

#define LS_LCK_TICKET_UNLOCK "lck_ticket_unlock"

macroLS_ACQUIRE

#define LS_ACQUIRE "acquire"

macroLS_RELEASE

#define LS_RELEASE "release"

macroLS_SPIN

#define LS_SPIN "spin"

macroLS_BLOCK

#define LS_BLOCK "block"

macroLS_UPGRADE

#define LS_UPGRADE "upgrade"

macroLS_DOWNGRADE

#define LS_DOWNGRADE "downgrade"

macroLS_TYPE_ADAPTIVE

#define LS_TYPE_ADAPTIVE "adaptive"
this really means "mutex"

macroLS_TYPE_SPIN

#define LS_TYPE_SPIN "spin"

macroLS_TYPE_RW

#define LS_TYPE_RW "rw"

macroLS_TYPE_TICKET

#define LS_TYPE_TICKET "ticket"

macroLSA_ACQUIRE

#define LSA_ACQUIRE (LS_TYPE_ADAPTIVE "-" LS_ACQUIRE)

macroLSA_RELEASE

#define LSA_RELEASE (LS_TYPE_ADAPTIVE "-" LS_RELEASE)

macroLSA_SPIN

#define LSA_SPIN (LS_TYPE_ADAPTIVE "-" LS_SPIN)

macroLSA_BLOCK

#define LSA_BLOCK (LS_TYPE_ADAPTIVE "-" LS_BLOCK)

macroLSS_ACQUIRE

#define LSS_ACQUIRE (LS_TYPE_SPIN "-" LS_ACQUIRE)

macroLSS_RELEASE

#define LSS_RELEASE (LS_TYPE_SPIN "-" LS_RELEASE)

macroLSS_SPIN

#define LSS_SPIN (LS_TYPE_SPIN "-" LS_SPIN)

macroLSR_ACQUIRE

#define LSR_ACQUIRE (LS_TYPE_RW "-" LS_ACQUIRE)

macroLSR_RELEASE

#define LSR_RELEASE (LS_TYPE_RW "-" LS_RELEASE)

macroLSR_BLOCK

#define LSR_BLOCK (LS_TYPE_RW "-" LS_BLOCK)

macroLSR_SPIN

#define LSR_SPIN (LS_TYPE_RW "-" LS_SPIN)

macroLSR_UPGRADE

#define LSR_UPGRADE (LS_TYPE_RW "-" LS_UPGRADE)

macroLSR_DOWNGRADE

#define LSR_DOWNGRADE (LS_TYPE_RW "-" LS_DOWNGRADE)

macroLST_ACQUIRE

#define LST_ACQUIRE (LS_TYPE_TICKET "-" LS_ACQUIRE)

macroLST_RELEASE

#define LST_RELEASE (LS_TYPE_TICKET "-" LS_RELEASE)

macroLST_SPIN

#define LST_SPIN (LS_TYPE_TICKET "-" LS_SPIN)