Message ID | 20120313200338.24179.53393.stgit@ginnungagap.bsc.es |
---|---|
State | New |
Headers | show |
diff --git a/scripts/tracetool.py b/scripts/tracetool.py index 6ef4374..0f76b50 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@ -123,6 +123,13 @@ def trace_h_begin(events): @for_format("h", END) 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 */'