gem5 v24.1.0.1
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Functions
gem5::linux Namespace Reference

Namespaces

namespace  post5_10
 
namespace  pre5_10
 

Classes

class  DebugPrintk
 
class  PanicOrOopsEvent
 Specify what to do on a Linux Kernel Panic or Oops. 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.
 
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 44 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 780 of file helpers.cc.

References gem5::loader::SymbolTable::end(), gem5::ThreadContext::getSystemPtr(), gem5::X86ISA::os, gem5::Workload::symtab(), gem5::X86ISA::system, warn, and gem5::System::workload.

Referenced by gem5::ArmISA::FsLinux::dumpDmesg(), and gem5::linux::PanicOrOopsEvent::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 Mon Jan 13 2025 04:29:07 for gem5 by doxygen 1.9.8