Displaying 1 result from an estimated 1 matches for "avg_res".
Did you mean:
aggres
2012 May 29
0
[PATCH] xenpm: Fix reporting of C0 residence times
...int64_t diff = (int64_t)cxstat_end[i].residencies[j] -
+ (int64_t)cxstat_start[i].residencies[j];
+
+ res = ( diff >= 0 ) ? diff : 0;
triggers = cxstat_end[i].triggers[j] -
cxstat_start[i].triggers[j];
avg_res = (triggers==0) ? 0: (double)res/triggers/1000000.0;