CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/07/31 01:11:35
Modified files:
sys/dev : kcov.c
Log message:
Make writes to the coverage buffer MP-safe using atomic operations.
The new routine kd_claim() returns the next available entry in the
buffer. Since the first element in the buffer is reserved to hold the
number of entries, zero can be used as a sentinel value meaning that the
buffer is full.
A mere preparation for upcoming remote coverage support in which the
buffer can be accessed by multiple threads concurrently.
ok mpi@ as part of a larger diff