Changeset 17f954f


Ignore:
Timestamp:
07/07/14 13:36:33 (6 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
faf16af
Parents:
457bf45
Message:

Add LZMA output support to libtrace tools

Add a configuration option for LZMA output as well.

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r387d299 r17f954f  
    12391239        TRACE_OPTION_COMPRESSTYPE_BZ2  = 2, /**< BZip2 Compression */
    12401240        TRACE_OPTION_COMPRESSTYPE_LZO  = 3,  /**< LZO Compression */
     1241        TRACE_OPTION_COMPRESSTYPE_LZMA  = 4,  /**< LZO Compression */
    12411242        TRACE_OPTION_COMPRESSTYPE_LAST
    12421243} trace_option_compresstype_t;
  • tools/traceanon/traceanon.1

    rd6dc0f6 r17f954f  
    8686.BI \-\^\-compress-type=method
    8787compress the output trace using the compression algorithm "method". Possible
    88 algorithms are "gzip", "bzip2", "lzo" and "none". Default is "none".
     88algorithms are "gzip", "bzip2", "lzo", "xz" and "none". Default is "none".
    8989
    9090.SH EXAMPLES
  • tools/traceanon/traceanon.c

    rf5b5cca r17f954f  
    219219        } else if (strncmp(compress_type_str, "lzo", 3) == 0) {
    220220                compress_type = TRACE_OPTION_COMPRESSTYPE_LZO;
     221        } else if (strncmp(compress_type_str, "xz", 2) == 0) {
     222                compress_type = TRACE_OPTION_COMPRESSTYPE_LZMA;
    221223        } else if (strncmp(compress_type_str, "no", 2) == 0) {
    222224                compress_type = TRACE_OPTION_COMPRESSTYPE_NONE;
  • tools/tracemerge/tracemerge.1

    rd6dc0f6 r17f954f  
    5353.BI \-\^\-compress-type method
    5454Describes the compression algorithm to be used when writing the output trace.
    55 Possible methods are "gzip", "bzip2", "lzo" and "none". Defaults to "none".
     55Possible methods are "gzip", "bzip2", "lzo", "xz" and "none". Defaults to
     56"none".
    5657
    5758
  • tools/tracemerge/tracemerge.c

    rc0ccccd r17f954f  
    120120        } else if (strncmp(compress_type_str, "lzo", 3) == 0) {
    121121                compress_type = TRACE_OPTION_COMPRESSTYPE_LZO;
     122        } else if (strncmp(compress_type_str, "xz", 2) == 0) {
     123                compress_type = TRACE_OPTION_COMPRESSTYPE_LZMA;
    122124        } else if (strncmp(compress_type_str, "no", 2) == 0) {
    123125                compress_type = TRACE_OPTION_COMPRESSTYPE_NONE;
  • tools/tracesplit/tracesplit.1

    rd6dc0f6 r17f954f  
    6161\fB-Z\fR compression-method
    6262Compress the data using the specified compression algorithm. Accepted methods
    63 are "gzip", "bzip2", "lzo" or "none". Default value is none unless a
     63are "gzip", "bzip2", "lzo", "xz" or "none". Default value is none unless a
    6464compression level is specified, in which case gzip will be used.
    6565
  • tools/tracesplit/tracesplit.c

    r755855a r17f954f  
    316316        } else if (strncmp(compress_type_str, "lzo", 3) == 0) {
    317317                compress_type = TRACE_OPTION_COMPRESSTYPE_LZO;
     318        } else if (strncmp(compress_type_str, "xz", 2) == 0) {
     319                compress_type = TRACE_OPTION_COMPRESSTYPE_LZMA;
    318320        } else if (strncmp(compress_type_str, "no", 2) == 0) {
    319321                compress_type = TRACE_OPTION_COMPRESSTYPE_NONE;
Note: See TracChangeset for help on using the changeset viewer.