Lines Matching refs:tok
128 const char *tok, struct list_head *list) in sort_dimension__add() argument
163 if (!strcmp(available_sorts[i]->name, tok)) { in sort_dimension__add()
176 char *tmp, *tok, *str = strdup(kwork->sort_order); in setup_sorting() local
178 for (tok = strtok_r(str, ", ", &tmp); in setup_sorting()
179 tok; tok = strtok_r(NULL, ", ", &tmp)) { in setup_sorting()
180 if (sort_dimension__add(kwork, tok, &kwork->sort_list) < 0) in setup_sorting()
182 "Unknown --sort key: `%s'", tok); in setup_sorting()
1582 char *tmp, *tok, *str; in setup_event_list() local
1588 for (tok = strtok_r(str, ", ", &tmp); in setup_event_list()
1589 tok; tok = strtok_r(NULL, ", ", &tmp)) { in setup_event_list()
1592 if (strcmp(tok, class->name) == 0) { in setup_event_list()
1599 "Unknown --event key: `%s'", tok); in setup_event_list()