diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2012-11-15 00:51:57 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2012-11-15 00:51:57 +0000 |
commit | 28d91af30fd06977789ee9556e0eb64a6a12c0cf (patch) | |
tree | dc9bfdaab60c5892bec647736baab766ea8ee213 /sys/sparc64 | |
parent | b32ecf44bcee1c4daec4f51442fad76e5b0849ea (diff) | |
download | src-28d91af30fd06977789ee9556e0eb64a6a12c0cf.tar.gz src-28d91af30fd06977789ee9556e0eb64a6a12c0cf.zip |
- Implement run-time expansion of the KTR buffer via sysctl.
- Implement a function to ensure that all preempted threads have switched
back out at least once. Use this to make sure there are no stale
references to the old ktr_buf or the lock profiling buffers before
updating them.
Reviewed by: marius (sparc64 parts), attilio (earlier patch)
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=243046
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/include/ktr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sparc64/include/ktr.h b/sys/sparc64/include/ktr.h index f13865f1a27e..0a7f0e125367 100644 --- a/sys/sparc64/include/ktr.h +++ b/sys/sparc64/include/ktr.h @@ -58,6 +58,7 @@ l2: add r2, 1, r3 ; \ bne %icc, l2 ## b ; \ mov r3, r2 ; \ SET(ktr_buf, r3, r1) ; \ + ldx [r1], r1 ; \ mulx r2, KTR_SIZEOF, r2 ; \ add r1, r2, r1 ; \ rd %tick, r2 ; \ |