xemu/hw
Stefan Hajnoczi d87aa13803 trace: add trace_event_get_state_backends()
Code that checks dstate is unaware of SystemTap and LTTng UST dstate, so
the following trace event will not fire when solely enabled by SystemTap
or LTTng UST:

  if (trace_event_get_state(TRACE_MY_EVENT)) {
      str = g_strdup_printf("Expensive string to generate ...",
                            ...);
      trace_my_event(str);
      g_free(str);
  }

Add trace_event_get_state_backends() to fetch backend dstate.  Those
backends that use QEMU dstate fetch it as part of
generate_h_backend_dstate().

Update existing trace_event_get_state() callers to use
trace_event_get_state_backends() instead.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20170731140718.22010-3-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2017-08-01 12:13:07 +01:00
..
9pfs docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
acpi docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
adc STM32F2xx: Add the ADC device 2016-10-04 13:28:07 +01:00
alpha docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
arm docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
audio docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
block docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
bt be-hci: use backend functions 2017-06-02 11:33:53 +04:00
char docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
core loader: check get_image_size() return value 2017-07-31 13:06:38 +03:00
cpu hw/cpu: core.c can be compiled as common object 2017-06-09 12:02:55 +10:00
cris hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
display docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
dma docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
gpio qdev: Replace cannot_instantiate_with_device_add_yet with !user_creatable 2017-05-17 10:37:00 -03:00
i2c migration/next for 20170601 2017-06-02 14:07:53 +01:00
i386 docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
ide -----BEGIN PGP SIGNATURE----- 2017-07-19 13:43:58 +01:00
input docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
intc target/arm: Rename cp15.c6_rgnr to pmsav7.rnr 2017-07-31 13:09:52 +01:00
ipack ipack: Update e-mail address 2016-05-18 15:04:27 +03:00
ipmi qom: enforce readonly nature of link's check callback 2017-07-14 12:04:42 +02:00
isa docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
lm32 char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00
m68k hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
mem docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
microblaze hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
mips hw/mips: load_elf_strerror to report kernel loading failure 2017-07-28 13:32:32 +01:00
misc hw/mps2_scc: fix incorrect properties 2017-07-31 13:11:56 +01:00
moxie hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
net docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
nios2 hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
nvram docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
openrisc hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
pci docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
pci-bridge pci: Convert shpc_init() to Error 2017-07-03 22:29:49 +03:00
pci-host memory: Rename memory_region_init_ram() to memory_region_init_ram_nomigrate() 2017-07-14 17:59:42 +01:00
pcmcia hw: Clean up includes 2016-01-29 15:07:25 +00:00
ppc docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
s390x docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
scsi docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
sd docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
sh4 hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
smbios stubs: move smbios stubs to hw/smbios 2017-01-16 17:52:35 +01:00
sparc docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
sparc64 memory: Rename memory_region_init_ram() to memory_region_init_ram_nomigrate() 2017-07-14 17:59:42 +01:00
ssi xilinx_spips: allow mmio execution 2017-06-27 15:09:15 +02:00
timer docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
tpm clean-up: removed duplicate #includes 2016-10-28 18:17:24 +03:00
tricore hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
unicore32 fix qemu-system-unicore32 crashing when calling without -kernel 2017-07-31 13:05:49 +03:00
usb trace: add trace_event_get_state_backends() 2017-08-01 12:13:07 +01:00
vfio docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
virtio docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
watchdog shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
xen docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
xenpv xenfb: remove xen_init_display "temporary" hack 2017-07-07 11:10:03 -07:00
xtensa hw: Use new memory_region_init_{ram, rom, rom_device}() functions 2017-07-14 17:59:42 +01:00
Makefile.objs acpi: filter based on CONFIG_ACPI_X86 rather than TARGET 2017-01-16 17:52:35 +01:00