Changeset 92cf299 for tools


Ignore:
Timestamp:
12/14/17 11:13:40 (3 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, dpdk-ndag, etsilive, master, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
a8cfe71
Parents:
4f0f93f
Message:

tracesplit: don't bother setting compression type to "none".

Setting a compression type on a output format that does not
support compression (e.g. dpdk) tends to not work so well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracesplit/tracesplit.c

    r8e11beb r92cf299  
    294294                }
    295295
    296                 if (trace_config_output(output,
    297                                         TRACE_OPTION_OUTPUT_COMPRESSTYPE,
    298                                         &compress_type) == -1) {
    299                         trace_perror_output(output, "Unable to set compression type");
    300                 }
     296                if (compress_type != TRACE_OPTION_COMPRESSTYPE_NONE) {
     297                        if (trace_config_output(output,
     298                                                TRACE_OPTION_OUTPUT_COMPRESSTYPE,
     299                                                &compress_type) == -1) {
     300                                trace_perror_output(output, "Unable to set compression type");
     301                        }
     302                }
    301303
    302304                trace_start_output(output);
Note: See TracChangeset for help on using the changeset viewer.