mirror_qemu/trace
Lluís Vilanova d01c05c955 trace: Allocate cpu->trace_dstate in place
There's little point in dynamically allocating the bitmap if we
know at compile-time the max number of events we want to support.
Thus, make room in the struct for the bitmap, which will make things
easier later: this paves the way for upcoming changes, in which
we'll use a u32 to fully capture cpu->trace_dstate.

This change also increases performance by saving a dereference and
improving locality--note that this is important since upcoming work
makes reading this bitmap fairly common.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Lluís Vilanova <vilanova@ac.upc.edu>
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Message-id: 149915725977.6295.15069969323605305641.stgit@frigg.lan
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2017-07-17 13:10:45 +01:00
..
Makefile.objs trace: fix tcg tracing build breakage 2017-03-28 11:07:46 +01:00
control-internal.h trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
control-target.c trace: Fix early setting of events with the "vcpu" property 2017-07-11 09:35:11 +01:00
control.c trace: Allocate cpu->trace_dstate in place 2017-07-17 13:10:45 +01:00
control.h trace: Fix dynamic event state on vCPU hot-unplug 2017-01-16 13:40:56 +00:00
event-internal.h trace: remove the TraceEventID and TraceEventVCPUID enums 2016-10-12 09:35:54 +02:00
ftrace.c trace: switch to modular code generation for sub-directories 2017-01-31 17:11:18 +00:00
ftrace.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
mem-internal.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
mem.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
qmp.c trace: convert code to use event iterators 2016-10-12 09:35:54 +02:00
simple.c trace: switch to modular code generation for sub-directories 2017-01-31 17:11:18 +00:00
simple.h trace: get rid of generated-events.h/generated-events.c 2016-10-12 09:54:52 +02:00