Page MenuHomeFreeBSD

Fix lockstat:::thread-spin dtrace probe with LOCK_PROFILING
ClosedPublic

Authored by vangyzen on Aug 2 2021, 6:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 11:11 PM
Unknown Object (File)
Mar 9 2024, 8:57 AM
Unknown Object (File)
Mar 9 2024, 8:57 AM
Unknown Object (File)
Mar 9 2024, 8:46 AM
Unknown Object (File)
Feb 22 2024, 4:57 PM
Unknown Object (File)
Feb 7 2024, 8:24 PM
Unknown Object (File)
Jan 7 2024, 10:37 AM
Unknown Object (File)
Jan 7 2024, 10:28 AM
Subscribers

Details

Summary

The spinning start time is missing from the calculation due to a
misplaced #endif. Return the #endif where it's supposed to be.

Submitted by: Alexander Alexeev <aalexeev@isilon.com>
MFC after: 1 week
Sponsored by: Dell EMC Isilon

Test Plan

From the submitter:

Without

dtrace -n 'lockstat:::thread-spin { trace((int64_t)arg1); exit(0); }'
dtrace: description 'lockstat:::thread-spin ' matched 1 probe
CPU     ID                    FUNCTION:NAME
 18  79691                 none:thread-spin     3878139600799

With

dtrace -n 'lockstat:::thread-spin { trace((uint64_t)arg1); exit(0); }'

dtrace: description 'lockstat:::thread-spin ' matched 1 probe
CPU     ID                    FUNCTION:NAME
  3  79618                 none:thread-spin               838

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable