gem5  v20.1.0.0
Public Member Functions | Private Member Functions | List of all members
ArmISA::DumpStats64 Class Reference

#include <fs_workload.hh>

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

Public Member Functions

 DumpStats (PCEventScope *s, const std::string &desc, Addr addr)
 
- Public Member Functions inherited from 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. More...
 
- Public Member Functions inherited from 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. More...
 

Additional Inherited Members

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

Detailed Description

Definition at line 161 of file fs_workload.hh.

Member Function Documentation

◆ DumpStats()

ArmISA::DumpStats::DumpStats
inline

Definition at line 150 of file fs_workload.hh.

◆ getTaskDetails()

void 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 ArmISA::DumpStats.

Definition at line 301 of file fs_workload.cc.

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


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

Generated on Wed Sep 30 2020 14:02:35 for gem5 by doxygen 1.8.17