gem5  v21.2.1.1
Public Member Functions | Protected Member Functions | List of all members
gem5::ArmISA::DumpStats Class Reference

#include <fs_workload.hh>

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

Public Member Functions

 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. More...
 
- 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 ()
 

Protected Member Functions

virtual void getTaskDetails (ThreadContext *tc, uint32_t &pid, uint32_t &tgid, std::string &next_task_str, int32_t &mm)
 Extracts the information used by the DumpStatsPCEvent by reading the thread_info pointer passed to __switch_to() in 32 bit ARM Linux. More...
 

Additional Inherited Members

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

Detailed Description

Definition at line 144 of file fs_workload.hh.

Constructor & Destructor Documentation

◆ DumpStats()

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

Definition at line 147 of file fs_workload.hh.

Member Function Documentation

◆ getTaskDetails()

void gem5::ArmISA::DumpStats::getTaskDetails ( ThreadContext tc,
uint32_t &  pid,
uint32_t &  tgid,
std::string &  next_task_str,
int32_t &  mm 
)
protectedvirtual

Extracts the information used by the DumpStatsPCEvent by reading the thread_info pointer passed to __switch_to() in 32 bit ARM Linux.

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

Reimplemented in gem5::ArmISA::DumpStats64.

Definition at line 285 of file fs_workload.cc.

References gem5::ThreadContext::readIntReg(), and gem5::MipsISA::ti.

Referenced by process().

◆ process()

void gem5::ArmISA::DumpStats::process ( ThreadContext tc)
overridevirtual

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

Generated on Wed May 4 2022 12:14:54 for gem5 by doxygen 1.8.17