]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/host_statistics.h
xnu-4570.41.2.tar.gz
[apple/xnu.git] / osfmk / kern / host_statistics.h
index 582105edca2b86875a09885e442107c695935fda..c67af697e073120abc0a8403ec6218a87ab17631 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2009 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
 #include <kern/processor.h>
 
 
-#define        VM_STAT_INCR(event)                                                                     \
-MACRO_BEGIN                                                                                    \
-       OSAddAtomic(1, (SInt32 *)(&(PROCESSOR_DATA(current_processor(), vm_stat).event)));      \
+#define VM_STAT_INCR(event)                                                                    \
+MACRO_BEGIN                                                                                    \
+       OSAddAtomic64(1, (SInt64 *) (&(PROCESSOR_DATA(current_processor(), vm_stat).event)));   \
+MACRO_END
+
+#define VM_STAT_INCR_BY(event, amount)                                                         \
+MACRO_BEGIN                                                                                    \
+       OSAddAtomic64((amount), (SInt64 *) (&(PROCESSOR_DATA(current_processor(), vm_stat).event)));    \
 MACRO_END
 
 #endif /* _KERN_HOST_STATISTICS_H_ */