Changeset 7be3cc4
- 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
- Location:
- tools/tracereport
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracereport/Makefile.am
r051618c r7be3cc4 16 16 error_report.c\ 17 17 flow_report.c\ 18 misc_report.c\ 18 19 port_report.c\ 19 20 protocol_report.c\ -
tools/tracereport/report.h
r051618c r7be3cc4 5 5 void error_per_packet(struct libtrace_packet_t *packet); 6 6 void flow_per_packet(struct libtrace_packet_t *packet); 7 void misc_per_packet(struct libtrace_packet_t *packet); 7 8 void port_per_packet(struct libtrace_packet_t *packet); 8 9 void protocol_per_packet(struct libtrace_packet_t *packet); … … 18 19 void error_report(void); 19 20 void flow_report(void); 21 void misc_report(void); 20 22 void port_report(void); 21 23 void protocol_report(void); -
tools/tracereport/tracereport.1
r634089d r7be3cc4 7 7 [ \fB-e \fR| \fB --error \fR] 8 8 [ \fB-F \fR| \fB --flow \fR] 9 [ \fB-m \fR| \fB --misc \fR] 9 10 [ \fB-P \fR| \fB --protocol \fR] 10 11 [ \fB-p \fR| \fB --port \fR] … … 49 50 .BI \-\^\-flow 50 51 Produces a report on the number of flows observed in the trace 52 53 .TP 54 .PD 0 55 .BI \-m 56 .TP 57 .PD 0 58 .BI \-\^\-misc 59 Provides a report listing the time of the first packet, and the time of the 60 last packet in the trace, the duration, the total number of packets in the 61 trace, and the average number of packets per second. 51 62 52 63 .TP -
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(); -
tools/tracereport/tracereport.h
r051618c r7be3cc4 19 19 REPORT_TYPE_ECN = 1 << 9, 20 20 REPORT_TYPE_TCPSEG = 1 << 10, 21 REPORT_TYPE_SYNOPT = 1 << 11 21 REPORT_TYPE_SYNOPT = 1 << 11, 22 REPORT_TYPE_MISC = 1 << 12 22 23 } report_type_t; 23 24
Note: See TracChangeset
for help on using the changeset viewer.