Home
last modified time | relevance | path

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

/linux/tools/perf/util/
H A Dhwmon_pmu.c163 char fn_type[24]; in parse_hwmon_filename() local
168 assert(strlen(LONGEST_HWMON_TYPE_STR) < sizeof(fn_type)); in parse_hwmon_filename()
169 strlcpy(fn_type, filename, sizeof(fn_type)); in parse_hwmon_filename()
170 for (size_t i = 0; fn_type[i] != '\0'; i++) { in parse_hwmon_filename()
171 if (fn_type[i] >= '0' && fn_type[i] <= '9') { in parse_hwmon_filename()
172 fn_type[i] = '\0'; in parse_hwmon_filename()
178 if (fn_type[i] == '_') { in parse_hwmon_filename()
179 fn_type[i] = '\0'; in parse_hwmon_filename()
185 if (fn_item == NULL || fn_type[0] == '\0' || (item != NULL && fn_item[0] == '\0')) { in parse_hwmon_filename()
189 elem = bsearch(&fn_type, hwmon_type_strs + 1, ARRAY_SIZE(hwmon_type_strs) - 1, in parse_hwmon_filename()
[all …]