Home
last modified time | relevance | path

Searched refs:GetCpusFromString (Results 1 – 8 of 8) sorted by relevance

/system/extras/simpleperf/
Dutils_test.cpp62 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()
Dutils.h178 std::optional<std::set<int>> GetCpusFromString(const std::string& s);
Dutils.cpp378 std::optional<std::set<int>> GetCpusFromString(const std::string& s) { in GetCpusFromString() function
Devent_type.cpp461 if (auto cpus = GetCpusFromString(cpumask_content); cpus) { in GetPmuCpumask()
Dcmd_stat.cpp636 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()
Denvironment.cpp66 if (auto cpus = GetCpusFromString(*line); cpus) { in GetOnlineCpus()
Dcmd_report.cpp552 if (auto cpus = GetCpusFromString(*value.str_value); cpus) { in ParseOptions()
Dcmd_record.cpp860 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()