History log of /openbsd-current/sys/sys/witness.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.5 23-Apr-2019 visa

Remove file name and line number output from witness(4)

Reduce code clutter by removing the file name and line number output
from witness(4). Typically it is easy enough to locate offending locks
using the stack traces that are shown in lock order conflict reports.
Tricky cases can be tracked using sysctl kern.witness.locktrace=1 .

This patch additionally removes the witness(4) wrapper for mutexes.
Now each mutex implementation has to invoke the WITNESS_*() macros
in order to utilize the checker.

Discussed with and OK dlg@, OK mpi@


Revision tags: OPENBSD_6_5_BASE
# 1.4 29-Jan-2019 visa

Add a dedicated sysctl(2) node for witness(4).

The new node contains the subsystem's main control variable,
kern.witness.watch. It is aliased by the old name, kern.witnesswatch.
The alias will be removed in the future.

OK anton@ mpi@


Revision tags: OPENBSD_6_4_BASE
# 1.3 08-Jun-2018 guenther

Constipate all the struct lock_type's so they go into .rodata

ok visa@


# 1.2 16-May-2018 visa

Add kern.witnesswatch sysctl for controlling witness(4). By default,
lock order checking is disabled but it can be enabled at runtime.

Suggested by deraadt@ / mpi@
OK mpi@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.1 20-Apr-2017 visa

Add a port of witness(4) lock validation tool from FreeBSD.

Go-ahead from kettenis@, guenther@, deraadt@


# 1.4 29-Jan-2019 visa

Add a dedicated sysctl(2) node for witness(4).

The new node contains the subsystem's main control variable,
kern.witness.watch. It is aliased by the old name, kern.witnesswatch.
The alias will be removed in the future.

OK anton@ mpi@


Revision tags: OPENBSD_6_4_BASE
# 1.3 08-Jun-2018 guenther

Constipate all the struct lock_type's so they go into .rodata

ok visa@


# 1.2 16-May-2018 visa

Add kern.witnesswatch sysctl for controlling witness(4). By default,
lock order checking is disabled but it can be enabled at runtime.

Suggested by deraadt@ / mpi@
OK mpi@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.1 20-Apr-2017 visa

Add a port of witness(4) lock validation tool from FreeBSD.

Go-ahead from kettenis@, guenther@, deraadt@


# 1.3 08-Jun-2018 guenther

Constipate all the struct lock_type's so they go into .rodata

ok visa@


# 1.2 16-May-2018 visa

Add kern.witnesswatch sysctl for controlling witness(4). By default,
lock order checking is disabled but it can be enabled at runtime.

Suggested by deraadt@ / mpi@
OK mpi@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.1 20-Apr-2017 visa

Add a port of witness(4) lock validation tool from FreeBSD.

Go-ahead from kettenis@, guenther@, deraadt@