Lines Matching refs:tok
722 static bool perf_pmu__valid_suffix(const char *pmu_name, char *tok) in perf_pmu__valid_suffix() argument
726 if (strncmp(pmu_name, tok, strlen(tok))) in perf_pmu__valid_suffix()
729 p = pmu_name + strlen(tok); in perf_pmu__valid_suffix()
749 char *tmp = NULL, *tok, *str; in pmu_uncore_alias_match() local
759 tok = strtok_r(str, ",", &tmp); in pmu_uncore_alias_match()
760 if (strncmp(pmu_name, tok, strlen(tok))) { in pmu_uncore_alias_match()
776 name = strstr(name, tok); in pmu_uncore_alias_match()
778 (!next_tok && !perf_pmu__valid_suffix(name, tok))) { in pmu_uncore_alias_match()
784 tok = next_tok; in pmu_uncore_alias_match()
785 name += strlen(tok); in pmu_uncore_alias_match()
1962 int perf_pmu__match(char *pattern, char *name, char *tok) in perf_pmu__match() argument
1970 if (tok && !perf_pmu__valid_suffix(name, tok)) in perf_pmu__match()