diff options
author | Patrick Mooney <pmooney@pfmooney.com> | 2022-07-18 16:32:23 +0000 |
---|---|---|
committer | Patrick Mooney <pmooney@oxide.computer> | 2022-08-13 02:56:10 +0000 |
commit | ee6ee36a8ff1701c4e61e6f118446b145220478c (patch) | |
tree | 094eda19a08704568b0fa0eb8ba69285bef9f3f7 /usr/src/uts/common/sys/lockstat.h | |
parent | 64439ec0071c576648f76b4466ad6ee7a580ed33 (diff) | |
download | illumos-gate-ee6ee36a8ff1701c4e61e6f118446b145220478c.tar.gz |
14838 Rename erratum 147 handling
14839 Untangle erratum 147 from lockstat
14840 Modernize lockstat probes
14865 mutex_tryenter:adaptive-acquire probe never fires
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Dan McDonald <danmcd@mnx.io>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src/uts/common/sys/lockstat.h')
-rw-r--r-- | usr/src/uts/common/sys/lockstat.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/src/uts/common/sys/lockstat.h b/usr/src/uts/common/sys/lockstat.h index 308b96326c..f2a10dcc6b 100644 --- a/usr/src/uts/common/sys/lockstat.h +++ b/usr/src/uts/common/sys/lockstat.h @@ -26,8 +26,6 @@ #ifndef _SYS_LOCKSTAT_H #define _SYS_LOCKSTAT_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/dtrace.h> #ifdef __cplusplus @@ -123,7 +121,7 @@ extern void (*lockstat_probe)(dtrace_id_t, uintptr_t, uintptr_t, extern int lockstat_active_threads(void); extern int lockstat_depth(void); -extern void lockstat_hot_patch(void); +extern void lockstat_hotpatch_probe(int); /* * Macros to record lockstat probes. @@ -175,10 +173,10 @@ extern void lockstat_hot_patch(void); if (t_spin) { \ t_spin = gethrtime_waitfree() - t_spin; \ t_spin = CLAMP32(t_spin); \ - } \ + } \ (*lockstat_probe)(id, (uintptr_t)(lp), t_spin, \ 0, 0, 0); \ - } \ + } \ curthread->t_lockstat--; \ } |