Lines Matching refs:lsp

1064 	lsrec_t *lsp, **current, **first, **sort_buf, **merge_buf;
1490 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++,
1492 lsp = (lsrec_t *)((char *)lsp + g_recsize)) {
1493 ev_count[lsp->ls_event] += lsp->ls_count;
1494 ev_time[lsp->ls_event] += lsp->ls_time;
1512 lsp = newlsp;
1528 bcopy(oldlsp, lsp, LS_TIME);
1529 lsp->ls_caller = oldlsp->ls_stack[fr];
1531 lsp = (lsrec_t *)((char *)lsp + LS_TIME);
1534 bcopy(oldlsp, lsp, LS_TIME);
1536 lsp = (lsrec_t *)((char *)lsp + LS_TIME);
1540 ((uintptr_t)lsp - (uintptr_t)newlsp) / LS_TIME;
1556 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++,
1558 lsp = (lsrec_t *)((char *)lsp + g_recsize)) {
1559 if (lsp->ls_count == 0)
1560 lsp->ls_event = LS_MAX_EVENTS;
1561 sort_buf[i] = lsp;
1570 sort_buf[i] = lsp;
1571 lsp->ls_event = LS_MAX_EVENTS;
1594 lsp = sort_buf[i];
1596 coalesce_symbol(&lsp->ls_lock);
1599 coalesce_symbol(&lsp->ls_stack[fr]);
1600 coalesce_symbol(&lsp->ls_caller);
1643 while ((lsp = *current)->ls_event == event)
1685 lsrec_t *lsp;
1729 lsp = sort_buf[i];
1738 lsp->ls_event, lsp->ls_count);
1740 format_symbol(buf, lsp->ls_lock, g_cflag));
1742 format_symbol(buf, lsp->ls_caller, 0));
1744 (double)lsp->ls_refcnt / lsp->ls_count);
1747 (unsigned long long)lsp->ls_time);
1751 lsp->ls_hist[j]);
1755 lsp->ls_stack[j] == 0)
1758 format_symbol(buf, lsp->ls_stack[j], 0));
1776 percent = (lsp->ls_time * 100.00) / total_time;
1778 percent = (lsp->ls_count * 100.00) / total_count;
1784 (unsigned long long)(lsp->ls_time / lsp->ls_count));
1789 g_rates == 0 ? lsp->ls_count :
1790 ((uint64_t)lsp->ls_count * NANOSEC) / g_elapsed);
1800 (double)lsp->ls_refcnt / lsp->ls_count, buf);
1803 format_symbol(buf, lsp->ls_lock, g_cflag));
1806 format_symbol(buf, lsp->ls_caller, 0));
1819 while (lsp->ls_hist[first_bin] == 0)
1823 while (lsp->ls_hist[last_bin] == 0)
1829 total_bin_count += lsp->ls_hist[j];
1830 if (lsp->ls_hist[j] > max_bin_count)
1831 max_bin_count = lsp->ls_hist[j];
1838 if (lsp->ls_stack[fr] == lsp->ls_caller)
1842 uint_t depth = (lsp->ls_hist[j] * 30) / total_bin_count;
1847 g_rates == 0 ? lsp->ls_hist[j] :
1848 (uint_t)(((uint64_t)lsp->ls_hist[j] * NANOSEC) /
1850 if (rectype <= LS_STACK(fr) || lsp->ls_stack[fr] == 0) {
1855 format_symbol(buf, lsp->ls_stack[fr], 0));
1858 while (rectype > LS_STACK(fr) && lsp->ls_stack[fr] != 0) {
1860 format_symbol(buf, lsp->ls_stack[fr], 0));
1875 lsrec_t *lsp;
1891 lsp = sort_buf[i];
1893 if (lsp->ls_event >= LS_MAX_EVENTS || lsp->ls_count == 0)
1897 lsp->ls_event, (unsigned long long)lsp->ls_time,
1898 (void *)lsp->ls_next,
1899 format_symbol(buf, lsp->ls_lock, 0),
1900 format_symbol(buf2, lsp->ls_caller, 0));
1909 if (lsp->ls_stack[fr] == lsp->ls_caller)
1912 while (rectype > LS_STACK(fr) && lsp->ls_stack[fr] != 0) {
1914 format_symbol(buf, lsp->ls_stack[fr], 0));