/* 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←