Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/lockstat.h
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | |||||
#define LOCKSTAT_PROFILE_RELEASE_LOCK(probe, lp) do { \ | #define LOCKSTAT_PROFILE_RELEASE_LOCK(probe, lp) do { \ | ||||
uint32_t id; \ | uint32_t id; \ | ||||
\ | \ | ||||
lock_profile_release_lock(&(lp)->lock_object); \ | lock_profile_release_lock(&(lp)->lock_object); \ | ||||
if ((id = lockstat_probemap[(probe)])) \ | if ((id = lockstat_probemap[(probe)])) \ | ||||
(*lockstat_probe_func)(id, (uintptr_t)(lp), 0, 0, 0, 0); \ | (*lockstat_probe_func)(id, (uintptr_t)(lp), 0, 0, 0, 0); \ | ||||
} while (0) | } while (0) | ||||
#define LOCKSTAT_WRITER 0 | |||||
#define LOCKSTAT_READER 1 | |||||
#else /* !KDTRACE_HOOKS */ | #else /* !KDTRACE_HOOKS */ | ||||
#define LOCKSTAT_RECORD(probe, lp, arg1) | #define LOCKSTAT_RECORD(probe, lp, arg1) | ||||
#define LOCKSTAT_RECORD0(probe, lp) | #define LOCKSTAT_RECORD0(probe, lp) | ||||
#define LOCKSTAT_RECORD1(probe, lp, arg1) | #define LOCKSTAT_RECORD1(probe, lp, arg1) | ||||
#define LOCKSTAT_RECORD2(probe, lp, arg1, arg2) | #define LOCKSTAT_RECORD2(probe, lp, arg1, arg2) | ||||
#define LOCKSTAT_RECORD3(probe, lp, arg1, arg2, arg3) | #define LOCKSTAT_RECORD3(probe, lp, arg1, arg2, arg3) | ||||
#define LOCKSTAT_RECORD4(probe, lp, arg1, arg2, arg3, arg4) | #define LOCKSTAT_RECORD4(probe, lp, arg1, arg2, arg3, arg4) | ||||
Show All 12 Lines |