[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen master] trace: fix generated code build break



commit d4f7ca59017835784c6872dfab0e269d9b41b05a
Author:     Greg Kurz <groug@xxxxxxxx>
AuthorDate: Thu Nov 17 14:59:13 2016 +0100
Commit:     Stefan Hajnoczi <stefanha@xxxxxxxxxx>
CommitDate: Fri Nov 18 11:09:58 2016 +0000

    trace: fix generated code build break
    
    If the QEMU source dir is
    
        /var/tmp/aaa-qemu-clone
    
    and the build dir is
    
        /var/tmp/qemu-aio-poll-v2
    
    Then I get an error as:
    
    trace/generated-tracers.c:15950:13: error: invalid suffix "_trace_events"
     on integer constant
     TraceEvent *2_trace_events[] = {
                 ^
    trace/generated-tracers.c:15950:13: error: expected identifier or â??(â?? 
before
     numeric constant
    trace/generated-tracers.c: In function â??trace_2_register_eventsâ??:
    trace/generated-tracers.c:17949:32: error: invalid suffix "_trace_events" on
     integer constant
         trace_event_register_group(2_trace_events);
                                    ^
    make: *** [trace/generated-tracers.o] Error 1
    
    This patch fixes the issue.
    
    Reported-by: Fam Zheng <famz@xxxxxxxxxx>
    Signed-off-by: Greg Kurz <groug@xxxxxxxx>
    Tested-by: Fam Zheng <famz@xxxxxxxxxx>
    Signed-off-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>
---
 scripts/tracetool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/tracetool.py b/scripts/tracetool.py
index fe9c9e9..c9e4737 100755
--- a/scripts/tracetool.py
+++ b/scripts/tracetool.py
@@ -70,7 +70,7 @@ def make_group_name(filename):
 
     if dirname == "":
         return "common"
-    return re.sub(r"[^A-Za-z0-9]", "_", dirname)
+    return "_" + re.sub(r"[^A-Za-z0-9]", "_", dirname)
 
 def main(args):
     global _SCRIPT
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.