diff options
author | des <des@FreeBSD.org> | 2002-04-02 14:42:01 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-02 14:42:01 +0000 |
commit | cbcf839df44a6aa4619246bf27b742ddf62dad25 (patch) | |
tree | 545848546500c62463b615e478304b01029aa22b /sys/sys/_mutex.h | |
parent | f47a79c6730e82bef42ff6477a29612f18447d8c (diff) | |
download | FreeBSD-src-cbcf839df44a6aa4619246bf27b742ddf62dad25.zip FreeBSD-src-cbcf839df44a6aa4619246bf27b742ddf62dad25.tar.gz |
Instead of get_cyclecount(9), use nanotime(9) to record acquisition and
release times. Measurements are made and stored in nanoseconds but
presented in microseconds, which should be sufficient for the locks for
which we actually want this (those that are held long and / or often).
Also, rename some variables and structure members to unit-agnostic names.
Diffstat (limited to 'sys/sys/_mutex.h')
-rw-r--r-- | sys/sys/_mutex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/_mutex.h b/sys/sys/_mutex.h index 0fd05df..928af17 100644 --- a/sys/sys/_mutex.h +++ b/sys/sys/_mutex.h @@ -42,7 +42,7 @@ struct mtx { TAILQ_HEAD(, thread) mtx_blocked; /* threads blocked on this lock */ LIST_ENTRY(mtx) mtx_contested; /* list of all contested locks */ /* #ifdef MUTEX_PROFILING */ - u_int64_t cycles; + u_int64_t acqtime; const char *file; int line; /* #endif */ |