Lines Matching refs:lsp

1117 	lsrec_t *lsp, **current, **first, **sort_buf, **merge_buf;  in main()  local
1545 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++, in main()
1547 lsp = (lsrec_t *)((char *)lsp + g_recsize)) { in main()
1548 ev_count[lsp->ls_event] += lsp->ls_count; in main()
1549 ev_time[lsp->ls_event] += lsp->ls_time; in main()
1567 lsp = newlsp; in main()
1583 bcopy(oldlsp, lsp, LS_TIME); in main()
1584 lsp->ls_caller = oldlsp->ls_stack[fr]; in main()
1586 lsp->ls_lock = strdup(oldlsp->ls_lock); in main()
1589 lsp = (lsrec_t *)((char *)lsp + LS_TIME); in main()
1592 bcopy(oldlsp, lsp, LS_TIME); in main()
1594 lsp = (lsrec_t *)((char *)lsp + LS_TIME); in main()
1601 ((uintptr_t)lsp - (uintptr_t)newlsp) / LS_TIME; in main()
1617 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++, in main()
1619 lsp = (lsrec_t *)((char *)lsp + g_recsize)) { in main()
1620 if (lsp->ls_count == 0) in main()
1621 lsp->ls_event = LS_MAX_EVENTS; in main()
1622 sort_buf[i] = lsp; in main()
1631 sort_buf[i] = lsp; in main()
1632 lsp->ls_event = LS_MAX_EVENTS; in main()
1655 lsp = sort_buf[i]; in main()
1658 coalesce_symbol(&lsp->ls_lock); in main()
1662 coalesce_symbol(&lsp->ls_stack[fr]); in main()
1663 coalesce_symbol(&lsp->ls_caller); in main()
1706 while ((lsp = *current)->ls_event == event) in main()
1717 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++, in main()
1718 lsp = (lsrec_t *)((char *)lsp + g_recsize)) in main()
1719 free(lsp->ls_lock); in main()
1757 lsrec_t *lsp; in report_stats() local
1801 lsp = sort_buf[i]; in report_stats()
1810 lsp->ls_event, lsp->ls_count); in report_stats()
1813 format_symbol(buf, lsp->ls_lock, g_cflag)); in report_stats()
1815 (void) fprintf(out, " %s", lsp->ls_lock); in report_stats()
1818 format_symbol(buf, lsp->ls_caller, 0)); in report_stats()
1820 (double)lsp->ls_refcnt / lsp->ls_count); in report_stats()
1823 (unsigned long long)lsp->ls_time); in report_stats()
1827 lsp->ls_hist[j]); in report_stats()
1831 lsp->ls_stack[j] == 0) in report_stats()
1834 format_symbol(buf, lsp->ls_stack[j], 0)); in report_stats()
1852 percent = (lsp->ls_time * 100.00) / total_time; in report_stats()
1854 percent = (lsp->ls_count * 100.00) / total_count; in report_stats()
1860 (unsigned long long)(lsp->ls_time / lsp->ls_count)); in report_stats()
1865 g_rates == 0 ? lsp->ls_count : in report_stats()
1866 ((uint64_t)lsp->ls_count * NANOSEC) / g_elapsed); in report_stats()
1876 (double)lsp->ls_refcnt / lsp->ls_count, buf); in report_stats()
1880 format_symbol(buf, lsp->ls_lock, g_cflag)); in report_stats()
1882 (void) fprintf(out, "%-22s ", lsp->ls_lock); in report_stats()
1886 format_symbol(buf, lsp->ls_caller, 0)); in report_stats()
1899 while (lsp->ls_hist[first_bin] == 0) in report_stats()
1903 while (lsp->ls_hist[last_bin] == 0) in report_stats()
1909 total_bin_count += lsp->ls_hist[j]; in report_stats()
1910 if (lsp->ls_hist[j] > max_bin_count) in report_stats()
1911 max_bin_count = lsp->ls_hist[j]; in report_stats()
1918 if (lsp->ls_stack[fr] == lsp->ls_caller) in report_stats()
1922 uint_t depth = (lsp->ls_hist[j] * 30) / total_bin_count; in report_stats()
1927 g_rates == 0 ? lsp->ls_hist[j] : in report_stats()
1928 (uint_t)(((uint64_t)lsp->ls_hist[j] * NANOSEC) / in report_stats()
1930 if (rectype <= LS_STACK(fr) || lsp->ls_stack[fr] == 0) { in report_stats()
1935 format_symbol(buf, lsp->ls_stack[fr], 0)); in report_stats()
1938 while (rectype > LS_STACK(fr) && lsp->ls_stack[fr] != 0) { in report_stats()
1940 format_symbol(buf, lsp->ls_stack[fr], 0)); in report_stats()
1955 lsrec_t *lsp; in report_trace() local
1971 lsp = sort_buf[i]; in report_trace()
1973 if (lsp->ls_event >= LS_MAX_EVENTS || lsp->ls_count == 0) in report_trace()
1977 lsp->ls_event, (unsigned long long)lsp->ls_time, in report_trace()
1978 (void *)lsp->ls_next, in report_trace()
1980 format_symbol(buf, lsp->ls_lock, 0), in report_trace()
1982 lsp->ls_lock, in report_trace()
1984 format_symbol(buf2, lsp->ls_caller, 0)); in report_trace()
1993 if (lsp->ls_stack[fr] == lsp->ls_caller) in report_trace()
1996 while (rectype > LS_STACK(fr) && lsp->ls_stack[fr] != 0) { in report_trace()
1998 format_symbol(buf, lsp->ls_stack[fr], 0)); in report_trace()