/* begincopyright Copyright (c) 1988 Xerox Corporation. All rights reserved. Use and copying of this software and preparation of derivative works based upon this software are permitted. Any distribution of this software or derivative works must comply with all applicable United States export control laws. This software is made available AS IS, and Xerox Corporation makes no warranty about the software, its performance or its conformity to any specification. Any person obtaining a copy of this software is requested to send their name and post office or electronic mail address to: PCR Coordinator Xerox PARC 3333 Coyote Hill Rd. Palo Alto, CA endcopyright */ /* * ThreadsStatsPrivate.h * * Demers, October 27, 1988 3:36:09 pm PDT * * Xerox threads package statistics. */ #ifndef _XR_THREADS_STATS_PRIVATE_ #define _XR_THREADS_STATS_PRIVATE_ 1 #ifndef _XR_THREADS_BACKDOOR_ #include "ThreadsBackdoor.h" #endif #define XR_STATS 0 #if XR_STATS # define XR_IncStats(index, increment) \ { XR_sysArea->sa_stats[index] += increment; } #else # define XR_IncStats(index, increment) \ { } #endif #define XR_STATS_Switch 0 #define XR_STATS_SwitchIdle 1 #define XR_STATS_SwStack 2 #define XR_STATS_SwThread 3 #define XR_STATS_HndResched 4 #define XR_STATS_WhenHndResched 5 #define XR_STATS_HndAlarm 6 #define XR_STATS_WhenHndAlarm 7 #define XR_STATS_HndIntr 8 #define XR_STATS_WhenHndIntr 9 #define XR_STATS_HndTtin 10 #define XR_STATS_WhenHndTtin 11 #define XR_STATS_UIO_IOPOpenF 20 #define XR_STATS_UIO_IOPWrongDescriptor 21 #define XR_STATS_UIO_Close 22 #define XR_STATS_UIO_SendDescriptor 23 #define XR_STATS_UIO_WaitReady 24 #define XR_STATS_UIO_WaitReadyCancel 25 #define XR_STATS_UIO_WaitFDELocked 26 #define XR_STATS_UIO_IOPSocket 27 #define XR_STATS_UIO_IOPDup2 28 #define XR_STATS_LAST 28 #endif _XR_THREADS_STATS_PRIVATE_