]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to a common header file not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 21 Dec 2021 20:48:50 +0000 (12:48 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 21 Dec 2021 20:48:50 +0000 (12:48 -0800)
open-vm-tools/lib/include/vm_basic_defs.h

index 6d267331f665cbfd179e6815acc02caa78dffb78..733aa9c46fce84306de2095512794e8062896f32 100644 (file)
@@ -606,6 +606,13 @@ typedef int pid_t;
 #define DEBUG_ONLY(...)
 #endif
 
+#if defined(VMX86_DEBUG) || defined(VMX86_ENABLE_SPLOCK_STATS)
+#define LOCK_STATS_ON
+#define LOCK_STATS_ONLY(...)  __VA_ARGS__
+#else
+#define LOCK_STATS_ONLY(...)
+#endif
+
 #ifdef VMX86_STATS
 #define vmx86_stats   1
 #define STATS_ONLY(x) x