gem5/tests/configs
Andreas Sandberg 60b26f1546 base: Refactor logging to make log level selection cleaner
It's currently possible to change the log level in gem5 by tweaking a
set of global variables. These variables are currently exposed to
Python using SWIG. This mechanism is far from ideal for two reasons:
First, changing the log level requires that the Python world enables
or disables individual levels. Ideally, this should be a single call
where a log level is selected. Second, exporting global variables is
poorly supported by most Python frameworks. SWIG puts variables in
their own namespace and PyBind doesn't seem to support it at all.

This changeset refactors the logging code to create a more abstract
interface. Each log level is associated with an instance of a Logger
class. This class contains common functionality, an enable flag, and a
verbose flag.

Available LogLevels are described by the LogLevel class. Lower log
levels are used for more critical messages (PANIC being level 0) and
higher levels for less critical messages. The highest log level that
is printed is controlled by calling Logger:setLevel().

Change-Id: I31e44299d242d953197a8e62679250c91d6ef776
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Gabor Dozsa <gabor.dozsa@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
2017-02-27 11:25:01 +00:00
..
alpha_generic.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
arm_generic.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
base_config.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
checkpoint.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
gpu-randomtest-ruby.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
gpu-ruby.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
learning-gem5-p1-simple.py tests: Enable test running outside of gem5's source tree 2016-05-09 11:32:07 +01:00
learning-gem5-p1-two-level.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
memcheck.py tests: Check for TrafficGen as part of memcheck regression 2016-11-30 11:15:21 -05:00
memtest-filter.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
memtest-ruby.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
memtest.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
minor-timing-mp.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
minor-timing.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
o3-timing-checker.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
o3-timing-mp-ruby.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
o3-timing-mp.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
o3-timing-mt.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
o3-timing-ruby.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
o3-timing.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
pc-o3-timing.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
pc-simple-atomic.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
pc-simple-timing-ruby.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
pc-simple-timing.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
pc-switcheroo-full.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-minor-dual.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-minor.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-o3-checker.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-o3-dual.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-o3.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-simple-atomic-checkpoint.py test, arm: Add scripts to test checkpoints 2015-03-19 04:06:20 -04:00
realview-simple-atomic-dual.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
realview-simple-atomic.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
realview-simple-timing-dual.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-simple-timing.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-switcheroo-atomic.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
realview-switcheroo-full.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-switcheroo-o3.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview-switcheroo-timing.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-minor-dual.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-minor.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-o3-checker.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-o3-dual.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-o3.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-simple-atomic-checkpoint.py test, arm: Add scripts to test checkpoints 2015-03-19 04:06:20 -04:00
realview64-simple-atomic-dual.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-simple-atomic.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-simple-timing-dual.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-simple-timing.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-switcheroo-atomic.py arm, tests: Update config files to more recent kernels and create 64-bit regressions. 2014-10-29 23:18:27 -05:00
realview64-switcheroo-full.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-switcheroo-o3.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
realview64-switcheroo-timing.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
rubytest-ruby.py tests, ruby: Move rubytests from ALPHA (linux) to NULL (none) 2016-11-17 04:54:16 -05:00
simple-atomic-dummychecker.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
simple-atomic-mp-ruby.py ruby: Fix regressions and make Ruby configs Python packages 2016-10-13 03:17:19 -04:00
simple-atomic-mp.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
simple-atomic.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
simple-timing-mp-ruby.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
simple-timing-mp.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
simple-timing-ruby.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
simple-timing.py config: Add a BaseSESystem builder for re-use in regressions 2013-06-27 05:49:49 -04:00
switcheroo.py base: Refactor logging to make log level selection cleaner 2017-02-27 11:25:01 +00:00
t1000-simple-atomic.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
tgen-dram-ctrl.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
tgen-simple-mem.py tests: Remove working dir assumption in tgen tests 2016-06-02 15:20:24 +01:00
tsunami-minor-dual.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
tsunami-minor.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
tsunami-o3-dual.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
tsunami-o3.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
tsunami-simple-atomic-dual.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
tsunami-simple-atomic.py test: Use SimpleMemory for atomic full-system tests 2013-11-01 11:56:14 -04:00
tsunami-simple-timing-dual.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
tsunami-simple-timing.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
tsunami-switcheroo-full.py mem: Update DRAM configuration names 2017-02-14 15:09:18 -06:00
twosys-tsunami-simple-atomic.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00
x86_generic.py config: Make configs/common a Python package 2016-10-14 10:37:38 -04:00