Home
last modified time | relevance | path

Searched refs:online_cpus (Results 1 – 4 of 4) sorted by relevance

/system/extras/simpleperf/
Devent_selection_set_test.cpp65 std::vector<int> online_cpus = GetOnlineCpus(); in TEST() local
66 ASSERT_FALSE(online_cpus.empty()); in TEST()
68 event_selection_set.SetCpusForNewEvents({online_cpus[0]}); in TEST()
70 event_selection_set.SetCpusForNewEvents({online_cpus.back()}); in TEST()
87 ASSERT_EQ(get_cpu(attrs[0].ids[0]), online_cpus[0]); in TEST()
90 ASSERT_EQ(get_cpu(attrs[1].ids[0]), online_cpus[0]); in TEST()
93 ASSERT_EQ(get_cpu(attrs[2].ids[0]), online_cpus.back()); in TEST()
96 ASSERT_EQ(get_cpu(attrs[3].ids[0]), online_cpus.back()); in TEST()
DETMRecorder.cpp156 std::vector<int> online_cpus = GetOnlineCpus(); in ReadEtmInfo() local
161 if (std::find(online_cpus.begin(), online_cpus.end(), cpu) == online_cpus.end()) { in ReadEtmInfo()
180 return (etm_info_.size() == online_cpus.size()); in ReadEtmInfo()
Devent_selection_set.cpp424 std::vector<int> online_cpus = GetOnlineCpus(); in GetHardwareCountersForCpus() local
433 const std::vector<int>* pcpus = group.cpus.empty() ? &online_cpus : &group.cpus; in GetHardwareCountersForCpus()
695 std::vector<int> online_cpus = GetOnlineCpus(); in OpenEventFiles() local
702 if (std::find(online_cpus.begin(), online_cpus.end(), cpu) == online_cpus.end()) { in OpenEventFiles()
719 pcpus = &online_cpus; in OpenEventFiles()
Dcmd_stat_test.cpp422 std::vector<int> online_cpus = GetOnlineCpus(); in TEST() local
423 ASSERT_FALSE(online_cpus.empty()); in TEST()
424 std::string cpu0 = std::to_string(online_cpus[0]); in TEST()
425 std::string cpu1 = std::to_string(online_cpus.back()); in TEST()