Re: [Qemu-devel] [PATCH v2 4/5] trace: [tcg] Do not generate TCG code to trace dinamically-disabled events

2016-09-26 Thread Lluís Vilanova
Stefan Hajnoczi writes: > On Thu, Sep 15, 2016 at 05:50:58PM +0200, Lluís Vilanova wrote: > In the subject line: > s/dinamically-disabled/dynamically/ >> for e in events: >> +# tracer without checks >> +out('', >> +'static inline void __nocheck__%(api)s(%(args)s)', >

Re: [Qemu-devel] [PATCH v2 4/5] trace: [tcg] Do not generate TCG code to trace dinamically-disabled events

2016-09-26 Thread Stefan Hajnoczi
On Thu, Sep 15, 2016 at 05:50:58PM +0200, Lluís Vilanova wrote: In the subject line: s/dinamically-disabled/dynamically/ > for e in events: > +# tracer without checks > +out('', > +'static inline void __nocheck__%(api)s(%(args)s)', In QEMU we avoid using double

[Qemu-devel] [PATCH v2 4/5] trace: [tcg] Do not generate TCG code to trace dinamically-disabled events

2016-09-15 Thread Lluís Vilanova
If an event is dynamically disabled, the TCG code that calls the execution-time tracer is not generated. Removes the overheads of execution-time tracers for dynamically disabled events. As a bonus, also avoids checking the event state when the execution-time tracer is called from TCG-generated