MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / DumpAllCoreStates

Method DumpAllCoreStates

tests/unit_test/mocks/test_environment_state.cpp:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void TestEnvironmentState::DumpAllCoreStates() const {
128 std::lock_guard<std::mutex> lock(map_mutex_);
129 std::cout << "\n=== Test Environment State Dump ===" << std::endl;
130 std::cout << "Total cores: " << cores_.size() << std::endl;
131
132 for (const auto& core : cores_) {
133 std::cout << "\nCore " << core.core_id << ":" << std::endl;
134 std::cout << " Interrupt enabled: " << core.interrupt_enabled << std::endl;
135 std::cout << " Page directory: 0x" << std::hex << core.page_directory
136 << std::dec << std::endl;
137 std::cout << " Paging enabled: " << core.paging_enabled << std::endl;
138 std::cout << " Switch history size: " << core.switch_history.size()
139 << std::endl;
140 }
141 std::cout << "==================================\n" << std::endl;
142}
143
144auto TestEnvironmentState::GetAllSwitchHistory() const
145 -> std::vector<CoreEnvironment::SwitchEvent> {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected