sim: Update stats style of System and Process
Change-Id: I3af072a61a18f4fbba3f7d4b632c58501e7b7ae8 Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37995 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
@@ -128,7 +128,8 @@ Process::Process(const ProcessParams ¶ms, EmulationPageTable *pTable,
|
||||
_pid(params.pid), _ppid(params.ppid),
|
||||
_pgid(params.pgid), drivers(params.drivers),
|
||||
fds(make_shared<FDArray>(params.input, params.output, params.errout)),
|
||||
childClearTID(0)
|
||||
childClearTID(0),
|
||||
ADD_STAT(numSyscalls, "Number of system calls")
|
||||
{
|
||||
if (_pid >= System::maxPID)
|
||||
fatal("_pid is too large: %d", _pid);
|
||||
@@ -251,19 +252,6 @@ Process::clone(ThreadContext *otc, ThreadContext *ntc,
|
||||
np->envp.insert(np->envp.end(), envp.begin(), envp.end());
|
||||
}
|
||||
|
||||
void
|
||||
Process::regStats()
|
||||
{
|
||||
SimObject::regStats();
|
||||
|
||||
using namespace Stats;
|
||||
|
||||
numSyscalls
|
||||
.name(name() + ".numSyscalls")
|
||||
.desc("Number of system calls")
|
||||
;
|
||||
}
|
||||
|
||||
void
|
||||
Process::revokeThreadContext(int context_id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user