Ignore:
Timestamp:
03/16/07 11:51:07 (14 years ago)
Author:
Shane Alcock <salcock@…>
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
Message:

Libtrace now exports the svn revision number of the distribution
Added two new RT_TYPES that signify server restarts and client connection failures.
Updated the INSTALL documentation.
Added more option combinations to synopt_report.c
The examples directory is no longer treated as EXTRA_DIST in automake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracereport/synopt_report.c

    r3bfeb7d ra1b899f  
    2525        uint64_t mt;
    2626        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;
    2732        uint64_t ts_and_another;
    2833        uint64_t ttcp;
     
    3035};
    3136
    32 struct opt_counter counts = {0,0,0,0,0,0,0,0,0,0,0};
     37struct opt_counter counts = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
    3338uint64_t total_syns = 0;
    3439
     
    6368        if (opts.mss && opts.ts && !opts.winscale && !opts.sack)
    6469                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       
    6584        if (opts.mss && opts.sack && opts.winscale && opts.ts) {
    6685                counts.all_four ++;
     
    170189                        (double)(counts.mt) / total_syns * 100.0);
    171190        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",
    172206                        "M, S, W and T",
    173207                        (double)(counts.all_four) / total_syns * 100.0);
Note: See TracChangeset for help on using the changeset viewer.