aboutsummaryrefslogtreecommitdiff
path: root/packages/libblocksruntime/(public-mirror)
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-08-21 13:15:22 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-10-10 18:28:33 +0000
commitbbfd52dcbeb7b6e540220b3b24b664df6d200200 (patch)
treea357569443e08df8d9cd79fc3026e3224c295591 /packages/libblocksruntime/(public-mirror)
parent9820afb99e6fdc471cb820f321530c52ed2c31ac (diff)
LinuxKPI: use LINUXKPI_DEBUG to determine on witness lock tracingHEADmain
LinuxKPI by default tells witness to ignore the locks, which is unhelpful in case of panics like 'panic: sleeping thread holds lnxspin'. While I have edited the lock initialitzation manually in the past, make this dependent on both LINUXKPI_DEBUG and WITNESS. Define an internal _LKPI_MTX_NOWITNESS (and equivalent for other lock types used) and set them accordingly in kconfig.h, a file automatically included to all LinuxKPI compiled code (like global.h). (*) In addition, in the debug case, also define WITNESS_ALL to get file, line, and lock name as a lock name rather than just, e.g., lnxspin. (*) We will need another follow-up as -include ordering is currently wrong for LinuxKPI modules. See D60207. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D59231
Diffstat (limited to 'packages/libblocksruntime/(public-mirror)')
0 files changed, 0 insertions, 0 deletions