Home
last modified time | relevance | path

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

/linux/samples/bpf/
H A Dxdp_sample.bpf.c30 const volatile int to_match[32] = {}; variable
190 if (!IN_SET(to_match, dev->ifindex)) in BPF_PROG()
218 if (!IN_SET(to_match, idx_out)) in BPF_PROG()
252 if (!IN_SET(to_match, idx_out)) in BPF_PROG()
/linux/tools/perf/util/
H A Dpmu.c1011 static bool perf_pmu__match_wildcard_uncore(const char *pmu_name, const char *to_match) in perf_pmu__match_wildcard_uncore() argument
1021 if (!strncmp(to_match, "uncore_", 7)) in perf_pmu__match_wildcard_uncore()
1022 to_match += 7; in perf_pmu__match_wildcard_uncore()
1024 if (strchr(to_match, ',') == NULL) in perf_pmu__match_wildcard_uncore()
1025 return perf_pmu__match_wildcard(pmu_name, to_match); in perf_pmu__match_wildcard_uncore()
1028 mutable_to_match = strdup(to_match); in perf_pmu__match_wildcard_uncore()
2315 static bool perf_pmu___name_match(const struct perf_pmu *pmu, const char *to_match, bool wildcard) in perf_pmu___name_match() argument
2328 if (!strcmp(name, to_match)) { in perf_pmu___name_match()
2333 if (!strcmp(to_match, "default_core")) { in perf_pmu___name_match()
2353 if (!strcmp(name, to_match)) { in perf_pmu___name_match()
[all …]
H A Dpmu.h268 bool perf_pmu__name_wildcard_match(const struct perf_pmu *pmu, const char *to_match);
269 bool perf_pmu__name_no_suffix_match(const struct perf_pmu *pmu, const char *to_match);
/linux/tools/perf/tests/
H A Dpmu.c465 #define TEST_PMU_MATCH(msg, to_match, expect) \ in test__pmu_match() argument
466 TEST_ASSERT_EQUAL(msg, perf_pmu__wildcard_match(&test_pmu, to_match), expect) in test__pmu_match()