1. 18 Dec, 2017 3 commits
  2. 31 Jan, 2017 1 commit
  3. 12 Oct, 2016 1 commit
    • Daniel P. Berrange's avatar
      trace: don't abort qemu if ftrace can't be initialized · 8ed53728
      Daniel P. Berrange authored
      If the ftrace backend is compiled into QEMU, any attempt
      to start QEMU while non-root will fail due to the
      inability to open /sys/kernel/debug/tracing/tracing_on.
      Add a fallback into the code so that it connects up the
      trace_marker_fd variable to /dev/null when getting
      EACCES on the 'trace_on' file. This allows QEMU to
      run, with ftrace turned into a no-op.
      [Fixed s/setting/getting/ and s/EACCESS/EACCES/ errors pointed out by
      Eric Blake <eblake@redhat.com>.
      Signed-off-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
      Message-id: 1475588159-30598-13-git-send-email-berrange@redhat.com
      Signed-off-by: 's avatarStefan Hajnoczi <stefanha@redhat.com>
  4. 04 Feb, 2016 1 commit
    • Peter Maydell's avatar
      all: Clean up includes · d38ea87a
      Peter Maydell authored
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      This commit was created with scripts/clean-includes.
      Signed-off-by: 's avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-16-git-send-email-peter.maydell@linaro.org
  5. 09 Jun, 2014 1 commit
    • Lluís Vilanova's avatar
      trace: Multi-backend tracing · 5b808275
      Lluís Vilanova authored
      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: 's avatarLluís Vilanova <vilanova@ac.upc.edu>
      Signed-off-by: 's avatarStefan Hajnoczi <stefanha@redhat.com>
  6. 03 May, 2013 1 commit
    • Eiichi Tsukata's avatar
      trace: Add ftrace tracing backend · 781e9545
      Eiichi Tsukata authored
      This patch adds a ftrace tracing backend which sends trace event to
      ftrace marker file. You can effectively compare qemu trace data and
      kernel(especially, kvm.ko when using KVM) trace data.
      The ftrace backend is restricted to Linux only.
      To try out the ftrace backend:
       $ ./configure --trace-backend=ftrace
       $ make
      if you use KVM, enable kvm events in ftrace:
       # sudo echo 1 > /sys/kernel/debug/tracing/events/kvm/enable
      After running qemu by root user, you can get the trace:
       # cat /sys/kernel/debug/tracing/trace
      Signed-off-by: 's avatarEiichi Tsukata <eiichi.tsukata.xh@hitachi.com>
      Signed-off-by: 's avatarStefan Hajnoczi <stefanha@redhat.com>