Changeset c20af2a for tools/tracereport
- Timestamp:
- 04/27/07 15:10:07 (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:
- 3dc78cb
- Parents:
- f3576f5
- Location:
- tools/tracereport
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracereport/Makefile.am
rb25f4b0 rc20af2a 26 26 ecn_report.c\ 27 27 tcpsegment_report.c\ 28 locality_report.c\29 28 contain.h\ 30 29 report.h\ -
tools/tracereport/tracereport.c
rb25f4b0 rc20af2a 110 110 if (reports_required & REPORT_TYPE_TCPSEG) 111 111 tcpseg_per_packet(packet); 112 if (reports_required & REPORT_TYPE_LOCALITY)113 locality_per_packet(packet);114 112 } 115 113 trace_destroy(trace); … … 134 132 "-C --ecn Report TCP ECN information\n" 135 133 "-s --tcpsegment \tReport TCP segment size\n" 136 "-l --locality=input \tReport traffic locality using <input> to describe local IP addresses\n"137 134 "-H --help Print libtrace runtime documentation\n" 138 135 ,argv0); … … 166 163 { "ecn", 0, 0, 'C' }, 167 164 { "tcpsegment", 0, 0, 's' }, 168 { "locality", 1, 0, 'l' },169 165 { NULL, 0, 0, 0 } 170 166 }; … … 193 189 usage(argv[0]); 194 190 break; 195 case 'l':196 if (locality_init(optarg) > 0)197 reports_required |= REPORT_TYPE_LOCALITY;198 191 case 'm': 199 192 reports_required |= REPORT_TYPE_MISC; … … 274 267 if (reports_required & REPORT_TYPE_TCPSEG) 275 268 tcpseg_report(); 276 if (reports_required & REPORT_TYPE_LOCALITY)277 locality_report();278 269 return 0; 279 270 } -
tools/tracereport/tracereport.h
r1dc58e0 rc20af2a 20 20 REPORT_TYPE_TCPSEG = 1 << 10, 21 21 REPORT_TYPE_SYNOPT = 1 << 11, 22 REPORT_TYPE_LOCALITY = 1 << 12, 22 REPORT_TYPE_LOCALITY = 1 << 12, /* No longer used by libtrace */ 23 23 REPORT_TYPE_MISC = 1 << 13 24 24 } report_type_t;
Note: See TracChangeset
for help on using the changeset viewer.