Lines Matching refs:tok
749 static bool perf_pmu__valid_suffix(const char *pmu_name, char *tok) in perf_pmu__valid_suffix() argument
753 if (strncmp(pmu_name, tok, strlen(tok))) in perf_pmu__valid_suffix()
756 p = pmu_name + strlen(tok); in perf_pmu__valid_suffix()
776 char *tmp = NULL, *tok, *str; in pmu_uncore_alias_match() local
786 tok = strtok_r(str, ",", &tmp); in pmu_uncore_alias_match()
787 if (strncmp(pmu_name, tok, strlen(tok))) { in pmu_uncore_alias_match()
803 name = strstr(name, tok); in pmu_uncore_alias_match()
805 (!next_tok && !perf_pmu__valid_suffix(name, tok))) { in pmu_uncore_alias_match()
811 tok = next_tok; in pmu_uncore_alias_match()
812 name += strlen(tok); in pmu_uncore_alias_match()
1981 int perf_pmu__match(char *pattern, char *name, char *tok) in perf_pmu__match() argument
1989 if (tok && !perf_pmu__valid_suffix(name, tok)) in perf_pmu__match()