diff mbox

tracetool: Include osdep.h in generated-ust.c

Message ID 1456240661-15422-1-git-send-email-peter.maydell@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Peter Maydell Feb. 23, 2016, 3:17 p.m. UTC
When generating the trace/generated-ust.c source file, make sure
it includes osdep.h as its first include.

This fixes compilation with --enable-trace-backends=ust

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
Picked up by the travis build tests.

 scripts/tracetool/format/ust_events_c.py | 2 ++
 1 file changed, 2 insertions(+)

Comments

Eric Blake Feb. 23, 2016, 3:41 p.m. UTC | #1
On 02/23/2016 08:17 AM, Peter Maydell wrote:
> When generating the trace/generated-ust.c source file, make sure
> it includes osdep.h as its first include.
> 
> This fixes compilation with --enable-trace-backends=ust
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> Picked up by the travis build tests.
> 
>  scripts/tracetool/format/ust_events_c.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/scripts/tracetool/format/ust_events_c.py b/scripts/tracetool/format/ust_events_c.py
> index bc97093..52100c0 100644
> --- a/scripts/tracetool/format/ust_events_c.py
> +++ b/scripts/tracetool/format/ust_events_c.py
> @@ -22,6 +22,8 @@ def generate(events, backend):
>  
>      out('/* This file is autogenerated by tracetool, do not edit. */',
>          '',
> +	'#include "qemu/osdep.h"',
> +	'',

TAB-damaged.  With that fixed,
Reviewed-by: Eric Blake <eblake@redhat.com>

>          '#define TRACEPOINT_DEFINE',
>          '#define TRACEPOINT_CREATE_PROBES',
>          '',
>
Peter Maydell Feb. 23, 2016, 4:13 p.m. UTC | #2
On 23 February 2016 at 15:41, Eric Blake <eblake@redhat.com> wrote:
> On 02/23/2016 08:17 AM, Peter Maydell wrote:
>> When generating the trace/generated-ust.c source file, make sure
>> it includes osdep.h as its first include.
>>
>> This fixes compilation with --enable-trace-backends=ust
>>
>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>> ---
>> Picked up by the travis build tests.
>>
>>  scripts/tracetool/format/ust_events_c.py | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/scripts/tracetool/format/ust_events_c.py b/scripts/tracetool/format/ust_events_c.py
>> index bc97093..52100c0 100644
>> --- a/scripts/tracetool/format/ust_events_c.py
>> +++ b/scripts/tracetool/format/ust_events_c.py
>> @@ -22,6 +22,8 @@ def generate(events, backend):
>>
>>      out('/* This file is autogenerated by tracetool, do not edit. */',
>>          '',
>> +     '#include "qemu/osdep.h"',
>> +     '',
>
> TAB-damaged.  With that fixed,
> Reviewed-by: Eric Blake <eblake@redhat.com>

Thanks; applied to master as a buildfix (with the tab damage fixed).

-- PMM
diff mbox

Patch

diff --git a/scripts/tracetool/format/ust_events_c.py b/scripts/tracetool/format/ust_events_c.py
index bc97093..52100c0 100644
--- a/scripts/tracetool/format/ust_events_c.py
+++ b/scripts/tracetool/format/ust_events_c.py
@@ -22,6 +22,8 @@  def generate(events, backend):
 
     out('/* This file is autogenerated by tracetool, do not edit. */',
         '',
+	'#include "qemu/osdep.h"',
+	'',
         '#define TRACEPOINT_DEFINE',
         '#define TRACEPOINT_CREATE_PROBES',
         '',