|
gem5
v21.2.1.1
|
Classes | |
| class | DebugPrintk |
| class | DmesgDump |
| Dump the guest kernel's dmesg buffer to a file in gem5's output directory and print a warning. More... | |
| class | KernelPanic |
| Dump the guest kernel's dmesg buffer to a file in gem5's output directory and panic. More... | |
| struct | pcb_struct |
| class | SkipUDelay |
| A class to skip udelay() and related calls in the kernel. More... | |
| struct | thread_info |
| class | ThreadInfo |
Typedefs | |
| using | PrintkVarArgs = guest_abi::VarArgs< Addr, int32_t, uint32_t, int64_t, uint64_t > |
Functions | |
| void | onUDelay (ThreadContext *tc, uint64_t div, uint64_t mul, uint64_t time) |
| void | dumpDmesg (ThreadContext *tc, std::ostream &os) |
| Dump Linux's dmesg log buffer to the an output stream. More... | |
| int | printk (std::string &str, ThreadContext *tc, Addr format_ptr, PrintkVarArgs args) |
| using gem5::linux::PrintkVarArgs = typedef guest_abi::VarArgs<Addr, int32_t, uint32_t, int64_t, uint64_t> |
| void gem5::linux::dumpDmesg | ( | ThreadContext * | tc, |
| std::ostream & | os | ||
| ) |
Dump Linux's dmesg log buffer to the an output stream.
@warn This assumes that the kernel address mappings are available to the translating proxy.
Definition at line 96 of file helpers.cc.
References gem5::PowerISA::bo, gem5::dumpDmesgEntry(), gem5::ThreadContext::getSystemPtr(), gem5::X86ISA::os, gem5::PortProxy::read(), gem5::PortProxy::readBlob(), gem5::X86ISA::system, and warn.
Referenced by gem5::ArmISA::FsLinux::dumpDmesg(), gem5::linux::DmesgDump::process(), and gem5::linux::KernelPanic::process().
| void gem5::linux::onUDelay | ( | ThreadContext * | tc, |
| uint64_t | div, | ||
| uint64_t | mul, | ||
| uint64_t | time | ||
| ) |
Definition at line 84 of file events.cc.
References gem5::curTick(), gem5::sim_clock::as_int::ns, and gem5::ThreadContext::quiesceTick().
Referenced by gem5::linux::SkipUDelay< ABI, Base >::process().
| int gem5::linux::printk | ( | std::string & | str, |
| ThreadContext * | tc, | ||
| Addr | format_ptr, | ||
| PrintkVarArgs | args | ||
| ) |
Definition at line 50 of file printk.cc.
References gem5::ArmISA::c, gem5::ArmISA::format, gem5::guest_abi::VarArgs< Types >::get(), gem5::ArmISA::len, gem5::mask(), gem5::ArmISA::n, gem5::MipsISA::p, gem5::PortProxy::readString(), gem5::ArmISA::s, and gem5::ArmISA::width.
Referenced by gem5::linux::DebugPrintk< ABI, Base >::process().