sim: Call regStats of base-class as well

We want to extend the stats of objects hierarchically and thus it is necessary
to register the statistics of the base-class(es), as well.  For now, these are
empty, but generic stats will be added there.

Patch originally provided by Akash Bagdia at ARM Ltd.
This commit is contained in:
Stephan Diestelhorst
2016-06-06 17:16:43 +01:00
parent 672c06a01d
commit 589033c94c
15 changed files with 30 additions and 0 deletions

View File

@@ -36,6 +36,8 @@
void
EtherDevice::regStats()
{
PciDevice::regStats();
txBytes
.name(name() + ".txBytes")
.desc("Bytes Transmitted")