Home
last modified time | relevance | path

Searched refs:cache_str (Results 1 – 1 of 1) sorted by relevance

/linux/tools/testing/selftests/resctrl/
A Dresctrlfs.c143 char cache_path[1024], cache_str[64]; in get_cache_size() local
164 if (fscanf(fp, "%s", cache_str) <= 0) { in get_cache_size()
172 length = (int)strlen(cache_str); in get_cache_size()
177 if ((cache_str[i] >= '0') && (cache_str[i] <= '9')) in get_cache_size()
179 *cache_size = *cache_size * 10 + (cache_str[i] - '0'); in get_cache_size()
181 else if (cache_str[i] == 'K') in get_cache_size()
185 else if (cache_str[i] == 'M') in get_cache_size()

Completed in 3 milliseconds