Skip to content

Commit

Permalink
trace: [simple] Do not include "trace/simple.h" in generated tracer h…
Browse files Browse the repository at this point in the history
…eaders

The header is not necessary, given that the simple backend does not define any
inlined tracing routines.

Signed-off-by: Lluís Vilanova <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
Lluís Vilanova authored and stefanhaRH committed Jan 27, 2014
1 parent 8a745f2 commit b618c28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/tracetool/backend/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ def c(events):


def h(events):
out('#include "trace/simple.h"',
'')

for event in events:
out('void trace_%(name)s(%(args)s);',
name = event.name,
Expand Down
1 change: 1 addition & 0 deletions trace/simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "qemu/timer.h"
#include "trace.h"
#include "trace/control.h"
#include "trace/simple.h"

/** Trace file header event ID */
#define HEADER_EVENT_ID (~(uint64_t)0) /* avoids conflicting with TraceEventIDs */
Expand Down

0 comments on commit b618c28

Please sign in to comment.