Lines Matching refs:index
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)];
74 int index = 0;
76 while ((index < argc) && (argv[index] != NULL) && (*argv[index] == '-')) {
77 if (ParseOption(argv, &index, opts) != 0) {
80 index++;
83 if ((index < argc) && (argv[index] != NULL)) {
84 cmd->path = argv[index];
85 cmd->params[0] = argv[index];
86 index++;
92 for (i = 1; (index < argc) && (i < CMD_MAX_PARAMS); index++, i++) {
93 cmd->params[i] = argv[index];
105 unsigned int index = 0;
122 arr[index++] = res;
125 *len = index;
147 unsigned int index = 0;
166 if (index == 0) {
173 eventsCfg->events[index].eventId = event->event;
175 index++;
177 *len = index;