gem5  v22.1.0.0
Namespaces | Classes | Typedefs | Functions
gem5::linux Namespace Reference

Namespaces

 post5_10
 
 pre5_10
 

Classes

class  ThreadInfo
 
struct  pcb_struct
 
struct  thread_info
 
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...
 
class  SkipUDelay
 A class to skip udelay() and related calls in the kernel. More...
 

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)
 

Typedef Documentation

◆ PrintkVarArgs

using gem5::linux::PrintkVarArgs = typedef guest_abi::VarArgs<Addr, int32_t, uint32_t, int64_t, uint64_t>

Definition at line 45 of file printk.hh.

Function Documentation

◆ dumpDmesg()

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 607 of file helpers.cc.

References gem5::ThreadContext::getSystemPtr(), gem5::X86ISA::os, gem5::X86ISA::system, and warn.

Referenced by gem5::ArmISA::FsLinux::dumpDmesg(), gem5::linux::DmesgDump::process(), and gem5::linux::KernelPanic::process().

◆ onUDelay()

void gem5::linux::onUDelay ( ThreadContext tc,
uint64_t  div,
uint64_t  mul,
uint64_t  time 
)

◆ printk()

int gem5::linux::printk ( std::string &  str,
ThreadContext tc,
Addr  format_ptr,
PrintkVarArgs  args 
)

Generated on Wed Dec 21 2022 10:24:14 for gem5 by doxygen 1.9.1