Lines Matching refs:tok
904 static bool perf_pmu__match_wildcard(const char *pmu_name, const char *tok) in perf_pmu__match_wildcard() argument
908 size_t tok_len = strlen(tok); in perf_pmu__match_wildcard()
911 if (strncmp(pmu_name, tok, tok_len)) in perf_pmu__match_wildcard()
947 static bool perf_pmu__match_ignoring_suffix_uncore(const char *pmu_name, const char *tok) in perf_pmu__match_ignoring_suffix_uncore() argument
953 return tok == NULL; in perf_pmu__match_ignoring_suffix_uncore()
958 if (!strncmp(tok, "uncore_", 7)) in perf_pmu__match_ignoring_suffix_uncore()
959 tok += 7; in perf_pmu__match_ignoring_suffix_uncore()
962 tok_len = pmu_name_len_no_suffix(tok); in perf_pmu__match_ignoring_suffix_uncore()
966 return strncmp(pmu_name, tok, pmu_name_len) == 0; in perf_pmu__match_ignoring_suffix_uncore()
979 char *mutable_to_match, *tok, *tmp; in perf_pmu__match_wildcard_uncore() local
998 tok = strtok_r(mutable_to_match, ",", &tmp); in perf_pmu__match_wildcard_uncore()
999 while (tok) { in perf_pmu__match_wildcard_uncore()
1000 size_t tok_len = strlen(tok); in perf_pmu__match_wildcard_uncore()
1002 if (strncmp(pmu_name, tok, tok_len)) { in perf_pmu__match_wildcard_uncore()
1014 tok = strtok_r(NULL, ",", &tmp); in perf_pmu__match_wildcard_uncore()