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 trace: provide mechanism for registering trace events 2016-10-12 09:52:50 +02:00
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 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
Makefile.objs trace: fix tcg tracing build breakage 2017-03-28 11:07:46 +01:00
mem-internal.h
mem.h
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