Project

General

Profile

Actions

Bug #14865

closed

mutex_tryenter:adaptive-acquire probe never fires

Added by Patrick Mooney about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
kernel
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

The lockstat probe for mutex_tryenter acquisition never seems to fire. As it turns out, that lock primitive has been passing the wrong argument to the lockstat probe for a long time:

        movq    %rdi, %rsi
        movl    $LS_MUTEX_ENTER_ACQUIRE, %edi
        jmp     lockstat_wrapper
        SET_SIZE(mutex_tryenter)

The LS_MUTEX_ENTER_ACQUIRE should be LS_MUTEX_TRYENTER_ACQUIRE instead.


Related issues

Related to illumos gate - Bug #14840: Modernize lockstat probesClosedPatrick Mooney

Actions
Actions

Also available in: Atom PDF