gem5  v19.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | List of all members
DumpStatsPCEvent64 Class Reference

#include <system.hh>

Inheritance diagram for DumpStatsPCEvent64:
DumpStatsPCEvent PCEvent

Public Member Functions

 DumpStatsPCEvent64 (PCEventScope *s, const std::string &desc, Addr addr)
 
- Public Member Functions inherited from DumpStatsPCEvent
 DumpStatsPCEvent (PCEventScope *s, const std::string &desc, Addr addr)
 
virtual void process (ThreadContext *tc)
 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 141 of file system.hh.

Constructor & Destructor Documentation

◆ DumpStatsPCEvent64()

DumpStatsPCEvent64::DumpStatsPCEvent64 ( PCEventScope s,
const std::string &  desc,
Addr  addr 
)
inline

Definition at line 143 of file system.hh.

Member Function Documentation

◆ getTaskDetails()

void DumpStatsPCEvent64::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 DumpStatsPCEvent.

Definition at line 306 of file system.cc.

References Linux::ThreadInfo::curTaskMmFromTaskStruct(), Linux::ThreadInfo::curTaskNameFromTaskStruct(), Linux::ThreadInfo::curTaskPIDFromTaskStruct(), Linux::ThreadInfo::curTaskTGIDFromTaskStruct(), ThreadContext::readIntReg(), and MipsISA::ti.


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

Generated on Fri Feb 28 2020 16:27:10 for gem5 by doxygen 1.8.13