|
gem5
|
#include <system.hh>
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 |
| PCEventQueue * | queue |
| Addr | evpc |
|
inline |
|
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.