9397740244
Instead of having a global dstate array, declare a single 'uint16 TRACE_${EVENT_NAME}_DSTATE' variable for each trace event. Record a pointer to this variable in the TraceEvent struct too. By turning trace_event_get_state_dynamic_by_id into a macro, this still hits the fast path, and cache affinity is ensured by declaring all the uint16 vars adjacent to each other. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1475588159-30598-7-git-send-email-berrange@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> |
||
---|---|---|
.. | ||
arch-query-cpu-def.c | ||
arch-query-cpu-model-baseline.c | ||
arch-query-cpu-model-comparison.c | ||
arch-query-cpu-model-expansion.c | ||
bdrv-next-monitor-owned.c | ||
blk-commit-all.c | ||
blockdev-close-all-bdrv-states.c | ||
clock-warp.c | ||
cpu-get-clock.c | ||
cpu-get-icount.c | ||
cpus.c | ||
dump.c | ||
fd-register.c | ||
fdset-add-fd.c | ||
fdset-find-fd.c | ||
fdset-get-fd.c | ||
fdset-remove-fd.c | ||
gdbstub.c | ||
get-fd.c | ||
get-next-serial.c | ||
get-vm-name.c | ||
iohandler.c | ||
iothread-lock.c | ||
ipmi.c | ||
is-daemonized.c | ||
kvm.c | ||
machine-init-done.c | ||
Makefile.objs | ||
migr-blocker.c | ||
mon-is-qmp.c | ||
mon-printf.c | ||
monitor-init.c | ||
notify-event.c | ||
pc_madt_cpu_entry.c | ||
qmp_pc_dimm_device_list.c | ||
qtest.c | ||
replay-user.c | ||
replay.c | ||
reset.c | ||
runstate-check.c | ||
set-fd-handler.c | ||
slirp.c | ||
smbios_type_38.c | ||
sysbus.c | ||
target-get-monitor-def.c | ||
target-monitor-defs.c | ||
trace-control.c | ||
uuid.c | ||
vhost.c | ||
vm-stop.c | ||
vmstate.c |