| /freebsd/sys/contrib/zstd/programs/ |
| H A D | dibio.c | 59 #define DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); } macro 173 DISPLAYLEVEL(2, "\r%79s\r", ""); in DiB_loadFiles() 174 DISPLAYLEVEL(4, "Loaded %d KB total training data, %d nb samples \n", in DiB_loadFiles() 284 DISPLAYLEVEL(3, "Sample file '%s' has zero size, skipping...\n", fileNamesTable[n]); in DiB_fileStats() 301 DISPLAYLEVEL(3, "Sample file '%s' is too large, limiting to %d KB\n", in DiB_fileStats() 308 …DISPLAYLEVEL(4, "Found training data %d files, %d KB, %d samples\n", nbFiles, (int)(fs.totalSizeTo… in DiB_fileStats() 332 DISPLAYLEVEL(3, "Shuffling input files\n"); in DiB_trainFromFiles() 348 …DISPLAYLEVEL(2, "! Warning : setting manual memory limit for dictionary training data at %u MB \n… in DiB_trainFromFiles() 360 DISPLAYLEVEL(2, "! Warning : some sample(s) are very large \n"); in DiB_trainFromFiles() 361 DISPLAYLEVEL(2, "! Note that dictionary is only useful for small samples. \n"); in DiB_trainFromFiles() [all …]
|
| H A D | fileio_common.h | 35 #define DISPLAYLEVEL(l, ...) { if (g_display_prefs.displayLevel>=l) { DISPLAY(__VA_ARGS__); } } macro 54 #define DISPLAY_PROGRESS(...) { if (SHOULD_DISPLAY_PROGRESS()) { DISPLAYLEVEL(1, __VA_ARGS__); }} 56 #define DISPLAY_SUMMARY(...) { if (SHOULD_DISPLAY_SUMMARY()) { DISPLAYLEVEL(1, __VA_ARGS__); } } 60 DISPLAYLEVEL(1, "zstd: "); \ 61 DISPLAYLEVEL(5, "Error defined at %s, line %i : \n", __FILE__, __LINE__); \ 62 DISPLAYLEVEL(1, "error %i : ", error); \ 63 DISPLAYLEVEL(1, __VA_ARGS__); \ 64 DISPLAYLEVEL(1, " \n"); \ 71 DISPLAYLEVEL(5, "%s \n", #f); \
|
| H A D | zstdcli.c | 103 #undef DISPLAYLEVEL 104 #define DISPLAYLEVEL(l, ...) { if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } } macro 117 DISPLAYLEVEL(1, "Error : incorrect library version (expecting : %s ; actual : %s ) \n", in checkLibVersion() 119 DISPLAYLEVEL(1, "Please update library to version %s, or use stand-alone zstd binary \n", in checkLibVersion() 320 DISPLAYLEVEL(1, "Incorrect parameter: %s \n", parameter); in badUsage() 342 DISPLAYLEVEL(1, "%s \n", msg); exit(1); in errorOut() 503 …DISPLAYLEVEL(4, "cover: k=%u\nd=%u\nsteps=%u\nsplit=%u\nshrink%u\n", params->k, params->d, params-… in parseCoverParameters() 543 …DISPLAYLEVEL(4, "cover: k=%u\nd=%u\nf=%u\nsteps=%u\nsplit=%u\naccel=%u\nshrink=%u\n", params->k, p… in parseFastCoverParameters() 558 DISPLAYLEVEL(4, "legacy: selectivity=%u\n", *selectivity); in parseLegacyParameters() 602 DISPLAYLEVEL(4, "invalid compression parameter \n"); in parseAdaptParameters() [all …]
|
| H A D | fileio.c | 371 if (nbWorkers > 0) DISPLAYLEVEL(2, "Note : multi-threading is disabled \n"); in FIO_setNbWorkers() 382 DISPLAYLEVEL(2, "Setting block size is useless in single-thread mode \n"); in FIO_setBlockSize() 388 DISPLAYLEVEL(2, "Setting overlapLog is useless in single-thread mode \n"); in FIO_setOverlapLog() 480 DISPLAYLEVEL(2, "Note : asyncio is disabled (lack of multithreading support) \n"); in FIO_setAsyncIOFlag() 523 DISPLAYLEVEL(2, "zstd: Failed to stat %s while trying to remove it\n", path); in FIO_removeFile() 527 DISPLAYLEVEL(2, "zstd: Refusing to remove non-regular file %s\n", path); in FIO_removeFile() 549 DISPLAYLEVEL(4,"Using stdin for input \n"); in FIO_openSrcFile() 555 DISPLAYLEVEL(1, "zstd: can't stat %s : %s -- ignored \n", in FIO_openSrcFile() 564 DISPLAYLEVEL(1, "zstd: %s is not a regular file -- ignored \n", in FIO_openSrcFile() 571 DISPLAYLEVEL(1, "zstd: %s: %s \n", srcFileName, strerror(errno)); in FIO_openSrcFile() [all …]
|
| H A D | benchzstd.c | 81 #define DISPLAYLEVEL(l, ...) \ macro 112 DISPLAYLEVEL(1, "Error %i : ", errorNum); \ 113 DISPLAYLEVEL(1, __VA_ARGS__); \ 114 DISPLAYLEVEL(1, " \n"); \ 135 DISPLAYLEVEL(1, "Error %i : ", errorNum); \ 136 DISPLAYLEVEL(1, __VA_ARGS__); \ 137 DISPLAYLEVEL(1, " \n"); \ 953 DISPLAYLEVEL(1, "Invalid Compression Level \n"); in BMK_benchCLevels() 957 DISPLAYLEVEL(1, "Invalid Compression Level Range \n"); in BMK_benchCLevels() 962 DISPLAYLEVEL(2, "Note : switching to real-time priority \n"); in BMK_benchCLevels() [all …]
|
| /freebsd/sys/contrib/zstd/lib/dictBuilder/ |
| H A D | zdict.c | 78 #undef DISPLAYLEVEL 79 #define DISPLAYLEVEL(l, ...) do { if (notificationLevel>=l) { DISPLAY(__VA_ARGS__); } } while (0) … macro 230 DISPLAYLEVEL(4, "\n"); in ZDICT_analyzePos() 231 …DISPLAYLEVEL(4, "found %3u matches of length >= %i at pos %7u ", (unsigned)(end-start), MINMATCHL… in ZDICT_analyzePos() 232 DISPLAYLEVEL(4, "\n"); in ZDICT_analyzePos() 312 DISPLAYLEVEL(4, "Selected dict at position %u, of length %u : saves %u (ratio: %.2f) \n", in ZDICT_analyzePos() 492 DISPLAYLEVEL(2, "\r%70s\r", ""); /* clean display line */ in ZDICT_trainBuffer_legacy() 501 …if (bufferSize > ZDICT_MAX_SAMPLES_SIZE) DISPLAYLEVEL(3, "sample set too large : reduced to %u MB … in ZDICT_trainBuffer_legacy() 505 …DISPLAYLEVEL(2, "sorting %u files of total size %u MB ...\n", nbFiles, (unsigned)(bufferSize>>20)); in ZDICT_trainBuffer_legacy() 522 DISPLAYLEVEL(2, "finding patterns ... \n"); in ZDICT_trainBuffer_legacy() [all …]
|
| H A D | fastcover.c | 67 #undef DISPLAYLEVEL 68 #define DISPLAYLEVEL(l, ...) LOCALDISPLAYLEVEL(g_displayLevel, l, __VA_ARGS__) macro 330 DISPLAYLEVEL(1, "Total samples size is too large (%u MB), maximum size is %u MB\n", in FASTCOVER_ctx_init() 337 DISPLAYLEVEL(1, "Total number of training samples is %u and is invalid\n", nbTrainSamples); in FASTCOVER_ctx_init() 343 DISPLAYLEVEL(1, "Total number of testing samples is %u and is invalid.\n", nbTestSamples); in FASTCOVER_ctx_init() 349 DISPLAYLEVEL(2, "Training on %u samples of total size %u\n", nbTrainSamples, in FASTCOVER_ctx_init() 351 DISPLAYLEVEL(2, "Testing on %u samples of total size %u\n", nbTestSamples, in FASTCOVER_ctx_init() 367 DISPLAYLEVEL(1, "Failed to allocate scratch buffers \n"); in FASTCOVER_ctx_init() 384 DISPLAYLEVEL(1, "Failed to allocate frequency table \n"); in FASTCOVER_ctx_init() 389 DISPLAYLEVEL(2, "Computing frequencies\n"); in FASTCOVER_ctx_init() [all …]
|
| H A D | cover.c | 80 #undef DISPLAYLEVEL 81 #define DISPLAYLEVEL(l, ...) LOCALDISPLAYLEVEL(g_displayLevel, l, __VA_ARGS__) macro 616 DISPLAYLEVEL(1, "Total samples size is too large (%u MB), maximum size is %u MB\n", 622 DISPLAYLEVEL(1, "Total number of training samples is %u and is invalid.", nbTrainSamples); 627 DISPLAYLEVEL(1, "Total number of testing samples is %u and is invalid.", nbTestSamples); 632 DISPLAYLEVEL(2, "Training on %u samples of total size %u\n", nbTrainSamples, 634 DISPLAYLEVEL(2, "Testing on %u samples of total size %u\n", nbTestSamples, 649 DISPLAYLEVEL(1, "Failed to allocate scratch buffers\n"); 664 DISPLAYLEVEL(2, "Constructing partial suffix array\n"); 676 DISPLAYLEVEL(2, "Computing frequencies\n"); [all …]
|