Changeset 9c13ab0 for tools/tracertstats


Ignore:
Timestamp:
11/04/05 11:22:41 (16 years ago)
Author:
Perry Lorier <perry@…>
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:
6d0a502
Parents:
fe3d755
Message:

Add a txt output format (and make it the default)

Location:
tools/tracertstats
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • tools/tracertstats/Makefile.am

    rbf7018a r9c13ab0  
    11bin_PROGRAMS = tracertstats
    22
    3 OUTPUT_MODULES=output_csv.c output_html.c
     3OUTPUT_MODULES=output_csv.c output_html.c output_txt.c
    44if LIBGDC
    55OUTPUT_MODULES+=output_png.c
  • tools/tracertstats/output.c

    rbf7018a r9c13ab0  
    99
    1010struct output_type_t *output_formats[] = {
     11        &output_txt,
    1112        &output_csv,
    1213        &output_html,
  • tools/tracertstats/output.h

    r953c53f r9c13ab0  
    3232        void (*destroy)(struct output_data_t *);
    3333};
     34extern struct output_type_t output_txt;
    3435extern struct output_type_t output_csv;
    3536extern struct output_type_t output_html;
  • tools/tracertstats/tracertstats.c

    rcf0ff82 r9c13ab0  
    9797        double ts = 0;
    9898
    99         output=output_init(uri,output_format?:"csv");
     99        output=output_init(uri,output_format?:"txt");
    100100        output_add_column(output,"unix_time");
    101101        output_add_column(output,"packets");
     
    154154void usage(char *argv0)
    155155{
    156         fprintf(stderr,"Usage: %s [--filter|-f bpf ]... libtraceuri...\n",argv0);
     156        fprintf(stderr,"Usage: %s [--interval|-i seconds ] [--count|-c packets] [--output-format|-o txt|csv|html|png] [--filter|-f bpf ]... libtraceuri...\n",argv0);
    157157}
    158158
Note: See TracChangeset for help on using the changeset viewer.