Home
last modified time | relevance | path

Searched refs:RegEx (Results 1 – 17 of 17) sorted by relevance

/system/extras/simpleperf/
DRegEx.h36 class RegEx {
38 static std::unique_ptr<RegEx> Create(std::string_view pattern);
39 virtual ~RegEx() {} in ~RegEx()
50 RegEx(std::string_view pattern) : pattern_(pattern) {} in RegEx() function
55 bool SearchInRegs(std::string_view s, const std::vector<std::unique_ptr<RegEx>>& regs);
DRegEx_test.cpp24 TEST(RegEx, smoke) { in TEST() argument
25 auto re = RegEx::Create("b+"); in TEST()
47 TEST(RegEx, invalid_pattern) { in TEST() argument
48 ASSERT_TRUE(RegEx::Create("?hello") == nullptr); in TEST()
DRegEx.cpp42 class RegExImpl : public RegEx {
45 : RegEx(pattern), re_(pattern_, std::regex::ECMAScript | std::regex::optimize) {} in RegExImpl()
71 std::unique_ptr<RegEx> RegEx::Create(std::string_view pattern) { in Create()
80 bool SearchInRegs(std::string_view s, const std::vector<std::unique_ptr<RegEx>>& regs) { in SearchInRegs()
DBranchListFile.h68 BinaryFilter(const RegEx* binary_name_regex) : binary_name_regex_(binary_name_regex) {} in BinaryFilter()
70 void SetRegex(const RegEx* binary_name_regex) { in SetRegex()
90 const RegEx* binary_name_regex_;
142 virtual void SetBinaryFilter(const RegEx* binary_name_regex) = 0;
DProbeEvents.cpp59 auto name_reg = RegEx::Create(R"(:([a-zA-Z_][\w_]*/)?([a-zA-Z_][\w_]*))"); in ParseKprobeEventName()
92 event->event_name = RegEx::Create(R"(\.|:)")->Replace(s, "_").value(); in ParseKprobeEventName()
DRecordFilter.cpp87 if (auto regex = RegEx::Create(process_name); regex != nullptr) { in AddProcessNameRegex()
109 std::vector<std::unique_ptr<RegEx>> include_names_;
110 std::vector<std::unique_ptr<RegEx>> exclude_names_;
118 if (auto regex = RegEx::Create(thread_name); regex != nullptr) { in AddThreadNameRegex()
140 std::vector<std::unique_ptr<RegEx>> include_names_;
141 std::vector<std::unique_ptr<RegEx>> exclude_names_;
Dcmd_report_test.cpp78 auto regex = RegEx::Create(R"(Samples: (\d+))"); in GetSampleCount()
616 RegEx::Create(R"(325005586\s+elf\s+26083\s+26083\s+/elf\s+GlobalFunc)")->Search(content)); in TEST_F()
622 ASSERT_TRUE(RegEx::Create(R"(EventCount_cpu-cycles\s+EventCount_instructions)")->Search(content)); in TEST_F()
624 RegEx::Create(R"(175099\s+140443\s+sleep\s+689664\s+689664.+_dl_addr)")->Search(content)); in TEST_F()
630 RegEx::Create( in TEST_F()
635 RegEx::Create(R"(175099\s+175099\s+140443\s+140443\s+sleep\s+689664\s+689664.+_dl_addr)") in TEST_F()
638 RegEx::Create(R"(366116\s+0\s+297474\s+0\s+sleep\s+689664\s+689664.+__libc_start_main)") in TEST_F()
Dreport_utils.cpp328 if (auto regex = RegEx::Create(method_name_regex); regex != nullptr) { in RemoveMethod()
344 std::vector<std::unique_ptr<RegEx>> exclude_names_;
480 std::unique_ptr<RegEx> re = RegEx::Create(reg_str); in AggregateThreads()
Dreport_utils.h149 std::unique_ptr<RegEx> re;
Dcmd_inject.cpp141 const RegEx* binary_name_regex) in PerfDataReader()
231 const RegEx* binary_name_regex, ETMDumpOption etm_dump_option) in ETMPerfDataReader()
415 const RegEx* binary_name_regex) in LBRPerfDataReader()
501 BranchListReader(const std::string& filename, const RegEx* binary_name_regex) in BranchListReader()
895 binary_name_regex_ = RegEx::Create(*value->str_value); in ParseOptions()
1087 std::unique_ptr<RegEx> binary_name_regex_;
Dutils.cpp434 std::vector<std::unique_ptr<RegEx>> regs; in GetPidsFromStrings()
445 auto reg = RegEx::Create(p); in GetPidsFromStrings()
Dcmd_api.cpp129 auto re = RegEx::Create(R"(package:([\w\.]+)\s+uid:(\d+))"); in GetAppUid()
Dcmd_report_sample_test.cpp107 auto regex = RegEx::Create(android::base::Join(test_case, R"((\s|\n|\r)+)")); in TEST()
DBranchListFile.cpp205 void SetBinaryFilter(const RegEx* binary_name_regex) override { in SetBinaryFilter()
DAndroid.bp116 srcs: ["RegEx.cpp"],
Dtracing.cpp286 auto re = RegEx::Create(R"((\w+):(.+?);)"); in ParseTracingField()
Dcmd_record.cpp485 std::unique_ptr<RegEx> binary_name_regex_;
1027 binary_name_regex_ = RegEx::Create(*value->str_value); in ParseOptions()