- Timestamp:
- 03/29/10 15:48:38 (11 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
- 212f9da2
- Parents:
- 962aad3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/traceanon/traceanon.c
ra8f2692 r74c5dd9 110 110 bool enc_dest = false; 111 111 char *output = 0; 112 int level = 1; 112 113 113 114 if (argc<2) … … 121 122 { "cryptopan", 1, 0, 'c' }, 122 123 { "prefix", 1, 0, 'p' }, 124 { "compression-level", 1, 0, 'z' }, 123 125 { "libtrace-help", 0, 0, 'H' }, 124 126 { NULL, 0, 0, 0 }, 125 127 }; 126 128 127 int c=getopt_long(argc, argv, " sc:dp:H",129 int c=getopt_long(argc, argv, "z:sc:dp:H", 128 130 long_options, &option_index); 129 131 … … 132 134 133 135 switch (c) { 136 case 'z': level = atoi(optarg); break; 134 137 case 's': enc_source=true; break; 135 138 case 'd': enc_dest =true; break; … … 188 191 } 189 192 193 if (trace_config_output(writer, TRACE_OPTION_OUTPUT_COMPRESS, 194 &level) == -1) { 195 trace_perror_output(writer, "Configuring compression level"); 196 trace_destroy_output(writer); 197 trace_destroy(trace); 198 return 1; 199 } 200 190 201 if (trace_start(trace)==-1) { 191 202 trace_perror(trace,"trace_start");
Note: See TracChangeset
for help on using the changeset viewer.