Skip to content
Snippets Groups Projects
  1. Nov 29, 2021
    • Juro Bystricky's avatar
      tests/plugin/syscall.c: fix compiler warnings · d5615bbf
      Juro Bystricky authored
      
      Fix compiler warnings. The warnings can result in a broken build.
      This patch fixes warnings such as:
      
      In file included from /usr/include/glib-2.0/glib.h:111,
                       from ../tests/plugin/syscall.c:13:
      ../tests/plugin/syscall.c: In function ‘print_entry’:
      /usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: error: ‘out’ may be
             used uninitialized in this function [-Werror=maybe-uninitialized]
         g_free (*pp);
         ^~~~~~~~~~~~
      ../tests/plugin/syscall.c:82:23: note: ‘out’ was declared here
           g_autofree gchar *out;
                             ^~~
      In file included from /usr/include/glib-2.0/glib.h:111,
                       from ../tests/plugin/syscall.c:13:
      ../tests/plugin/syscall.c: In function ‘vcpu_syscall_ret’:
      /usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: error: ‘out’ may be
              used uninitialized in this function [-Werror=maybe-uninitialized]
         g_free (*pp);
         ^~~~~~~~~~~~
      ../tests/plugin/syscall.c:73:27: note: ‘out’ was declared here
               g_autofree gchar *out;
                                 ^~~
      cc1: all warnings being treated as errors
      
      Signed-off-by: default avatarJuro Bystricky <juro.bystricky@intel.com>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20211128011551.2115468-1-juro.bystricky@intel.com>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20211129140932.4115115-9-alex.bennee@linaro.org>
      d5615bbf
  2. Nov 04, 2021
  3. Sep 02, 2021
  4. May 25, 2021
  5. Mar 17, 2021
  6. Feb 18, 2021
  7. Oct 09, 2020
  8. Sep 10, 2020
    • Alex Bennée's avatar
      plugins: move the more involved plugins to contrib · c17a386b
      Alex Bennée authored
      
      We have an exploding complexity problem in the testing so lets just
      move the more involved plugins into contrib. tests/plugins still exist
      for the basic plugins that exercise the API. We restore the old
      pre-meson style Makefile for contrib as it also doubles as a guide for
      out-of-tree plugin builds.
      
      While we are at it add some examples to the documentation and a
      specific plugins build target.
      
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20200909112742.25730-11-alex.bennee@linaro.org>
      c17a386b
  9. Aug 21, 2020
  10. Jul 15, 2020
  11. Jun 18, 2020
  12. Jun 16, 2020
    • Alex Bennée's avatar
      plugins: new lockstep plugin for debugging TCG changes · c81950a2
      Alex Bennée authored
      
      When we make changes to the TCG we sometimes cause regressions that
      are deep into the execution cycle of the guest. Debugging this often
      requires comparing large volumes of trace information to figure out
      where behaviour has diverged.
      
      The lockstep plugin utilises a shared socket so two QEMU's running
      with the plugin will write their current execution position and wait
      to receive the position of their partner process. When execution
      diverges the plugins output where they were and the previous few
      blocks before unloading themselves and letting execution continue.
      
      Originally I planned for this to be most useful with -icount but it
      turns out you can get divergence pretty quickly due to asynchronous
      qemu_cpu_kick_rr_cpus() events causing one side to eventually run into
      a short block a few cycles before the other side. For this reason I've
      added a bit of tracking and I think the divergence reporting could be
      finessed to report only if we really start to diverge in execution.
      
      An example run would be:
      
        qemu-system-sparc -monitor none -parallel none -net none \
          -M SS-20 -m 256 -kernel day11/zImage.elf \
          -plugin ./tests/plugin/liblockstep.so,arg=lockstep-sparc.sock \
          -d plugin,nochain
      
      with an identical command in another window in the same working
      directory.
      
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Reviewed-by: default avatarRobert Foley <robert.foley@linaro.org>
      Tested-by: default avatarRobert Foley <robert.foley@linaro.org>
      Cc: Richard Henderson <richard.henderson@linaro.org>
      Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Message-Id: <20200610155509.12850-3-alex.bennee@linaro.org>
      c81950a2
  13. Jun 08, 2020
  14. Feb 25, 2020
  15. Nov 12, 2019
  16. Oct 28, 2019
Loading