Home
last modified time | relevance | path

Searched refs:perf_pmu__match (Results 1 – 4 of 4) sorted by relevance

/linux/tools/perf/tests/
H A Dpmu.c465 TEST_ASSERT_EQUAL("Exact match", perf_pmu__match(&test_pmu, "pmuname"), true); in test__pmu_match()
466 TEST_ASSERT_EQUAL("Longer token", perf_pmu__match(&test_pmu, "longertoken"), false); in test__pmu_match()
467 TEST_ASSERT_EQUAL("Shorter token", perf_pmu__match(&test_pmu, "pmu"), false); in test__pmu_match()
470 TEST_ASSERT_EQUAL("Diff suffix_", perf_pmu__match(&test_pmu, "pmuname_2"), false); in test__pmu_match()
471 TEST_ASSERT_EQUAL("Sub suffix_", perf_pmu__match(&test_pmu, "pmuname_1"), true); in test__pmu_match()
472 TEST_ASSERT_EQUAL("Same suffix_", perf_pmu__match(&test_pmu, "pmuname_10"), true); in test__pmu_match()
473 TEST_ASSERT_EQUAL("No suffix_", perf_pmu__match(&test_pmu, "pmuname"), true); in test__pmu_match()
474 TEST_ASSERT_EQUAL("Underscore_", perf_pmu__match(&test_pmu, "pmuname_"), true); in test__pmu_match()
475 TEST_ASSERT_EQUAL("Substring_", perf_pmu__match(&test_pmu, "pmuna"), false); in test__pmu_match()
478 TEST_ASSERT_EQUAL("Diff suffix hex_", perf_pmu__match(&test_pmu, "pmuname_2"), false); in test__pmu_match()
[all …]
/linux/tools/perf/util/
H A Dpmu.h269 bool perf_pmu__match(const struct perf_pmu *pmu, const char *tok);
H A Dpmu.c2178 bool perf_pmu__match(const struct perf_pmu *pmu, const char *tok) in perf_pmu__match() function
H A Dparse-events.c1691 perf_pmu__match(pmu, event_or_pmu)) { in parse_events_multi_pmu_add_or_add_pmu()