diff options
author | Curtis Dunham <Curtis.Dunham@arm.com> | 2015-09-30 15:21:55 -0500 |
---|---|---|
committer | Curtis Dunham <Curtis.Dunham@arm.com> | 2015-09-30 15:21:55 -0500 |
commit | 02881a7bf3e5a5920d258d13ed0aed282f252f07 (patch) | |
tree | 73b16a32bbfc03c789d75c35d951b108cae98a94 /src/python/swig | |
parent | ccf4f6c3d7616c546d78eb21d22ebda812b5e2bb (diff) | |
download | gem5-02881a7bf3e5a5920d258d13ed0aed282f252f07.tar.xz |
base: remove Trace::enabled flag
The DTRACE() macro tests both Trace::enabled and the specific flag. This
change uses the same administrative interface for enabling/disabling
tracing, but masks the SimpleFlags settings directly. This eliminates a
load for every DTRACE() test, e.g. DPRINTF.
Diffstat (limited to 'src/python/swig')
-rw-r--r-- | src/python/swig/trace.i | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/python/swig/trace.i b/src/python/swig/trace.i index 6525b3e51..50ff7fd3d 100644 --- a/src/python/swig/trace.i +++ b/src/python/swig/trace.i @@ -54,9 +54,11 @@ ignore(const char *expr) Trace::getDebugLogger()->setIgnore(ignore); } -using Trace::enabled; +inline void enable() { Trace::enable(); } +inline void disable() { Trace::disable(); } %} extern void output(const char *string); extern void ignore(const char *expr); -extern bool enabled; +extern void enable(); +extern void disable(); |