Lines Matching defs:lsrec_t
64 } lsrec_t;
76 #define LS_BASIC offsetof(lsrec_t, ls_time)
77 #define LS_TIME offsetof(lsrec_t, ls_hist[0])
78 #define LS_HIST offsetof(lsrec_t, ls_stack[0])
79 #define LS_STACK(depth) offsetof(lsrec_t, ls_stack[depth])
81 static void report_stats(FILE *, lsrec_t **, size_t, uint64_t, uint64_t);
82 static void report_trace(FILE *, lsrec_t **);
323 lockcmp(lsrec_t *a, lsrec_t *b)
353 countcmp(lsrec_t *a, lsrec_t *b)
364 timecmp(lsrec_t *a, lsrec_t *b)
380 lockcmp_anywhere(lsrec_t *a, lsrec_t *b)
396 lock_and_count_cmp_anywhere(lsrec_t *a, lsrec_t *b)
412 sitecmp_anylock(lsrec_t *a, lsrec_t *b)
437 site_and_count_cmp_anylock(lsrec_t *a, lsrec_t *b)
462 mergesort(int (*cmp)(lsrec_t *, lsrec_t *), lsrec_t **a, lsrec_t **b, int n)
481 coalesce(int (*cmp)(lsrec_t *, lsrec_t *), lsrec_t **lock, int n)
484 lsrec_t *target, *current;
843 lsrec_fill(lsrec_t *lsrec, const dtrace_recdesc_t *rec, int nrecs, caddr_t data)
900 lsrec_t *lsrec = lsdata->lsd_next;
957 lsdata->lsd_next = (lsrec_t *)((uintptr_t)lsrec + g_recsize);
967 lsrec_t *lsrec = lsdata->lsd_next;
976 lsdata->lsd_next = (lsrec_t *)((uintptr_t)lsrec + g_recsize);
988 lsdata.lsd_next = (lsrec_t *)data;
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)) {
1447 lsrec_t *newlsp, *oldlsp;
1455 for (i = 0, oldlsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++,
1457 oldlsp = (lsrec_t *)((char *)oldlsp + g_recsize)) {
1472 lsp = (lsrec_t *)((char *)lsp + LS_TIME);
1477 lsp = (lsrec_t *)((char *)lsp + LS_TIME);
1497 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++,
1499 lsp = (lsrec_t *)((char *)lsp + g_recsize)) {
1618 report_stats(FILE *out, lsrec_t **sort_buf, size_t nrecs, uint64_t total_count,
1622 lsrec_t *lsp;
1810 report_trace(FILE *out, lsrec_t **sort_buf)
1812 lsrec_t *lsp;