Lines Matching defs:sortbuffer
260 struct pmcstat_cgnode **sortbuffer, **cgn, *pcg;
302 if ((sortbuffer = (struct pmcstat_cgnode **)
306 cgn = sortbuffer;
311 assert(cgn - sortbuffer == (int) cg->pcg_nchildren);
313 qsort(sortbuffer, cg->pcg_nchildren, sizeof(struct pmcstat_cgnode *),
316 for (cgn = sortbuffer, n = 0; n < cg->pcg_nchildren; n++, cgn++)
319 free(sortbuffer);
411 struct pmcstat_cgnode **sortbuffer, **cgn;
423 if ((sortbuffer = (struct pmcstat_cgnode **)
427 cgn = sortbuffer;
436 nentries = cgn - sortbuffer;
440 free(sortbuffer);
444 qsort(sortbuffer, nentries, sizeof(struct pmcstat_cgnode *),
452 for (cgn = sortbuffer, n = 0; n < nentries; n++, cgn++) {
458 free(sortbuffer);
482 struct pmcstat_cgnode **sortbuffer, **cgn, *pcg;
528 if ((sortbuffer = (struct pmcstat_cgnode **)
532 cgn = sortbuffer;
537 assert(cgn - sortbuffer == (int)nchildren);
539 qsort(sortbuffer, nchildren, sizeof(struct pmcstat_cgnode *),
543 for (cgn = sortbuffer, n = 0; n < nchildren; n++, cgn++) {
552 for (cgn = sortbuffer, n = 0; n < nchildren; n++, cgn++) {
587 free(sortbuffer);
599 struct pmcstat_cgnode **sortbuffer, **cgn;
616 if ((sortbuffer = (struct pmcstat_cgnode **)
620 cgn = sortbuffer;
629 nentries = cgn - sortbuffer;
633 free(sortbuffer);
637 qsort(sortbuffer, nentries, sizeof(struct pmcstat_cgnode *),
645 for (cgn = sortbuffer, n = 0; n < nentries; n++, cgn++) {
651 free(sortbuffer);