]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common header files not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Wed, 27 Feb 2019 22:39:57 +0000 (14:39 -0800)
committerOliver Kurth <okurth@vmware.com>
Wed, 27 Feb 2019 22:39:57 +0000 (14:39 -0800)
open-vm-tools/lib/include/vm_assert.h
open-vm-tools/lib/include/vm_basic_defs.h

index f15d26aa001485a4f9cb1180a25c1dfa69f2084a..28671d45d01375effb18e3aa79c8a8266ae37f9d 100644 (file)
@@ -241,7 +241,7 @@ void WarningThrottled(uint32 *count, const char *fmt, ...) PRINTF_DECL(2, 3);
 
 #define NOT_TESTED_1024()                                               \
    do {                                                                 \
-      static VMM_ONLY(PERVCPU) uint16 count = 0;                        \
+      static MONITOR_ONLY(PERVCPU) uint16 count = 0;                    \
       if (UNLIKELY(count == 0)) { NOT_TESTED(); }                       \
       count = (count + 1) & 1023;                                       \
    } while (0)
index fea26acd6d83a0fa61cde1a4ed8dc1b708753706..cd3189fd9a36cd01d860283322083624d81b1d67 100644 (file)
@@ -711,6 +711,12 @@ typedef int pid_t;
 #define ULM_ONLY(x)
 #endif
 
+#if defined(VMM) || defined(ULVMM)
+#define MONITOR_ONLY(x) x
+#else
+#define MONITOR_ONLY(x)
+#endif
+
 #if defined(VMM) || defined(VMKERNEL)
 #define USER_ONLY(x)
 #else
@@ -759,7 +765,7 @@ typedef int pid_t;
 /* This is not intended to be thread-safe. */
 #define DO_ONCE(code)                                                   \
    do {                                                                 \
-      static VMM_ONLY(PERVCPU) Bool _doOnceDone = FALSE;                \
+      static MONITOR_ONLY(PERVCPU) Bool _doOnceDone = FALSE;            \
       if (UNLIKELY(!_doOnceDone)) {                                     \
          _doOnceDone = TRUE;                                            \
          code;                                                          \