Searched refs:cpu_stat (Results 1 – 7 of 7) sorted by relevance
277 auto* cpu_stat = sys_stats->add_cpu_stat(); in ReadStat() local278 cpu_stat->set_cpu_id(static_cast<uint32_t>(cpu_id)); in ReadStat()279 cpu_stat->set_user_ns(cpu_times[0] * ns_per_user_hz_); in ReadStat()280 cpu_stat->set_user_ice_ns(cpu_times[1] * ns_per_user_hz_); in ReadStat()281 cpu_stat->set_system_mode_ns(cpu_times[2] * ns_per_user_hz_); in ReadStat()282 cpu_stat->set_idle_ns(cpu_times[3] * ns_per_user_hz_); in ReadStat()283 cpu_stat->set_io_wait_ns(cpu_times[4] * ns_per_user_hz_); in ReadStat()284 cpu_stat->set_irq_ns(cpu_times[5] * ns_per_user_hz_); in ReadStat()285 cpu_stat->set_softirq_ns(cpu_times[6] * ns_per_user_hz_); in ReadStat()
347 EXPECT_EQ(sys_stats.cpu_stat()[0].user_ns(), 762178 * 10000000ull); in TEST_F()348 EXPECT_EQ(sys_stats.cpu_stat()[0].system_mode_ns(), 902284 * 10000000ull); in TEST_F()349 EXPECT_EQ(sys_stats.cpu_stat()[0].softirq_ns(), 68262 * 10000000ull); in TEST_F()350 EXPECT_EQ(sys_stats.cpu_stat()[7].user_ns(), 180484 * 10000000ull); in TEST_F()351 EXPECT_EQ(sys_stats.cpu_stat()[7].system_mode_ns(), 139874 * 10000000ull); in TEST_F()352 EXPECT_EQ(sys_stats.cpu_stat()[7].softirq_ns(), 13407 * 10000000ull); in TEST_F()
45 struct cpu_stat *s = &cpu->stat[cpu->count++&1]; in cpu_top_update()46 struct cpu_stat *d = &cpu->stat[cpu->count&1]; in cpu_top_update()
36 struct cpu_stat { struct
51 repeated CpuTimes cpu_stat = 3; // One entry per cpu. field
129 for (auto it = sys_stats.cpu_stat(); it; ++it) { in ParseSysStats()
6469 repeated CpuTimes cpu_stat = 3; // One entry per cpu. field