usr/src/lib/libzutil/common/zutil_pool.c
/*
 * Print the DDT histogram and the column totals.
 */
Print the DDT histogram and the column totals.
Print the DDT histogram and the column totals .
void
zpool_dump_ddt(const ddt_stat_t *dds_total, const ddt_histogram_t *ddh)
{
	int h;
	(void) printf("\n");
	(void) printf("bucket   "
	    "           allocated             "
	    "          referenced          \n");
	(void) printf("______   "
	    "______________________________   "
	    "______________________________\n");
	(void) printf("%6s   %6s   %5s   %5s   %5s   %6s   %5s   %5s   %5s\n",
	    "refcnt",
	    "blocks", "LSIZE", "PSIZE", "DSIZE",
	    "blocks", "LSIZE", "PSIZE", "DSIZE");
	(void) printf("%6s   %6s   %5s   %5s   %5s   %6s   %5s   %5s   %5s\n",
	    "------",
	    "------", "-----", "-----", "-----",
	    "------", "-----", "-----", "-----");
	for (h = 0; h < 64; h++)
		dump_ddt_stat(&ddh->ddh_stat[h], h);
	dump_ddt_stat(dds_total, -1);
	(void) printf("\n");
}
void zpool_dump_ddt ( const ddt_stat_t * dds_total , const ddt_histogram_t * ddh ) { int h ; ( void ) printf ( " \n " ) ; ( void ) printf ( " " " " " \n " ) ; ( void ) printf ( " " " " " \n " ) ; ( void ) printf ( " \n " , " " , " " , " " , " " , " " , " " , " " , " " , " " ) ; ( void ) printf ( " \n " , " " , " " , " " , " " , " " , " " , " " , " " , " " ) ; for ( h = 0 ; h < 64 ; h ++ ) dump_ddt_stat ( & ddh -> ddh_stat [ h ] , h ) ; dump_ddt_stat ( dds_total , -1 ) ; ( void ) printf ( " \n " ) ; }
Print the DDT histogram and the column totals.
Print the DDT histogram and the column totals .