gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::ArmISA::DumpStats64 Class Reference

#include <fs_workload.hh>

Inheritance diagram for gem5::ArmISA::DumpStats64:
gem5::ArmISA::DumpStats gem5::PCEvent

Public Member Functions

 DumpStats (PCEventScope *s, const std::string &desc, Addr addr)
Public Member Functions inherited from gem5::ArmISA::DumpStats
 DumpStats (PCEventScope *s, const std::string &desc, Addr addr)
void process (ThreadContext *tc) override
 This function is called whenever the the kernel function "__switch_to" is called to change running tasks.
Public Member Functions inherited from gem5::PCEvent
 PCEvent (PCEventScope *q, const std::string &desc, Addr pc)
virtual ~PCEvent ()
virtual const std::string name () const
std::string descr () const
Addr pc () const
bool remove ()

Private Member Functions

void getTaskDetails (ThreadContext *tc, uint32_t &pid, uint32_t &tgid, std::string &next_task_str, int32_t &mm) override
 Extracts the information used by the DumpStatsPCEvent64 by reading the task_struct pointer passed to __switch_to() in 64 bit ARM Linux.

Additional Inherited Members

Protected Attributes inherited from gem5::PCEvent
std::string description
PCEventScopescope
Addr evpc

Detailed Description

Definition at line 158 of file fs_workload.hh.

Member Function Documentation

◆ DumpStats()

gem5::ArmISA::DumpStats::DumpStats ( PCEventScope * s,
const std::string & desc,
Addr addr )
inline

Definition at line 147 of file fs_workload.hh.

◆ getTaskDetails()

void gem5::ArmISA::DumpStats64::getTaskDetails ( ThreadContext * tc,
uint32_t & pid,
uint32_t & tgid,
std::string & next_task_str,
int32_t & mm )
overrideprivatevirtual

Extracts the information used by the DumpStatsPCEvent64 by reading the task_struct pointer passed to __switch_to() in 64 bit ARM Linux.

r0 = task_struct of the previously running process r1 = task_struct of next process to run

Reimplemented from gem5::ArmISA::DumpStats.

Definition at line 323 of file fs_workload.cc.

References gem5::ThreadContext::getReg(), gem5::SparcISA::mm, gem5::MipsISA::ti, and gem5::ArmISA::int_reg::X1.


The documentation for this class was generated from the following files:

Generated on Sat Oct 18 2025 08:06:56 for gem5 by doxygen 1.14.0