Changeset a1b899f for tools/tracereport/synopt_report.c
- Timestamp:
- 03/16/07 11:51: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:
- 0fd4ad6
- Parents:
- 3198df4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracereport/synopt_report.c
r3bfeb7d ra1b899f 25 25 uint64_t mt; 26 26 uint64_t all_four; 27 uint64_t ts_and_sack; 28 uint64_t wt; 29 uint64_t tms; 30 uint64_t tws; 31 uint64_t tmw; 27 32 uint64_t ts_and_another; 28 33 uint64_t ttcp; … … 30 35 }; 31 36 32 struct opt_counter counts = {0,0,0,0,0,0,0,0,0,0,0 };37 struct opt_counter counts = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; 33 38 uint64_t total_syns = 0; 34 39 … … 63 68 if (opts.mss && opts.ts && !opts.winscale && !opts.sack) 64 69 counts.mt ++; 70 if (opts.ts && opts.sack && !opts.mss && !opts.winscale) 71 counts.ts_and_sack ++; 72 73 if (opts.ts && opts.winscale && !opts.mss && !opts.sack) 74 counts.wt ++; 75 76 if (opts.ts && opts.mss && opts.winscale && !opts.sack) 77 counts.tmw ++; 78 if (opts.ts && opts.mss && opts.sack && !opts.winscale) 79 counts.tms ++; 80 if (opts.ts && opts.sack && opts.winscale && !opts.mss) 81 counts.tws ++; 82 83 65 84 if (opts.mss && opts.sack && opts.winscale && opts.ts) { 66 85 counts.all_four ++; … … 170 189 (double)(counts.mt) / total_syns * 100.0); 171 190 fprintf(out, "%-20s\t%.2f%%\n", 191 "W, T", 192 (double)(counts.wt) / total_syns * 100.0); 193 fprintf(out, "%-20s\t%.2f%%\n", 194 "S, T", 195 (double)(counts.ts_and_sack) / total_syns * 100.0); 196 fprintf(out, "%-20s\t%.2f%%\n", 197 "S, M, T", 198 (double)(counts.tms) / total_syns * 100.0); 199 fprintf(out, "%-20s\t%.2f%%\n", 200 "W, M, T", 201 (double)(counts.tmw) / total_syns * 100.0); 202 fprintf(out, "%-20s\t%.2f%%\n", 203 "S, W, T", 204 (double)(counts.tws) / total_syns * 100.0); 205 fprintf(out, "%-20s\t%.2f%%\n", 172 206 "M, S, W and T", 173 207 (double)(counts.all_four) / total_syns * 100.0);
Note: See TracChangeset
for help on using the changeset viewer.