Searched refs:GetCpusFromString (Results 1 – 8 of 8) sorted by relevance
/system/extras/simpleperf/ |
D | utils_test.cpp | 62 TEST(utils, GetCpusFromString) { in TEST() argument 63 ASSERT_EQ(GetCpusFromString("0-2"), std::make_optional<std::set<int>>({0, 1, 2})); in TEST() 64 ASSERT_EQ(GetCpusFromString("0,2-3"), std::make_optional<std::set<int>>({0, 2, 3})); in TEST() 65 ASSERT_EQ(GetCpusFromString("1,0-3,3,4"), std::make_optional<std::set<int>>({0, 1, 2, 3, 4})); in TEST() 66 ASSERT_EQ(GetCpusFromString("0,1-3, 5, 7-8"), in TEST() 68 ASSERT_EQ(GetCpusFromString(""), std::nullopt); in TEST() 69 ASSERT_EQ(GetCpusFromString("-3"), std::nullopt); in TEST() 70 ASSERT_EQ(GetCpusFromString("3,2-1"), std::nullopt); in TEST()
|
D | utils.h | 178 std::optional<std::set<int>> GetCpusFromString(const std::string& s);
|
D | utils.cpp | 378 std::optional<std::set<int>> GetCpusFromString(const std::string& s) { in GetCpusFromString() function
|
D | event_type.cpp | 461 if (auto cpus = GetCpusFromString(cpumask_content); cpus) { in GetPmuCpumask()
|
D | cmd_stat.cpp | 636 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()
|
D | environment.cpp | 66 if (auto cpus = GetCpusFromString(*line); cpus) { in GetOnlineCpus()
|
D | cmd_report.cpp | 552 if (auto cpus = GetCpusFromString(*value.str_value); cpus) { in ParseOptions()
|
D | cmd_record.cpp | 860 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()
|