#include <afsconfig.h>
#include <afs/param.h>
+#include <assert.h>
#include <roken.h>
#include <afs/afsint.h>
void
fsstats_StartOp(struct fsstats *stats, int index)
{
+ assert(index >= 0 && index < FS_STATS_NUM_RPC_OPS);
stats->opP = &(afs_FullPerfStats.det.rpcOpTimes[index]);
FS_LOCK;
(stats->opP->numOps)++;
void
fsstats_StartXfer(struct fsstats *stats, int index)
{
+ assert(index >= 0 && index < FS_STATS_NUM_XFER_OPS);
FT_GetTimeOfDay(&stats->xferStartTime, NULL);
stats->xferP = &(afs_FullPerfStats.det.xferOpTimes[index]);
}