gem5  v20.1.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Linux::ThreadInfo Class Reference

#include <threadinfo.hh>

Public Member Functions

 ThreadInfo (ThreadContext *_tc)
 
 ~ThreadInfo ()
 
virtual Addr curThreadInfo ()
 
Addr curTaskInfo (Addr thread_info=0)
 
int32_t curTaskPIDFromTaskStruct (Addr task_struct)
 
int32_t curTaskPID (Addr thread_info=0)
 
int32_t curTaskTGIDFromTaskStruct (Addr task_struct)
 
int32_t curTaskTGID (Addr thread_info=0)
 
int64_t curTaskStartFromTaskStruct (Addr task_struct)
 
int64_t curTaskStart (Addr thread_info=0)
 
std::string curTaskNameFromTaskStruct (Addr task_struct)
 
std::string curTaskName (Addr thread_info=0)
 
int32_t curTaskMmFromTaskStruct (Addr task_struct)
 
int32_t curTaskMm (Addr thread_info=0)
 

Private Member Functions

template<typename T >
bool get_data (const char *symbol, T &data)
 

Private Attributes

ThreadContexttc
 
Systemsys
 
ByteOrder byteOrder
 

Detailed Description

Definition at line 37 of file threadinfo.hh.

Constructor & Destructor Documentation

◆ ThreadInfo()

Linux::ThreadInfo::ThreadInfo ( ThreadContext _tc)
inline

Definition at line 64 of file threadinfo.hh.

◆ ~ThreadInfo()

Linux::ThreadInfo::~ThreadInfo ( )
inline

Definition at line 70 of file threadinfo.hh.

Member Function Documentation

◆ curTaskInfo()

Addr Linux::ThreadInfo::curTaskInfo ( Addr  thread_info = 0)
inline

◆ curTaskMm()

int32_t Linux::ThreadInfo::curTaskMm ( Addr  thread_info = 0)
inline

Definition at line 180 of file threadinfo.hh.

References curTaskInfo(), and curTaskMmFromTaskStruct().

◆ curTaskMmFromTaskStruct()

int32_t Linux::ThreadInfo::curTaskMmFromTaskStruct ( Addr  task_struct)
inline

Definition at line 170 of file threadinfo.hh.

References get_data(), ThreadContext::getVirtProxy(), ArmISA::offset, PortProxy::read(), and tc.

Referenced by curTaskMm().

◆ curTaskName()

std::string Linux::ThreadInfo::curTaskName ( Addr  thread_info = 0)
inline

Definition at line 164 of file threadinfo.hh.

References curTaskInfo(), and curTaskNameFromTaskStruct().

◆ curTaskNameFromTaskStruct()

std::string Linux::ThreadInfo::curTaskNameFromTaskStruct ( Addr  task_struct)
inline

Definition at line 146 of file threadinfo.hh.

References get_data(), ThreadContext::getVirtProxy(), ArmISA::offset, PortProxy::readString(), and tc.

Referenced by curTaskName().

◆ curTaskPID()

int32_t Linux::ThreadInfo::curTaskPID ( Addr  thread_info = 0)
inline

Definition at line 106 of file threadinfo.hh.

References curTaskInfo(), and curTaskPIDFromTaskStruct().

◆ curTaskPIDFromTaskStruct()

int32_t Linux::ThreadInfo::curTaskPIDFromTaskStruct ( Addr  task_struct)
inline

Definition at line 96 of file threadinfo.hh.

References get_data(), ThreadContext::getVirtProxy(), ArmISA::offset, PortProxy::read(), and tc.

Referenced by curTaskPID().

◆ curTaskStart()

int64_t Linux::ThreadInfo::curTaskStart ( Addr  thread_info = 0)
inline

Definition at line 140 of file threadinfo.hh.

References curTaskInfo(), and curTaskStartFromTaskStruct().

◆ curTaskStartFromTaskStruct()

int64_t Linux::ThreadInfo::curTaskStartFromTaskStruct ( Addr  task_struct)
inline

Definition at line 128 of file threadinfo.hh.

References get_data(), ThreadContext::getVirtProxy(), ArmISA::offset, PortProxy::read(), and tc.

Referenced by curTaskStart().

◆ curTaskTGID()

int32_t Linux::ThreadInfo::curTaskTGID ( Addr  thread_info = 0)
inline

Definition at line 122 of file threadinfo.hh.

References curTaskInfo(), and curTaskTGIDFromTaskStruct().

◆ curTaskTGIDFromTaskStruct()

int32_t Linux::ThreadInfo::curTaskTGIDFromTaskStruct ( Addr  task_struct)
inline

Definition at line 112 of file threadinfo.hh.

References get_data(), ThreadContext::getVirtProxy(), ArmISA::offset, PortProxy::read(), and tc.

Referenced by curTaskTGID().

◆ curThreadInfo()

virtual Addr Linux::ThreadInfo::curThreadInfo ( )
inlinevirtual

Definition at line 74 of file threadinfo.hh.

References panic.

Referenced by curTaskInfo().

◆ get_data()

template<typename T >
bool Linux::ThreadInfo::get_data ( const char *  symbol,
T &  data 
)
inlineprivate

Member Data Documentation

◆ byteOrder

ByteOrder Linux::ThreadInfo::byteOrder
private

Definition at line 43 of file threadinfo.hh.

Referenced by get_data().

◆ sys

System* Linux::ThreadInfo::sys
private

Definition at line 41 of file threadinfo.hh.

Referenced by get_data().

◆ tc

ThreadContext* Linux::ThreadInfo::tc
private

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

Generated on Wed Sep 30 2020 14:03:06 for gem5 by doxygen 1.8.17