xstat: length check cm call info
authorMichael Meffie <mmeffie@sinenomine.net>
Mon, 10 Dec 2012 23:00:25 +0000 (18:00 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 21 Jan 2013 12:34:46 +0000 (04:34 -0800)
commit09c0484fd8878797957f7ff5936c542a0f6332c4
treec421301a5cc23e1a883dc8e3e363ddff19d9b0f0
parentdfe06c96c2c228a5cb7aeb0f123b73660a57543c
xstat: length check cm call info

Define the cm xstat function call counters with an xmacro to avoid
duplicating the list of cm function names.  This obviates the need
to update xstat_cm_test.c when new function names are added to the
cm xstat collection id 0.

Check the number of returned records when printing the function call
counts to avoid over-running when a newer xstat_cm_test client
receives data from an older cm.

Change-Id: I3c5470afb7b04167173b41bb576a4a6ec14753f7
Reviewed-on: http://gerrit.openafs.org/8741
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/afs/afs_stats.h
src/xstat/xstat_cm_test.c