Changeset 66caf4b for tools/tracertstats/tracertstats.c
- Timestamp:
- 06/29/06 20:58:23 (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:
- 47de0aa
- Parents:
- b01455c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracertstats/tracertstats.c
r430077b r66caf4b 180 180 void usage(char *argv0) 181 181 { 182 fprintf(stderr,"Usage: %s [--interval|-i seconds ] [--count|-c packets] [--output-format|-o txt|csv|html|png] [--filter|-f bpf ]... libtraceuri...\n",argv0); 182 fprintf(stderr,"Usage:\n" 183 "%s flags libtraceuri [libtraceuri...]\n" 184 "-i --interval=seconds Duration of reporting interval in seconds\n" 185 "-c --count=packets Exit after count packets received\n" 186 "-o --output-format=txt|csv|html|png Reporting output format\n" 187 "-f --filter=bpf Apply BPF filter. Can be specified multiple times\n" 188 "-H --libtrace-help Print libtrace runtime documentation\n" 189 ,argv0); 183 190 } 184 191 … … 190 197 int option_index; 191 198 struct option long_options[] = { 192 { "filter", 1, 0, 'f' }, 193 { "interval", 1, 0, 'i' }, 194 { "count", 1, 0, 'c' }, 195 { "output-format",1,0,'o' }, 196 { NULL, 0, 0, 0 }, 199 { "filter", 1, 0, 'f' }, 200 { "interval", 1, 0, 'i' }, 201 { "count", 1, 0, 'c' }, 202 { "output-format", 1, 0, 'o' }, 203 { "libtrace-help", 0, 0, 'H' }, 204 { NULL, 0, 0, 0 }, 197 205 }; 198 206 199 int c=getopt_long(argc, argv, "c:f:i:o: ",207 int c=getopt_long(argc, argv, "c:f:i:o:H", 200 208 long_options, &option_index); 201 209 … … 222 230 output_format=strdup(optarg); 223 231 break; 232 case 'H': 233 trace_help(); 234 exit(1); 235 break; 224 236 default: 225 237 fprintf(stderr,"Unknown option: %c\n",c);
Note: See TracChangeset
for help on using the changeset viewer.