Lines Matching refs:ls
256 struct lock_stat *ls) \
258 pr_info("%*llu", key->len, (unsigned long long)ls->member); \
268 struct lock_stat *ls) in PRINT_KEY()
270 u64 wait_time = ls->wait_time_min; in PRINT_KEY()
539 struct lock_stat *ls; in report_lock_acquire_event() local
550 ls = lock_stat_findnew(addr, name); in report_lock_acquire_event()
551 if (!ls) in report_lock_acquire_event()
569 ls->nr_trylock++; in report_lock_acquire_event()
571 ls->nr_readlock++; in report_lock_acquire_event()
574 ls->nr_acquired++; in report_lock_acquire_event()
580 ls->nr_acquired++; in report_lock_acquire_event()
591 if (!ls->broken) { in report_lock_acquire_event()
592 ls->broken = 1; in report_lock_acquire_event()
603 ls->nr_acquire++; in report_lock_acquire_event()
612 struct lock_stat *ls; in report_lock_acquired_event() local
622 ls = lock_stat_findnew(addr, name); in report_lock_acquired_event()
623 if (!ls) in report_lock_acquired_event()
642 ls->wait_time_total += contended_term; in report_lock_acquired_event()
643 if (contended_term < ls->wait_time_min) in report_lock_acquired_event()
644 ls->wait_time_min = contended_term; in report_lock_acquired_event()
645 if (ls->wait_time_max < contended_term) in report_lock_acquired_event()
646 ls->wait_time_max = contended_term; in report_lock_acquired_event()
652 if (!ls->broken) { in report_lock_acquired_event()
653 ls->broken = 1; in report_lock_acquired_event()
665 ls->nr_acquired++; in report_lock_acquired_event()
666 ls->avg_wait_time = ls->nr_contended ? ls->wait_time_total/ls->nr_contended : 0; in report_lock_acquired_event()
675 struct lock_stat *ls; in report_lock_contended_event() local
684 ls = lock_stat_findnew(addr, name); in report_lock_contended_event()
685 if (!ls) in report_lock_contended_event()
707 if (!ls->broken) { in report_lock_contended_event()
708 ls->broken = 1; in report_lock_contended_event()
720 ls->nr_contended++; in report_lock_contended_event()
721 ls->avg_wait_time = ls->wait_time_total/ls->nr_contended; in report_lock_contended_event()
730 struct lock_stat *ls; in report_lock_release_event() local
739 ls = lock_stat_findnew(addr, name); in report_lock_release_event()
740 if (!ls) in report_lock_release_event()
760 ls->nr_release++; in report_lock_release_event()
768 if (!ls->broken) { in report_lock_release_event()
769 ls->broken = 1; in report_lock_release_event()
778 ls->nr_release++; in report_lock_release_event()