Changeset 7be3cc4 for tools/tracereport/tracereport.c
- Timestamp:
- 04/21/07 15:25:12 (15 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:
- 4df814d
- Parents:
- 171cc28
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracereport/tracereport.c
r051618c r7be3cc4 84 84 break; 85 85 } 86 if (reports_required & REPORT_TYPE_MISC) 87 misc_per_packet(packet); 86 88 if (reports_required & REPORT_TYPE_ERROR) 87 89 error_per_packet(packet); … … 119 121 "-e --error Report packet errors (e.g. checksum failures, rxerrors)\n" 120 122 "-F --flow Report flows\n" 123 "-m --misc Report misc information (start/end times, duration, pps)\n" 121 124 "-P --protocol Report transport protocols\n" 122 125 "-p --port Report port numbers\n" … … 151 154 { "protocol", 0, 0, 'P' }, 152 155 { "port", 0, 0, 'p' }, 156 { "misc", 0, 0, 'm' }, 153 157 { "tos", 0, 0, 'T' }, 154 158 { "ttl", 0, 0, 't' }, … … 161 165 { NULL, 0, 0, 0 } 162 166 }; 163 opt = getopt_long(argc, argv, "f:HeF PpTtOondCs", long_options,167 opt = getopt_long(argc, argv, "f:HeFmPpTtOondCs", long_options, 164 168 &option_index); 165 169 if (opt == -1) … … 194 198 reports_required |= REPORT_TYPE_SYNOPT; 195 199 break; 200 case 'm': 201 reports_required |= REPORT_TYPE_MISC; 202 break; 196 203 case 'P': 197 204 reports_required |= REPORT_TYPE_PROTO; … … 213 220 } 214 221 } 222 223 /* Default to all reports, instead of no reports at all. It's annoying 224 * waiting for 10 minutes for a trace to process then discover you 225 * forgot to ask for any reports! 226 */ 227 if (reports_required == 0) 228 reports_required = ~0; 215 229 216 230 if (filterstring) { … … 227 241 } 228 242 243 if (reports_required & REPORT_TYPE_MISC) 244 misc_report(); 229 245 if (reports_required & REPORT_TYPE_ERROR) 230 246 error_report();
Note: See TracChangeset
for help on using the changeset viewer.