trace: [simple] Do not include "trace/simple.h" in generated tracer headers
PATCH 1/1 trace: [simple] Do not include "trace/simple.h" in generated tracer headers
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]>
--
Cc: Stefan Hajnoczi <[email protected]>
--- scripts/tracetool/backend/simple.py | 3 --- trace/simple.c | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-)
scripts/tracetool/backend/simple.py +0 -3
@@ -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,
trace/simple.c +2 -0
@@ -8,6 +8,8 @@* */ +#include "trace/simple.h" +#include <stdlib.h> #include <stdint.h> #include <stdio.h>
trace/simple.c line 15
Quoted 13 lines · Lluís Vilanova
trace/simple.c +2
-0@@ -8,6 +8,8 @@* */ +#include "trace/simple.h" +#include <stdlib.h> #include <stdint.h> #include <stdio.h>
Please put user-defined header #includes (<>) below system header #includes (""). This ensures we don't define macros that affect system headers.