1. 27 6月, 2018 1 次提交
  2. 12 3月, 2018 2 次提交
  3. 19 2月, 2018 1 次提交
  4. 29 1月, 2018 3 次提交
  5. 01 8月, 2017 1 次提交
    • S
      trace: add TRACE_<event>_BACKEND_DSTATE() · 3932ef3f
      Stefan Hajnoczi 提交于
      QEMU keeps track of trace event enabled/disabled state and provides
      monitor commands to inspect and modify the "dstate".  SystemTap and
      LTTng UST maintain independent enabled/disabled states for each trace
      event, the other backends rely on QEMU dstate.
      
      Introduce a new per-event macro that combines backend-specific dstate
      like this:
      
        #define TRACE_MY_EVENT_BACKEND_DSTATE() ( \
            QEMU_MY_EVENT_ENABLED() || /* SystemTap */ \
            tracepoint_enabled(qemu, my_event) /* LTTng UST */ || \
            false)
      
      This will be used to extend trace_event_get_state() in the next patch.
      
      [Daniel Berrange pointed out that QEMU_MY_EVENT_ENABLED() must be true
      by default, not false.  This way events will fire even if the DTrace
      implementation does not implement the SystemTap semaphores feature.
      
      Ubuntu Precise uses lttng-ust-dev 2.0.2 which does not have
      tracepoint_enabled(), so we need a compatibility wrapper to keep Travis
      builds passing.
      --Stefan]
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 20170731140718.22010-2-stefanha@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      
      fixup! trace: add TRACE_<event>_BACKEND_DSTATE()
      3932ef3f
  6. 17 7月, 2017 1 次提交
  7. 08 5月, 2017 1 次提交
    • D
      trace: disallow more than 10 arguments per trace event · f3fddaf6
      Daniel P. Berrange 提交于
      The UST trace backend can only cope with upto 10 arguments. To ensure we
      don't exceed the limit when UST is not compiled in, disallow more than
      10 arguments upfront.
      
      This prevents the case where:
      
        commit 0fc8aec7
        Author: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
        Date:   Tue Apr 18 10:20:20 2017 +0800
      
          COLO-compare: Optimize tcp compare trace event
      
          Optimize two trace events as one, adjust print format make
          it easy to read. rename trace_colo_compare_pkt_info_src/dst
          to trace_colo_compare_tcp_info.
      
      regressed the fix done in
      
        commit 2dfe5113
        Author: Alex Bennée <alex.bennee@linaro.org>
        Date:   Fri Oct 28 14:25:59 2016 +0100
      
          net: split colo_compare_pkt_info into two trace events
      
          It seems there is a limit to the number of arguments a UST trace event
          can take and at 11 the previous trace command broke the build. Split the
          trace into a src pkt and dst pkt trace to fix this.
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
          Message-id: 20161028132559.8324-1-alex.bennee@linaro.org
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      
      Now we get an immediate fail even when UST is disabled:
      
        GEN     net/trace.h
      Traceback (most recent call last):
        File "/home/berrange/src/virt/qemu/scripts/tracetool.py", line 154, in <module>
          main(sys.argv)
        File "/home/berrange/src/virt/qemu/scripts/tracetool.py", line 145, in main
          events.extend(tracetool.read_events(fh))
        File "/home/berrange/src/virt/qemu/scripts/tracetool/__init__.py", line 307, in read_events
          event = Event.build(line)
        File "/home/berrange/src/virt/qemu/scripts/tracetool/__init__.py", line 244, in build
          event = Event(name, props, fmt, args)
        File "/home/berrange/src/virt/qemu/scripts/tracetool/__init__.py", line 196, in __init__
          "argument count" % name)
      ValueError: Event 'colo_compare_tcp_info' has more than maximum permitted argument count
      Makefile:96: recipe for target 'net/trace.h-timestamp' failed
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 20170426153900.21066-1-berrange@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      f3fddaf6
  8. 12 10月, 2016 5 次提交
  9. 01 3月, 2016 5 次提交
  10. 18 11月, 2014 1 次提交
  11. 26 9月, 2014 3 次提交
  12. 12 8月, 2014 4 次提交
  13. 09 6月, 2014 1 次提交
    • L
      trace: Multi-backend tracing · 5b808275
      Lluís Vilanova 提交于
      Adds support to compile QEMU with multiple tracing backends at the same time.
      
      For example, you can compile QEMU with:
      
        $ ./configure --enable-trace-backends=ftrace,dtrace
      
      Where 'ftrace' can be handy for having an in-flight record of events, and 'dtrace' can be later used to extract more information from the system.
      
      This patch allows having both available without recompiling QEMU.
      Signed-off-by: NLluís Vilanova <vilanova@ac.upc.edu>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      5b808275
  14. 08 5月, 2014 5 次提交
  15. 02 5月, 2012 2 次提交
  16. 18 4月, 2012 2 次提交