Re: [Qemu-devel] [PULL v2 19/20] trace: introduce a formal group name for trace events

2016-10-17 Thread Greg Kurz
On Thu, 13 Oct 2016 15:58:55 +0200 Paolo Bonzini wrote: > On 12/10/2016 10:47, Stefan Hajnoczi wrote: > > +def make_group_name(filename): > > +dirname = os.path.realpath(os.path.dirname(filename)) > > +basedir = os.path.join(os.path.dirname(__file__), os.pardir) > >

Re: [Qemu-devel] [PULL v2 19/20] trace: introduce a formal group name for trace events

2016-10-13 Thread Paolo Bonzini
On 12/10/2016 10:47, Stefan Hajnoczi wrote: > +def make_group_name(filename): > +dirname = os.path.realpath(os.path.dirname(filename)) > +basedir = os.path.join(os.path.dirname(__file__), os.pardir) > +basedir = os.path.realpath(os.path.abspath(basedir)) > +dirname =

[Qemu-devel] [PULL v2 19/20] trace: introduce a formal group name for trace events

2016-10-12 Thread Stefan Hajnoczi
From: "Daniel P. Berrange" The declarations in the generated-tracers.h file are assuming there's only ever going to be one instance of this header, as they are not namespaced. When we have one header per event group, if a single source file needs to include multiple sets of