Lines Matching refs:str
39 int pmu_name_len_no_suffix(const char *str, unsigned long *num)
43 orig_len = len = strlen(str);
46 if (!strstarts(str, "uncore_"))
53 while (len > 0 && isdigit(str[len - 1]))
56 if (len > 0 && len != orig_len && str[len - 1] == '_') {
58 *num = strtoul(&str[len], NULL, 10);
316 const struct perf_pmu *perf_pmus__pmu_for_pmu_filter(const char *str)
321 if (!strcmp(pmu->name, str))
325 if (!strcmp(pmu->name + 7, str))
330 if (!strcmp(pmu->name + 4, str))
419 #define COPY_STR(str) s->str = info->str ? strdup(info->str) : NULL