Lines Matching refs:list
28 // assume exclude list isn't sorted
56 DEBUG_ERR(LIB_ERR_MALLOC_FAIL,"when processing core list argument");
66 DEBUG_ERR(LIB_ERR_MALLOC_FAIL,"when processing core list argument");
84 // mallocs *list
85 static void parse_list(char *optargs, coreid_t **list, int *len)
88 assert(list != NULL);
91 *list = NULL;
93 // a list looks like this: 0,1,2,3,4,5
98 DEBUG_ERR(LIB_ERR_MALLOC_FAIL, "when parsing core list");
111 *list = malloc(sizeof(coreid_t)*i);
112 if (*list == NULL) {
113 DEBUG_ERR(LIB_ERR_MALLOC_FAIL, "when parsing core list");
123 (*list)[i] = strtol(tok, NULL, 10);
132 static void print_list(char *s, coreid_t *list, int len)
139 debug_printf("\t%d: %d\n", i, list[i]);
147 char *list_to_string(coreid_t *list, size_t l_len)
154 DEBUG_ERR(LIB_ERR_MALLOC_FAIL, "when converting core list to string");
160 n = snprintf(&s[out_len], size - out_len, "%d,", list[i]);
170 "when converting core list to string");
183 // mallocs list elements of struct. but not path
218 // use the cores given in the list argument
225 // exclude the cores given in the list argument
255 // by this point we must have a list of cores, either because one was
281 printf("Usage: %s [-mw] [-a] [-c list] [-x list] [-n num_cores]\n",