gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
DumpStatsPCEvent Class Reference

#include <system.hh>

Inheritance diagram for DumpStatsPCEvent:
PCEvent

Public Member Functions

 DumpStatsPCEvent (PCEventQueue *q, 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 (PCEventQueue *q, const std::string &desc, Addr pc)
 
virtual ~PCEvent ()
 
virtual const std::string name () const
 
std::string descr () const
 
Addr pc () const
 
bool remove ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 127 of file system.hh.

Constructor & Destructor Documentation

DumpStatsPCEvent::DumpStatsPCEvent ( PCEventQueue q,
const std::string &  desc,
Addr  addr 
)
inline

Definition at line 130 of file system.hh.

Member Function Documentation

void DumpStatsPCEvent::process ( ThreadContext tc)
virtual

This function is called whenever the the kernel function "__switch_to" is called to change running tasks.

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

Implements PCEvent.

Definition at line 287 of file system.cc.

References ccprintf(), ThreadContext::cpuId(), Linux::ThreadInfo::curTaskMm(), Linux::ThreadInfo::curTaskName(), Linux::ThreadInfo::curTaskPID(), Linux::ThreadInfo::curTaskTGID(), curTick(), ThreadContext::getCpuPtr(), ThreadContext::getSystemPtr(), LinuxArmSystem::mapPid(), SparcISA::mm, panic, ThreadContext::readIntReg(), Stats::schedStatEvent(), OutputStream::stream(), LinuxArmSystem::taskFile, LinuxArmSystem::taskMap, and MipsISA::ti.


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

Generated on Fri Jun 9 2017 13:04:09 for gem5 by doxygen 1.8.6