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