Lines Matching refs:argv
37 static int ParseOption(char **argv, int *index, PerfOption *opts)
43 if (strcmp(argv[*index], opts->name) == 0) {
46 *opts->value = strtoul(argv[++(*index)], NULL, 0);
49 *opts->str = argv[++(*index)];
52 str = argv[++(*index)];
71 int ParseOptions(int argc, char **argv, PerfOption *opts, SubCmd *cmd)
76 while ((index < argc) && (argv[index] != NULL) && (*argv[index] == '-')) {
77 if (ParseOption(argv, &index, opts) != 0) {
83 if ((index < argc) && (argv[index] != NULL)) {
84 cmd->path = argv[index];
85 cmd->params[0] = argv[index];
93 cmd->params[i] = argv[index];
102 int ParseIds(const char *argv, int *arr, unsigned int *len)
108 char *list = strdup(argv);
144 int ParseEvents(const char *argv, PerfEventConfig *eventsCfg, unsigned int *len)
151 char *list = strdup(argv);