Revision 45be2f5d scripts/tracetool/format/h.py
b/scripts/tracetool/format/h.py | ||
---|---|---|
25 | 25 |
'#include "qemu-common.h"') |
26 | 26 |
|
27 | 27 |
def end(events): |
28 |
for e in events: |
|
29 |
if "disable" in e.properties: |
|
30 |
enabled = 0 |
|
31 |
else: |
|
32 |
enabled = 1 |
|
33 |
out('#define TRACE_%s_ENABLED %d' % (e.name.upper(), enabled)) |
|
34 |
out('', |
|
35 |
'#endif /* TRACE__GENERATED_TRACERS_H */') |
|
28 |
out('#endif /* TRACE__GENERATED_TRACERS_H */') |
|
36 | 29 |
|
37 | 30 |
def nop(events): |
38 | 31 |
for e in events: |
Also available in: Unified diff