- Timestamp:
- 09/10/15 16:58:22 (5 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
- 8c7490fe
- Parents:
- d2df7c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracertstats/tracertstats.c
rd2df7c4 rab7e4ee 80 80 struct output_data_t *output = NULL; 81 81 82 uint64_t count; 83 uint64_t bytes; 84 82 85 static void report_results(double ts,uint64_t count,uint64_t bytes) 83 86 { … … 115 118 116 119 } 117 118 uint64_t count;119 uint64_t bytes;120 120 121 121 typedef struct statistic { … … 303 303 "-f --filter=bpf Apply BPF filter. Can be specified multiple times\n" 304 304 "-m --merge-inputs Do not create separate outputs for each input trace\n" 305 "- H --libtrace-help Print libtrace runtime documentation\n"305 "-h --help Print this usage statement\n" 306 306 ,argv0); 307 307 } … … 318 318 { "count", 1, 0, 'c' }, 319 319 { "output-format", 1, 0, 'o' }, 320 { " libtrace-help", 0, 0, 'H' },320 { "help", 0, 0, 'h' }, 321 321 { "merge-inputs", 0, 0, 'm' }, 322 322 { "threads", 1, 0, 't' }, … … 324 324 }; 325 325 326 int c=getopt_long(argc, argv, "c:f:i:o:t: Hm",326 int c=getopt_long(argc, argv, "c:f:i:o:t:hm", 327 327 long_options, &option_index); 328 328 … … 357 357 merge_inputs = 1; 358 358 break; 359 case 'H': 360 trace_help(); 361 exit(1); 362 break; 359 case 'h': 360 usage(argv[0]); 361 return 1; 363 362 default: 364 363 fprintf(stderr,"Unknown option: %c\n",c); … … 369 368 370 369 if (packet_count == UINT64_MAX && packet_interval == UINT32_MAX) { 371 packet_interval = 300; /* every 5 minutes*/370 packet_interval = 60; /* every minute */ 372 371 } 373 372
Note: See TracChangeset
for help on using the changeset viewer.