Home
last modified time | relevance | path

Searched refs:pmatch (Results 1 – 5 of 5) sorted by relevance

/tools/perf/arch/x86/util/
A Dheader.c97 regmatch_t pmatch[1]; in strcmp_cpuid_str() local
118 match = !regexec(&re, id, 1, pmatch, 0); in strcmp_cpuid_str()
121 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); in strcmp_cpuid_str()
/tools/bpf/
A Dbpf_jit_disasm.c182 regmatch_t pmatch[1]; in get_last_jit_image() local
195 memset(pmatch, 0, sizeof(pmatch)); in get_last_jit_image()
198 ret = regexec(&regex, ptr, 1, pmatch, 0); in get_last_jit_image()
200 ptr += pmatch[0].rm_eo; in get_last_jit_image()
201 off += pmatch[0].rm_eo; in get_last_jit_image()
207 ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); in get_last_jit_image()
/tools/mm/
A Dpage_owner_sort.c218 regmatch_t pmatch[2]; in remove_pattern() local
221 err = regexec(pattern, buf, 2, pmatch, REG_NOTBOL); in remove_pattern()
222 if (err != 0 || pmatch[1].rm_so == -1) in remove_pattern()
225 memcpy(buf + pmatch[1].rm_so, in remove_pattern()
226 buf + pmatch[1].rm_eo, len - pmatch[1].rm_eo); in remove_pattern()
228 return len - (pmatch[1].rm_eo - pmatch[1].rm_so); in remove_pattern()
234 regmatch_t pmatch[2]; in search_pattern() local
236 err = regexec(pattern, buf, 2, pmatch, REG_NOTBOL); in search_pattern()
237 if (err != 0 || pmatch[1].rm_so == -1) { in search_pattern()
242 val_len = pmatch[1].rm_eo - pmatch[1].rm_so; in search_pattern()
[all …]
/tools/perf/util/
A Dpmu.c1023 regmatch_t pmatch[1]; in pmu_uncore_identifier_match() local
1032 match = !regexec(&re, id, 1, pmatch, 0); in pmu_uncore_identifier_match()
1035 match = pmatch[0].rm_so == 0 && (size_t)pmatch[0].rm_eo == strlen(id); in pmu_uncore_identifier_match()
A Dheader.c857 regmatch_t pmatch[1]; in strcmp_cpuid_str() local
866 match = !regexec(&re, cpuid, 1, pmatch, 0); in strcmp_cpuid_str()
869 size_t match_len = (pmatch[0].rm_eo - pmatch[0].rm_so); in strcmp_cpuid_str()

Completed in 19 milliseconds