Skip to content
Snippets Groups Projects
  1. Mar 06, 2020
  2. Mar 05, 2020
  3. Feb 22, 2020
  4. Feb 20, 2020
  5. Feb 18, 2020
  6. Feb 13, 2020
  7. Feb 12, 2020
  8. Feb 07, 2020
  9. Feb 03, 2020
    • Peter Maydell's avatar
      scripts/qemu-trace-stap: Convert documentation to rST · 605ffebb
      Peter Maydell authored
      
      The qemu-trace-stap documentation is currently in
      scripts/qemu-trace-stap.texi in Texinfo format, which we
      present to the user as:
       * a qemu-trace-stap manpage
       * but not (unusually for QEMU) part of the HTML docs
      
      Convert the documentation to rST format that lives in
      the docs/ subdirectory, and present it to the user as:
       * a qemu-trace-stap manpage
       * part of the interop/ Sphinx manual
      
      There are minor formatting changes to suit Sphinx, but no
      content changes.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Tested-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-id: 20200124162606.8787-8-peter.maydell@linaro.org
      605ffebb
    • Peter Maydell's avatar
      hxtool: Support SRST/ERST directives · b0cecc0d
      Peter Maydell authored
      
      We want to add support for including rST document fragments
      in our .hx files, in the same way we currently have texinfo
      fragments. These will be delimited by SRST and ERST directives,
      in the same way the texinfo is delimited by STEXI/ETEXI.
      The rST fragments will not be extracted by the hxtool
      script, but by a different mechanism, so all we need to
      do in hxtool is have it ignore all the text inside a
      SRST/ERST section, with suitable error-checking for
      mismatched rST-vs-texi fragment delimiters.
      
      The resulting effective state machine has only three states:
       * flag = 0, rstflag = 0 : reading section for C output
       * flag = 1, rstflag = 0 : reading texi fragment
       * flag = 0, rstflag = 1 : reading rST fragment
      and flag = 1, rstflag = 1 is not possible. Using two
      variables makes the parallel between the rST handling and
      the texi handling clearer; in any case all this code will
      be deleted once we've converted entirely to rST.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-id: 20200124162606.8787-3-peter.maydell@linaro.org
      b0cecc0d
  10. Jan 23, 2020
  11. Jan 22, 2020
  12. Jan 20, 2020
  13. Jan 14, 2020
  14. Jan 13, 2020
    • Stefan Hajnoczi's avatar
      trace: update qemu-trace-stap to Python 3 · 3f009716
      Stefan Hajnoczi authored
      qemu-trace-stap does not support Python 3 yet:
      
        $ scripts/qemu-trace-stap list path/to/qemu-system-x86_64
        Traceback (most recent call last):
          File "scripts/qemu-trace-stap", line 175, in <module>
            main()
          File "scripts/qemu-trace-stap", line 171, in main
            args.func(args)
          File "scripts/qemu-trace-stap", line 118, in cmd_list
            print_probes(args.verbose, "*")
          File "scripts/qemu-trace-stap", line 114, in print_probes
            if line.startswith(prefix):
        TypeError: startswith first arg must be bytes or a tuple of bytes, not str
      
      Now that QEMU requires Python 3.5 or later we can switch to pure Python
      3.  Use Popen()'s universal_newlines=True argument to treat stdout as
      text instead of binary.
      
      Fixes: 62dd1048 ("trace: add ability to do simple printf logging via systemtap")
      Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1787395
      
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Message-id: 20200107112438.383958-1-stefanha@redhat.com
      Message-Id: <20200107112438.383958-1-stefanha@redhat.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      3f009716
  15. Dec 17, 2019
    • Paolo Bonzini's avatar
      docs: tweak kernel-doc for QEMU coding standards · 4cf41794
      Paolo Bonzini authored
      
      Surprisingly, QEMU does have a pretty consistent doc comment style and
      it is not very different from the Linux kernel's.  Of the documentation
      "sigils", only "#" separates the QEMU doc comment style from Linux's,
      and it has 200+ instances vs. 6 for the kernel's '&struct foo' (all in
      accel/tcg/translate-all.c), so it's clear that the two standards are
      different in this respect.  In addition, our structs are typedefed and
      recognized by CamelCase names.
      
      Adjust kernel-doc's parser for these two aspects of the QEMU coding
      standards.  The patch has been valid, with hardly any change, for over
      two years, so it should not be an issue to keep kernel-doc in sync with
      the Linux copy.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      4cf41794
    • Paolo Bonzini's avatar
      docs: import Linux kernel-doc script and extension · e2c54635
      Paolo Bonzini authored
      
      Import Linux's kernel-doc script as of commit 15e2544ed38a1e, as well
      as the Sphinx extension to call kernel-doc according to the arguments
      and parameters given to a reStructuredText directive.
      
      The kernel-doc extension accepts a filename, which is relative to
      the QEMU source tree root.  The extension also notifies Sphinx about the
      document dependency on the file, causing the document to be rebuilt when
      the file has been changed.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      e2c54635
Loading