Lines Matching refs:DISPLAYLEVEL

57 #define DISPLAYLEVEL(l, ...)  if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); }  macro
143 DISPLAYLEVEL(4, "allocating %u KB => effectively %u KB \n", in FUZ_mallocDebug()
156 DISPLAYLEVEL(4, "freeing %u KB \n", (U32)(malloc_size(address) >> 10)); in FUZ_freeDebug()
164 DISPLAYLEVEL(3, "peak:%6u KB, nbMallocs:%2u, total:%6u KB \n", in FUZ_displayMallocStats()
196 DISPLAYLEVEL(3, "compressCCtx level %i : ", compressionLevel); in FUZ_mallocTests()
213 DISPLAYLEVEL(3, "compressStream level %i : ", compressionLevel); in FUZ_mallocTests()
232 DISPLAYLEVEL(3, "compress_generic,-T%u,end level %i : ", in FUZ_mallocTests()
253 DISPLAYLEVEL(3, "compress_generic,-T%u,continue level %i : ", in FUZ_mallocTests()
296 DISPLAYLEVEL(3, "test%3i : ZSTD_getErrorName : ", testNb++); in basicUnitTests()
298 DISPLAYLEVEL(3, "OK : %s \n", errorString); in basicUnitTests()
301 DISPLAYLEVEL(3, "test%3i : ZSTD_getErrorName with wrong value : ", testNb++); in basicUnitTests()
303 DISPLAYLEVEL(3, "OK : %s \n", errorString); in basicUnitTests()
307 DISPLAYLEVEL(3, "test%3i : compress %u bytes : ", testNb++, (U32)CNBuffSize); in basicUnitTests()
314 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
316 DISPLAYLEVEL(3, "test%3i : size of cctx for level 1 : ", testNb++); in basicUnitTests()
318 DISPLAYLEVEL(3, "%u bytes \n", (U32)cctxSize); in basicUnitTests()
324 DISPLAYLEVEL(3, "test%3i : ZSTD_getFrameContentSize test : ", testNb++); in basicUnitTests()
328 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
330 DISPLAYLEVEL(3, "test%3i : ZSTD_findDecompressedSize test : ", testNb++); in basicUnitTests()
334 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
336 DISPLAYLEVEL(3, "test%3i : decompress %u bytes : ", testNb++, (U32)CNBuffSize); in basicUnitTests()
339 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
341 DISPLAYLEVEL(3, "test%3i : check decompressed result : ", testNb++); in basicUnitTests()
346 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
349 DISPLAYLEVEL(3, "test%3i : decompress with null dict : ", testNb++); in basicUnitTests()
352 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
354 DISPLAYLEVEL(3, "test%3i : decompress with null DDict : ", testNb++); in basicUnitTests()
357 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
359 DISPLAYLEVEL(3, "test%3i : decompress with 1 missing byte : ", testNb++); in basicUnitTests()
363 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
365 DISPLAYLEVEL(3, "test%3i : decompress with 1 too much byte : ", testNb++); in basicUnitTests()
369 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
371 DISPLAYLEVEL(3, "test%3d : check CCtx size after compressing empty input : ", testNb++); in basicUnitTests()
378 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
380 DISPLAYLEVEL(3, "test%3d : re-use CCtx with expanding block size : ", testNb++); in basicUnitTests()
395 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
397 DISPLAYLEVEL(3, "test%3d : large window log smaller data : ", testNb++); in basicUnitTests()
410 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
414 DISPLAYLEVEL(3, "test%3i : create static CCtx for level %u :", testNb++, STATIC_CCTX_LEVEL); in basicUnitTests()
429 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
431 DISPLAYLEVEL(3, "test%3i : init CCtx for level %u : ", testNb++, STATIC_CCTX_LEVEL); in basicUnitTests()
434 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
436 DISPLAYLEVEL(3, "test%3i : simple compression test with static CCtx : ", testNb++); in basicUnitTests()
441 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", in basicUnitTests()
444 DISPLAYLEVEL(3, "test%3i : simple decompression test with static DCtx : ", testNb++); in basicUnitTests()
449 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
451 DISPLAYLEVEL(3, "test%3i : check decompressed result : ", testNb++); in basicUnitTests()
457 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
459 DISPLAYLEVEL(3, "test%3i : init CCtx for too large level (must fail) : ", testNb++); in basicUnitTests()
462 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
464DISPLAYLEVEL(3, "test%3i : init CCtx for small level %u (should work again) : ", testNb++, 1); in basicUnitTests()
467 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
469 DISPLAYLEVEL(3, "test%3i : init CStream for small level %u : ", testNb++, 1); in basicUnitTests()
472 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
474 DISPLAYLEVEL(3, "test%3i : init CStream with dictionary (should fail) : ", testNb++); in basicUnitTests()
477 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
479 DISPLAYLEVEL(3, "test%3i : init DStream (should fail) : ", testNb++); in basicUnitTests()
487 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
495 DISPLAYLEVEL(3, "test%3i : create ZSTDMT CCtx : ", testNb++); in basicUnitTests()
502 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
504 DISPLAYLEVEL(3, "test%3i : compress %u bytes with 2 threads : ", testNb++, (U32)CNBuffSize); in basicUnitTests()
510 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
512 DISPLAYLEVEL(3, "test%3i : decompressed size test : ", testNb++); in basicUnitTests()
518 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
520 DISPLAYLEVEL(3, "test%3i : decompress %u bytes : ", testNb++, (U32)CNBuffSize); in basicUnitTests()
523 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
525 DISPLAYLEVEL(3, "test%3i : check decompressed result : ", testNb++); in basicUnitTests()
530 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
532 DISPLAYLEVEL(3, "test%3i : compress -T2 with checksum : ", testNb++); in basicUnitTests()
542 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
544 DISPLAYLEVEL(3, "test%3i : decompress %u bytes : ", testNb++, (U32)CNBuffSize); in basicUnitTests()
547 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
554 DISPLAYLEVEL(3, "test%3i : compress multiple frames : ", testNb++); in basicUnitTests()
576 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
578 DISPLAYLEVEL(3, "test%3i : get decompressed size of multiple frames : ", testNb++); in basicUnitTests()
581 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
583 DISPLAYLEVEL(3, "test%3i : decompress multiple frames : ", testNb++); in basicUnitTests()
586 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
588 DISPLAYLEVEL(3, "test%3i : check decompressed result : ", testNb++); in basicUnitTests()
590 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
597 DISPLAYLEVEL(3, "test%3i : copy context too soon : ", testNb++); in basicUnitTests()
600 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
602 DISPLAYLEVEL(3, "test%3i : load dictionary into context : ", testNb++); in basicUnitTests()
605 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
607 DISPLAYLEVEL(3, "test%3i : compress with flat dictionary : ", testNb++); in basicUnitTests()
612 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
614DISPLAYLEVEL(3, "test%3i : frame built with flat dictionary should be decompressible : ", testNb++… in basicUnitTests()
620 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
622 DISPLAYLEVEL(3, "test%3i : compress with duplicated context : ", testNb++); in basicUnitTests()
630 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
632DISPLAYLEVEL(3, "test%3i : frame built with duplicated context should be decompressible : ", testN… in basicUnitTests()
638 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
640 DISPLAYLEVEL(3, "test%3i : decompress with DDict : ", testNb++); in basicUnitTests()
644 DISPLAYLEVEL(3, "OK (size of DDict : %u) \n", (U32)ZSTD_sizeof_DDict(ddict)); in basicUnitTests()
648 DISPLAYLEVEL(3, "test%3i : decompress with static DDict : ", testNb++); in basicUnitTests()
657 DISPLAYLEVEL(3, "OK (size of static DDict : %u) \n", (U32)ddictBufferSize); in basicUnitTests()
660 DISPLAYLEVEL(3, "test%3i : check content size on duplicated context : ", testNb++); in basicUnitTests()
675 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
698 DISPLAYLEVEL(3, "test%3i : dictBuilder on cyclic data : ", testNb++); in basicUnitTests()
705 DISPLAYLEVEL(3, "OK, created dictionary of size %u \n", (U32)sDictSize); in basicUnitTests()
708 DISPLAYLEVEL(3, "test%3i : dictBuilder : ", testNb++); in basicUnitTests()
713 DISPLAYLEVEL(3, "OK, created dictionary of size %u \n", (U32)dictSize); in basicUnitTests()
715 DISPLAYLEVEL(3, "test%3i : check dictID : ", testNb++); in basicUnitTests()
718 DISPLAYLEVEL(3, "OK : %u \n", dictID); in basicUnitTests()
720 DISPLAYLEVEL(3, "test%3i : compress with dictionary : ", testNb++); in basicUnitTests()
725 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
727 DISPLAYLEVEL(3, "test%3i : retrieve dictID from dictionary : ", testNb++); in basicUnitTests()
731 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
733 DISPLAYLEVEL(3, "test%3i : retrieve dictID from frame : ", testNb++); in basicUnitTests()
737 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
739DISPLAYLEVEL(3, "test%3i : frame built with dictionary should be decompressible : ", testNb++); in basicUnitTests()
745 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
747 DISPLAYLEVEL(3, "test%3i : estimate CDict size : ", testNb++); in basicUnitTests()
750 DISPLAYLEVEL(3, "OK : %u \n", (U32)estimatedSize); in basicUnitTests()
753 DISPLAYLEVEL(3, "test%3i : compress with CDict ", testNb++); in basicUnitTests()
758 DISPLAYLEVEL(3, "(size : %u) : ", (U32)ZSTD_sizeof_CDict(cdict)); in basicUnitTests()
764 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
766 DISPLAYLEVEL(3, "test%3i : retrieve dictID from frame : ", testNb++); in basicUnitTests()
770 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
772DISPLAYLEVEL(3, "test%3i : frame built with dictionary should be decompressible : ", testNb++); in basicUnitTests()
778 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
780 DISPLAYLEVEL(3, "test%3i : compress with static CDict : ", testNb++); in basicUnitTests()
806 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
808DISPLAYLEVEL(3, "test%3i : ZSTD_compress_usingCDict_advanced, no contentSize, no dictID : ", testN… in basicUnitTests()
817 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
819 DISPLAYLEVEL(3, "test%3i : try retrieving contentSize from frame : ", testNb++); in basicUnitTests()
823 DISPLAYLEVEL(3, "OK (unknown)\n"); in basicUnitTests()
825DISPLAYLEVEL(3, "test%3i : frame built without dictID should be decompressible : ", testNb++); in basicUnitTests()
831 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
833 DISPLAYLEVEL(3, "test%3i : ZSTD_compress_advanced, no dictID : ", testNb++); in basicUnitTests()
841 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/CNBuffSize*100); in basicUnitTests()
843DISPLAYLEVEL(3, "test%3i : frame built without dictID should be decompressible : ", testNb++); in basicUnitTests()
849 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
851DISPLAYLEVEL(3, "test%3i : dictionary containing only header should return error : ", testNb++); in basicUnitTests()
858 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
860DISPLAYLEVEL(3, "test%3i : Building cdict w/ ZSTD_dm_fullDict on a good dictionary : ", testNb++); in basicUnitTests()
866 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
868DISPLAYLEVEL(3, "test%3i : Building cdict w/ ZSTD_dm_fullDict on a rawContent (must fail) : ", tes… in basicUnitTests()
874 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
876DISPLAYLEVEL(3, "test%3i : Loading rawContent starting with dict header w/ ZSTD_dm_auto should fai… in basicUnitTests()
884 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
886DISPLAYLEVEL(3, "test%3i : Loading rawContent starting with dict header w/ ZSTD_dm_rawContent shou… in basicUnitTests()
894 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
896 DISPLAYLEVEL(3, "test%3i : Dictionary with non-default repcodes : ", testNb++); in basicUnitTests()
933 …if (ZSTD_isError(cSize)) { DISPLAYLEVEL(5, "Compression error %s : ", ZSTD_getErrorName(cSize)); g… in basicUnitTests()
935 …if (ZSTD_isError(dSize)) { DISPLAYLEVEL(5, "Decompression error %s : ", ZSTD_getErrorName(dSize));… in basicUnitTests()
936 …if (memcmp(data, decodedBuffer, sizeof(data))) { DISPLAYLEVEL(5, "Data corruption : "); goto _outp… in basicUnitTests()
938 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
963 DISPLAYLEVEL(3, "test%3i : ZDICT_trainFromBuffer_cover : ", testNb++); in basicUnitTests()
972 DISPLAYLEVEL(3, "OK, created dictionary of size %u \n", (U32)dictSize); in basicUnitTests()
974 DISPLAYLEVEL(3, "test%3i : check dictID : ", testNb++); in basicUnitTests()
977 DISPLAYLEVEL(3, "OK : %u \n", dictID); in basicUnitTests()
979 DISPLAYLEVEL(3, "test%3i : ZDICT_optimizeTrainFromBuffer_cover : ", testNb++); in basicUnitTests()
986 DISPLAYLEVEL(3, "OK, created dictionary of size %u \n", (U32)optDictSize); in basicUnitTests()
988 DISPLAYLEVEL(3, "test%3i : check dictID : ", testNb++); in basicUnitTests()
991 DISPLAYLEVEL(3, "OK : %u \n", dictID); in basicUnitTests()
999 DISPLAYLEVEL(3, "test%3i : Check input length for magic number : ", testNb++); in basicUnitTests()
1003 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1005 DISPLAYLEVEL(3, "test%3i : Check magic Number : ", testNb++); in basicUnitTests()
1009 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1012 DISPLAYLEVEL(3, "test%3i : Content size verification : ", testNb++); in basicUnitTests()
1022 DISPLAYLEVEL(3, "OK : %s \n", ZSTD_getErrorName(result)); in basicUnitTests()
1032 DISPLAYLEVEL(3, "test%3i : parameters in order : ", testNb++); in basicUnitTests()
1044 DISPLAYLEVEL(3, "OK (compress : %u -> %u bytes)\n", (U32)inputSize, (U32)cSize); in basicUnitTests()
1049 DISPLAYLEVEL(3, "test%3i : parameters disordered : ", testNb++); in basicUnitTests()
1060 DISPLAYLEVEL(3, "OK (compress : %u -> %u bytes)\n", (U32)inputSize, (U32)out.pos); in basicUnitTests()
1071 DISPLAYLEVEL(3, "test%3i : magic-less format test : ", testNb++); in basicUnitTests()
1080 DISPLAYLEVEL(3, "OK (compress : %u -> %u bytes)\n", (U32)inputSize, (U32)cSize); in basicUnitTests()
1082 DISPLAYLEVEL(3, "test%3i : decompress normally (should fail) : ", testNb++); in basicUnitTests()
1085 DISPLAYLEVEL(3, "OK : %s \n", ZSTD_getErrorName(decodeResult)); in basicUnitTests()
1088 DISPLAYLEVEL(3, "test%3i : decompress with magic-less instruction : ", testNb++); in basicUnitTests()
1097 DISPLAYLEVEL(3, "OK : regenerated %u bytes \n", (U32)out.pos); in basicUnitTests()
1110 DISPLAYLEVEL(3, "test%3i : Block compression test : ", testNb++); in basicUnitTests()
1115 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1117 DISPLAYLEVEL(3, "test%3i : Block decompression test : ", testNb++); in basicUnitTests()
1121 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1124 DISPLAYLEVEL(3, "test%3i : Dictionary Block compression test : ", testNb++); in basicUnitTests()
1134 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1136 DISPLAYLEVEL(3, "test%3i : Dictionary Block decompression test : ", testNb++); in basicUnitTests()
1143 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1151 DISPLAYLEVEL(3, "test%3i : Long RLE test : ", testNb++); in basicUnitTests()
1161 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1166 DISPLAYLEVEL(3, "test%3i : compress %u zeroes : ", testNb++, ZEROESLENGTH); in basicUnitTests()
1170 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/ZEROESLENGTH*100); in basicUnitTests()
1172 DISPLAYLEVEL(3, "test%3i : decompress %u zeroes : ", testNb++, ZEROESLENGTH); in basicUnitTests()
1175 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1202 DISPLAYLEVEL(3, "test%3i : compress lots 3-bytes sequences : ", testNb++); in basicUnitTests()
1206 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/_3BYTESTESTLENGTH*100); in basicUnitTests()
1208 DISPLAYLEVEL(3, "test%3i : decompress lots 3-bytes sequence : ", testNb++); in basicUnitTests()
1211 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1213 DISPLAYLEVEL(3, "test%3i : incompressible data and ill suited dictionary : ", testNb++); in basicUnitTests()
1246 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1250 DISPLAYLEVEL(3, "test%3i : frame compressed size of skippable frame : ", testNb++); in basicUnitTests()
1254 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1257 DISPLAYLEVEL(3, "test%3i : testing ZSTD error code strings : ", testNb++); in basicUnitTests()
1264 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1266 DISPLAYLEVEL(3, "test%3i : testing ZSTD dictionary sizes : ", testNb++); in basicUnitTests()
1287 DISPLAYLEVEL(3, "OK \n"); in basicUnitTests()
1446 DISPLAYLEVEL(5, "fuzzer t%u: Simple compression test (level %i) \n", testNb, cLevel); in fuzzerTests()
1474 DISPLAYLEVEL(5, "fuzzer t%u: simple decompression test \n", testNb); in fuzzerTests()
1485 DISPLAYLEVEL(5, "fuzzer t%u: decompression of truncated source \n", testNb); in fuzzerTests()
1497 DISPLAYLEVEL(5, "fuzzer t%u: decompress into too small dst buffer \n", testNb); in fuzzerTests()
1533 DISPLAYLEVEL(5, "fuzzer t%u: decompress noisy source \n", testNb); in fuzzerTests()
1546 DISPLAYLEVEL(5, "fuzzer t%u: Bufferless streaming compression test \n", testNb); in fuzzerTests()
1559DISPLAYLEVEL(6, "fuzzer t%u: Compressing up to <=%u bytes at level %i with dictionary size %u \n", in fuzzerTests()
1603 DISPLAYLEVEL(5, "fuzzer t%u: Bufferless streaming decompression test \n", testNb); in fuzzerTests()