AVG_FACTOR
((cnt) = ((cnt) * (AVG_SIZE - 1) + (sample) * AVG_FACTOR) / AVG_SIZE)
#define GET_AVG_PERF_COUNTER(cnt) ((cnt) / AVG_FACTOR)