• Home
  • Raw
  • Download

Lines Matching refs:stats

296 	struct lock_class_stats stats;  in lock_stats()  local
299 memset(&stats, 0, sizeof(struct lock_class_stats)); in lock_stats()
304 for (i = 0; i < ARRAY_SIZE(stats.contention_point); i++) in lock_stats()
305 stats.contention_point[i] += pcs->contention_point[i]; in lock_stats()
307 for (i = 0; i < ARRAY_SIZE(stats.contending_point); i++) in lock_stats()
308 stats.contending_point[i] += pcs->contending_point[i]; in lock_stats()
310 lock_time_add(&pcs->read_waittime, &stats.read_waittime); in lock_stats()
311 lock_time_add(&pcs->write_waittime, &stats.write_waittime); in lock_stats()
313 lock_time_add(&pcs->read_holdtime, &stats.read_holdtime); in lock_stats()
314 lock_time_add(&pcs->write_holdtime, &stats.write_holdtime); in lock_stats()
316 for (i = 0; i < ARRAY_SIZE(stats.bounces); i++) in lock_stats()
317 stats.bounces[i] += pcs->bounces[i]; in lock_stats()
320 return stats; in lock_stats()
344 struct lock_class_stats *stats; in lock_release_holdtime() local
352 stats = get_lock_stats(hlock_class(hlock)); in lock_release_holdtime()
354 lock_time_inc(&stats->read_holdtime, holdtime); in lock_release_holdtime()
356 lock_time_inc(&stats->write_holdtime, holdtime); in lock_release_holdtime()
5801 struct lock_class_stats *stats; in __lock_contended() local
5828 stats = get_lock_stats(hlock_class(hlock)); in __lock_contended()
5830 stats->contention_point[contention_point]++; in __lock_contended()
5832 stats->contending_point[contending_point]++; in __lock_contended()
5834 stats->bounces[bounce_contended + !!hlock->read]++; in __lock_contended()
5842 struct lock_class_stats *stats; in __lock_acquired() local
5871 stats = get_lock_stats(hlock_class(hlock)); in __lock_acquired()
5874 lock_time_inc(&stats->read_waittime, waittime); in __lock_acquired()
5876 lock_time_inc(&stats->write_waittime, waittime); in __lock_acquired()
5879 stats->bounces[bounce_acquired + !!hlock->read]++; in __lock_acquired()