Searched refs:RegEx (Results 1 – 17 of 17) sorted by relevance
/system/extras/simpleperf/ |
D | RegEx.h | 36 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);
|
D | RegEx_test.cpp | 24 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()
|
D | RegEx.cpp | 42 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()
|
D | BranchListFile.h | 68 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;
|
D | ProbeEvents.cpp | 59 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()
|
D | RecordFilter.cpp | 87 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_;
|
D | cmd_report_test.cpp | 78 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()
|
D | report_utils.cpp | 328 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()
|
D | report_utils.h | 149 std::unique_ptr<RegEx> re;
|
D | cmd_inject.cpp | 141 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_;
|
D | utils.cpp | 434 std::vector<std::unique_ptr<RegEx>> regs; in GetPidsFromStrings() 445 auto reg = RegEx::Create(p); in GetPidsFromStrings()
|
D | cmd_api.cpp | 129 auto re = RegEx::Create(R"(package:([\w\.]+)\s+uid:(\d+))"); in GetAppUid()
|
D | cmd_report_sample_test.cpp | 107 auto regex = RegEx::Create(android::base::Join(test_case, R"((\s|\n|\r)+)")); in TEST()
|
D | BranchListFile.cpp | 205 void SetBinaryFilter(const RegEx* binary_name_regex) override { in SetBinaryFilter()
|
D | Android.bp | 116 srcs: ["RegEx.cpp"],
|
D | tracing.cpp | 286 auto re = RegEx::Create(R"((\w+):(.+?);)"); in ParseTracingField()
|
D | cmd_record.cpp | 485 std::unique_ptr<RegEx> binary_name_regex_; 1027 binary_name_regex_ = RegEx::Create(*value->str_value); in ParseOptions()
|