Lines Matching refs:tok
172 char *tok; in __parse_callchain_report_opt() local
184 while ((tok = strtok_r((char *)arg, ",", &saveptr)) != NULL) { in __parse_callchain_report_opt()
185 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt()
192 if (!parse_callchain_mode(tok) || in __parse_callchain_report_opt()
193 !parse_callchain_order(tok) || in __parse_callchain_report_opt()
194 !parse_callchain_sort_key(tok) || in __parse_callchain_report_opt()
195 !parse_callchain_value(tok)) { in __parse_callchain_report_opt()
200 if (parse_callchain_record(tok, &callchain_param)) in __parse_callchain_report_opt()
215 if (get_stack_size(tok, &size) < 0) in __parse_callchain_report_opt()
221 callchain_param.min_percent = strtod(tok, &endptr); in __parse_callchain_report_opt()
222 if (tok == endptr) in __parse_callchain_report_opt()
227 callchain_param.print_limit = strtoul(tok, &endptr, 0); in __parse_callchain_report_opt()
228 if (tok == endptr) in __parse_callchain_report_opt()
254 char *tok, *name, *saveptr = NULL; in parse_callchain_record() local
265 tok = strtok_r((char *)buf, ",", &saveptr); in parse_callchain_record()
266 name = tok ? : (char *)buf; in parse_callchain_record()
274 tok = strtok_r(NULL, ",", &saveptr); in parse_callchain_record()
275 if (tok) { in parse_callchain_record()
278 size = strtoul(tok, &name, 0); in parse_callchain_record()
293 tok = strtok_r(NULL, ",", &saveptr); in parse_callchain_record()
294 if (tok) { in parse_callchain_record()
297 ret = get_stack_size(tok, &size); in parse_callchain_record()