|
gem5
v21.0.1.0
|
Templatized storage and interface for a simple scalar stat. More...
#include <storage.hh>
Classes | |
| struct | Params |
Public Member Functions | |
| StatStor (Info *info) | |
| Builds this storage element and calls the base constructor of the datatype. More... | |
| void | set (Counter val) |
| The the stat to the given value. More... | |
| void | inc (Counter val) |
| Increment the stat by the given value. More... | |
| void | dec (Counter val) |
| Decrement the stat by the given value. More... | |
| Counter | value () const |
| Return the value of this stat as its base type. More... | |
| Result | result () const |
| Return the value of this stat as a result type. More... | |
| void | prepare (Info *info) |
| Prepare stat data for dumping or serialization. More... | |
| void | reset (Info *info) |
| Reset stat value to default. More... | |
| bool | zero () const |
Private Attributes | |
| Counter | data |
| The statistic value. More... | |
Templatized storage and interface for a simple scalar stat.
Definition at line 53 of file storage.hh.
|
inline |
Builds this storage element and calls the base constructor of the datatype.
Definition at line 66 of file storage.hh.
|
inline |
Decrement the stat by the given value.
| val | The new value. |
Definition at line 86 of file storage.hh.
References data, and X86ISA::val.
Referenced by TEST().
|
inline |
Increment the stat by the given value.
| val | The new value. |
Definition at line 80 of file storage.hh.
References data, and X86ISA::val.
Referenced by TEST().
|
inline |
Prepare stat data for dumping or serialization.
Definition at line 103 of file storage.hh.
Referenced by TEST().
|
inline |
Reset stat value to default.
Definition at line 108 of file storage.hh.
References data.
Referenced by TEST().
|
inline |
Return the value of this stat as a result type.
Definition at line 98 of file storage.hh.
References data.
Referenced by TEST().
|
inline |
The the stat to the given value.
| val | The new value. |
Definition at line 74 of file storage.hh.
References data, and X86ISA::val.
Referenced by TEST().
|
inline |
Return the value of this stat as its base type.
Definition at line 92 of file storage.hh.
References data.
Referenced by TEST().
|
inline |
Definition at line 113 of file storage.hh.
References data.
Referenced by TEST().
|
private |