Lines Matching refs:tok
355 char *tok, *tmp, *orig; in setup_output_field() local
376 while ((tok = strsep(&tmp, ",")) != NULL){ in setup_output_field()
377 ret = add_output_field(contention, tok); in setup_output_field()
2083 char *s, *tmp, *tok; in parse_lock_type() local
2090 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_lock_type()
2091 unsigned int flags = get_type_flag(tok); in parse_lock_type()
2096 if (strchr(tok, ':')) in parse_lock_type()
2100 scnprintf(buf, sizeof(buf), "%s:R", tok); in parse_lock_type()
2109 scnprintf(buf, sizeof(buf), "%s:W", tok); in parse_lock_type()
2125 if (!strcmp(tok, "mutex")) { in parse_lock_type()
2180 char *s, *tmp, *tok; in parse_lock_addr() local
2188 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_lock_addr()
2191 addr = strtoul(tok, &end, 16); in parse_lock_addr()
2204 if (!add_lock_sym(tok)) { in parse_lock_addr()
2217 char *s, *tmp, *tok; in parse_call_stack() local
2224 for (tok = strtok_r(s, ", ", &tmp); tok; tok = strtok_r(NULL, ", ", &tmp)) { in parse_call_stack()
2227 entry = malloc(sizeof(*entry) + strlen(tok) + 1); in parse_call_stack()
2233 strcpy(entry->name, tok); in parse_call_stack()