summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2016-12-19 16:25:39 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2016-12-19 16:25:39 +0000
commit8702208f3f0309cd1f88aa12b85b4ea31e6ee85c (patch)
treeb6bafc71b731c861047c0d1dec18e1b732f8e6b6 /configs
parent73627fa007f130c4dad34aadf1afa1d614de4669 (diff)
downloadgem5-8702208f3f0309cd1f88aa12b85b4ea31e6ee85c.tar.xz
python: Export periodicStatDump
Some configuration scripts need periodic stat dumps. One of the ways this can be achieved is by using the pariodicStatDump helper function. This function was previously only exported in the internal name space. Export it as a normal function in m5.stat instead. Change-Id: Ic88bf1fd33042a62ab436d5944d8ed778264ac98 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Diffstat (limited to 'configs')
-rw-r--r--configs/dram/lat_mem_rd.py2
-rw-r--r--configs/dram/sweep.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/configs/dram/lat_mem_rd.py b/configs/dram/lat_mem_rd.py
index d4015a522..1e0652bba 100644
--- a/configs/dram/lat_mem_rd.py
+++ b/configs/dram/lat_mem_rd.py
@@ -42,7 +42,7 @@ import os
import m5
from m5.objects import *
from m5.util import addToPath
-from m5.internal.stats import periodicStatDump
+from m5.stats import periodicStatDump
addToPath('../')
from common import MemConfig
diff --git a/configs/dram/sweep.py b/configs/dram/sweep.py
index 2797abef0..ac232a8fd 100644
--- a/configs/dram/sweep.py
+++ b/configs/dram/sweep.py
@@ -40,7 +40,7 @@ import optparse
import m5
from m5.objects import *
from m5.util import addToPath
-from m5.internal.stats import periodicStatDump
+from m5.stats import periodicStatDump
addToPath('../')