Lines Matching refs:tok
667 static bool perf_pmu__valid_suffix(const char *pmu_name, char *tok) in perf_pmu__valid_suffix() argument
671 if (strncmp(pmu_name, tok, strlen(tok))) in perf_pmu__valid_suffix()
674 p = pmu_name + strlen(tok); in perf_pmu__valid_suffix()
694 char *tmp = NULL, *tok, *str; in pmu_uncore_alias_match() local
704 tok = strtok_r(str, ",", &tmp); in pmu_uncore_alias_match()
705 if (strncmp(pmu_name, tok, strlen(tok))) { in pmu_uncore_alias_match()
721 name = strstr(name, tok); in pmu_uncore_alias_match()
723 (!next_tok && !perf_pmu__valid_suffix(name, tok))) { in pmu_uncore_alias_match()
729 tok = next_tok; in pmu_uncore_alias_match()
730 name += strlen(tok); in pmu_uncore_alias_match()
1858 int perf_pmu__match(char *pattern, char *name, char *tok) in perf_pmu__match() argument
1866 if (tok && !perf_pmu__valid_suffix(name, tok)) in perf_pmu__match()