qemu-e2k/trace
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
..
control-internal.h
control-target.c exec: [tcg] Use different TBs according to the vCPU's dynamic tracing state 2017-07-17 13:11:05 +01:00
control.c trace: Allocate cpu->trace_dstate in place 2017-07-17 13:10:45 +01:00
control.h trace: add trace_event_get_state_backends() 2017-08-01 12:13:07 +01:00
event-internal.h
ftrace.c trace: switch to modular code generation for sub-directories 2017-01-31 17:11:18 +00:00
ftrace.h
Makefile.objs trace: fix tcg tracing build breakage 2017-03-28 11:07:46 +01:00
mem-internal.h
mem.h
qmp.c
simple.c trace: switch to modular code generation for sub-directories 2017-01-31 17:11:18 +00:00
simple.h