Message ID | 20120321215322.3272.79042.stgit@ginnungagap.bsc.es |
---|---|
State | New |
Headers | show |
diff --git a/scripts/tracetool.py b/scripts/tracetool.py index 5379e19..bba4c54a 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@ -48,6 +48,13 @@ def trace_h_begin(events): #include "qemu-common.h"''' def trace_h_end(events): + for e in events: + if 'disable' in e.properties: + enabled = 0 + else: + enabled = 1 + print "#define TRACE_%s_ENABLED %d" % (e.name.upper(), enabled) + print print '#endif /* TRACE_H */' def trace_c_begin(events):