- int c;
-
- opts->pids = NULL;
- opts->regex = NULL;
-
- while (1) {
- int option_index = 0;
- static struct option long_options[] = {
- {"create-trace", 0, 0, 1012},
- {"alloc-trace", 0, 0, 1015},
- {"start-trace", 0, 0, 1000},
- {"stop-trace", 0, 0, 1001},
- {"destroy-trace", 0, 0, 1002},
- {"list-markers", 0, 0, 1004},
- {"print-markers", 0, 0, 1005},
- {"pid", 1, 0, 1006},
- {"enable-marker", 1, 0, 1007},
- {"disable-marker", 1, 0, 1008},
- {"start", 0, 0, 1009},
- {"help", 0, 0, 'h'},
- /*{"version", 0, 0, 1010},*/
- {"online-pids", 0, 0, 1011},
- {"set-subbuf-size", 1, 0, 1013},
- {"set-subbuf-num", 1, 0, 1014},
- {0, 0, 0, 0}
- };
-
- c = getopt_long(argc, argv, "h", long_options, &option_index);
- if (c == -1)
- break;