Lines Matching full:ls

404 	struct lock_stat *ls;  in report_lock_acquire_event()  local
413 ls = lock_stat_findnew(addr, name); in report_lock_acquire_event()
414 if (!ls) in report_lock_acquire_event()
416 if (ls->discard) in report_lock_acquire_event()
434 ls->nr_trylock++; in report_lock_acquire_event()
436 ls->nr_readlock++; in report_lock_acquire_event()
439 ls->nr_acquired++; in report_lock_acquire_event()
445 ls->nr_acquired++; in report_lock_acquire_event()
456 ls->discard = 1; in report_lock_acquire_event()
466 ls->nr_acquire++; in report_lock_acquire_event()
476 struct lock_stat *ls; in report_lock_acquired_event() local
485 ls = lock_stat_findnew(addr, name); in report_lock_acquired_event()
486 if (!ls) in report_lock_acquired_event()
488 if (ls->discard) in report_lock_acquired_event()
507 ls->wait_time_total += contended_term; in report_lock_acquired_event()
508 if (contended_term < ls->wait_time_min) in report_lock_acquired_event()
509 ls->wait_time_min = contended_term; in report_lock_acquired_event()
510 if (ls->wait_time_max < contended_term) in report_lock_acquired_event()
511 ls->wait_time_max = contended_term; in report_lock_acquired_event()
517 ls->discard = 1; in report_lock_acquired_event()
528 ls->nr_acquired++; in report_lock_acquired_event()
529 ls->avg_wait_time = ls->nr_contended ? ls->wait_time_total/ls->nr_contended : 0; in report_lock_acquired_event()
539 struct lock_stat *ls; in report_lock_contended_event() local
547 ls = lock_stat_findnew(addr, name); in report_lock_contended_event()
548 if (!ls) in report_lock_contended_event()
550 if (ls->discard) in report_lock_contended_event()
572 ls->discard = 1; in report_lock_contended_event()
583 ls->nr_contended++; in report_lock_contended_event()
584 ls->avg_wait_time = ls->wait_time_total/ls->nr_contended; in report_lock_contended_event()
594 struct lock_stat *ls; in report_lock_release_event() local
602 ls = lock_stat_findnew(addr, name); in report_lock_release_event()
603 if (!ls) in report_lock_release_event()
605 if (ls->discard) in report_lock_release_event()
625 ls->nr_release++; in report_lock_release_event()
633 ls->discard = 1; in report_lock_release_event()
641 ls->nr_release++; in report_lock_release_event()