Lines Matching refs:lsp
1019 lsrec_t *lsp, **current, **first, **sort_buf, **merge_buf; in main() local
1436 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++, in main()
1438 lsp = (lsrec_t *)((char *)lsp + g_recsize)) { in main()
1439 ev_count[lsp->ls_event] += lsp->ls_count; in main()
1440 ev_time[lsp->ls_event] += lsp->ls_time; in main()
1453 lsp = newlsp; in main()
1469 bcopy(oldlsp, lsp, LS_TIME); in main()
1470 lsp->ls_caller = oldlsp->ls_stack[fr]; in main()
1472 lsp = (lsrec_t *)((char *)lsp + LS_TIME); in main()
1475 bcopy(oldlsp, lsp, LS_TIME); in main()
1477 lsp = (lsrec_t *)((char *)lsp + LS_TIME); in main()
1481 ((uintptr_t)lsp - (uintptr_t)newlsp) / LS_TIME; in main()
1497 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++, in main()
1499 lsp = (lsrec_t *)((char *)lsp + g_recsize)) { in main()
1500 if (lsp->ls_count == 0) in main()
1501 lsp->ls_event = LS_MAX_EVENTS; in main()
1502 sort_buf[i] = lsp; in main()
1511 sort_buf[i] = lsp; in main()
1512 lsp->ls_event = LS_MAX_EVENTS; in main()
1535 lsp = sort_buf[i]; in main()
1537 coalesce_symbol(&lsp->ls_lock); in main()
1540 coalesce_symbol(&lsp->ls_stack[fr]); in main()
1541 coalesce_symbol(&lsp->ls_caller); in main()
1584 while ((lsp = *current)->ls_event == event) in main()
1622 lsrec_t *lsp; in report_stats() local
1666 lsp = sort_buf[i]; in report_stats()
1675 lsp->ls_event, lsp->ls_count); in report_stats()
1677 format_symbol(buf, lsp->ls_lock, g_cflag)); in report_stats()
1679 format_symbol(buf, lsp->ls_caller, 0)); in report_stats()
1681 (double)lsp->ls_refcnt / lsp->ls_count); in report_stats()
1684 (unsigned long long)lsp->ls_time); in report_stats()
1688 lsp->ls_hist[j]); in report_stats()
1692 lsp->ls_stack[j] == 0) in report_stats()
1695 format_symbol(buf, lsp->ls_stack[j], 0)); in report_stats()
1713 percent = (lsp->ls_time * 100.00) / total_time; in report_stats()
1715 percent = (lsp->ls_count * 100.00) / total_count; in report_stats()
1721 (unsigned long long)(lsp->ls_time / lsp->ls_count)); in report_stats()
1726 g_rates == 0 ? lsp->ls_count : in report_stats()
1727 ((uint64_t)lsp->ls_count * NANOSEC) / g_elapsed); in report_stats()
1737 (double)lsp->ls_refcnt / lsp->ls_count, buf); in report_stats()
1740 format_symbol(buf, lsp->ls_lock, g_cflag)); in report_stats()
1743 format_symbol(buf, lsp->ls_caller, 0)); in report_stats()
1756 while (lsp->ls_hist[first_bin] == 0) in report_stats()
1760 while (lsp->ls_hist[last_bin] == 0) in report_stats()
1766 total_bin_count += lsp->ls_hist[j]; in report_stats()
1767 if (lsp->ls_hist[j] > max_bin_count) in report_stats()
1768 max_bin_count = lsp->ls_hist[j]; in report_stats()
1775 if (lsp->ls_stack[fr] == lsp->ls_caller) in report_stats()
1779 uint_t depth = (lsp->ls_hist[j] * 30) / total_bin_count; in report_stats()
1784 g_rates == 0 ? lsp->ls_hist[j] : in report_stats()
1785 (uint_t)(((uint64_t)lsp->ls_hist[j] * NANOSEC) / in report_stats()
1787 if (rectype <= LS_STACK(fr) || lsp->ls_stack[fr] == 0) { in report_stats()
1792 format_symbol(buf, lsp->ls_stack[fr], 0)); in report_stats()
1795 while (rectype > LS_STACK(fr) && lsp->ls_stack[fr] != 0) { in report_stats()
1797 format_symbol(buf, lsp->ls_stack[fr], 0)); in report_stats()
1812 lsrec_t *lsp; in report_trace() local
1828 lsp = sort_buf[i]; in report_trace()
1830 if (lsp->ls_event >= LS_MAX_EVENTS || lsp->ls_count == 0) in report_trace()
1834 lsp->ls_event, (unsigned long long)lsp->ls_time, in report_trace()
1835 (void *)lsp->ls_next, in report_trace()
1836 format_symbol(buf, lsp->ls_lock, 0), in report_trace()
1837 format_symbol(buf2, lsp->ls_caller, 0)); in report_trace()
1846 if (lsp->ls_stack[fr] == lsp->ls_caller) in report_trace()
1849 while (rectype > LS_STACK(fr) && lsp->ls_stack[fr] != 0) { in report_trace()
1851 format_symbol(buf, lsp->ls_stack[fr], 0)); in report_trace()