Lines Matching defs:stats
83 #define INC_STAT(map, name) map->stats.name
127 if (gettimeofday(&bitmap->stats.created,
133 bitmap->stats.type = type;
179 struct ext2_bmap_statistics *stats = &bitmap->stats;
188 if (stats->test_count) {
189 test_seq_perc = ((float)stats->test_seq /
190 stats->test_count) * 100;
191 test_back_perc = ((float)stats->test_back /
192 stats->test_count) * 100;
195 if (stats->mark_count) {
196 mark_seq_perc = ((float)stats->mark_seq /
197 stats->mark_count) * 100;
198 mark_back_perc = ((float)stats->mark_back /
199 stats->mark_count) * 100;
210 inuse -= (double) stats->created.tv_sec + \
211 (((double) stats->created.tv_usec) * 0.000001);
214 stats->type);
220 stats->copy_count, stats->resize_count);
222 stats->mark_count, stats->unmark_count);
224 stats->test_count, stats->mark_ext_count);
227 stats->unmark_ext_count, stats->test_ext_count);
229 stats->set_range_count, stats->get_range_count);
231 stats->clear_count, stats->test_seq, test_seq_perc);
234 stats->mark_seq, mark_seq_perc,
235 stats->test_back, test_back_perc);
238 stats->mark_back, mark_back_perc, inuse);
297 src->stats.copy_count++;
300 if (gettimeofday(&new_bmap->stats.created,
306 new_bmap->stats.type = src->stats.type;
447 if (arg == bitmap->stats.last_marked + 1)
448 bitmap->stats.mark_seq++;
449 if (arg < bitmap->stats.last_marked)
450 bitmap->stats.mark_back++;
451 bitmap->stats.last_marked = arg;
452 bitmap->stats.mark_count++;
514 bitmap->stats.test_count++;
515 if (arg == bitmap->stats.last_tested + 1)
516 bitmap->stats.test_seq++;
517 if (arg < bitmap->stats.last_tested)
518 bitmap->stats.test_back++;
519 bitmap->stats.last_tested = arg;