Skip to content
Snippets Groups Projects
  1. Feb 18, 2021
    • Alex Bennée's avatar
      plugins: new hwprofile plugin · a622d64e
      Alex Bennée authored
      
      This is a plugin intended to help with profiling access to various
      bits of system hardware. It only really makes sense for system
      emulation.
      
      It takes advantage of the recently exposed helper API that allows us
      to see the device name (memory region name) associated with a device.
      
      You can specify arg=read or arg=write to limit the tracking to just
      reads or writes (by default it does both).
      
      The pattern option:
      
        -plugin ./tests/plugin/libhwprofile.so,arg=pattern
      
      will allow you to see the access pattern to devices, eg:
      
        gic_cpu @ 0xffffffc010040000
          off:00000000, 8, 1, 8, 1
          off:00000000, 4, 1, 4, 1
          off:00000000, 2, 1, 2, 1
          off:00000000, 1, 1, 1, 1
      
      The source option:
      
        -plugin ./tests/plugin/libhwprofile.so,arg=source
      
      will track the virtual source address of the instruction making the
      access:
      
        pl011 @ 0xffffffc010031000
          pc:ffffffc0104c785c, 1, 4, 0, 0
          pc:ffffffc0104c7898, 1, 4, 0, 0
          pc:ffffffc010512bcc, 2, 1867, 0, 0
      
      You cannot mix source and pattern.
      
      Finally the match option allow you to limit the tracking to just the
      devices you care about.
      
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Tested-by: default avatarRobert Foley <robert.foley@linaro.org>
      Reviewed-by: default avatarRobert Foley <robert.foley@linaro.org>
      Message-Id: <20210213130325.14781-4-alex.bennee@linaro.org>
      a622d64e
  2. Feb 16, 2021
  3. Feb 15, 2021
  4. Feb 12, 2021
  5. Feb 10, 2021
  6. Feb 09, 2021
  7. Feb 08, 2021
  8. Feb 05, 2021
  9. Feb 04, 2021
  10. Feb 01, 2021
  11. Jan 29, 2021
  12. Jan 27, 2021
    • Vladimir Sementsov-Ogievskiy's avatar
      iotests: add findtests.py · b25a9488
      Vladimir Sementsov-Ogievskiy authored
      
      Add python script with new logic of searching for tests:
      
      Current ./check behavior:
       - tests are named [0-9][0-9][0-9]
       - tests must be registered in group file (even if test doesn't belong
         to any group, like 142)
      
      Behavior of findtests.py:
       - group file is dropped
       - tests are all files in tests/ subdirectory (except for .out files),
         so it's not needed more to "register the test", just create it with
         appropriate name in tests/ subdirectory. Old names like
         [0-9][0-9][0-9] (in root iotests directory) are supported too, but
         not recommended for new tests
       - groups are parsed from '# group: ' line inside test files
       - optional file group.local may be used to define some additional
         groups for downstreams
       - 'disabled' group is used to temporary disable tests. So instead of
         commenting tests in old 'group' file you now can add them to
         disabled group with help of 'group.local' file
       - selecting test ranges like 5-15 are not supported more
         (to support restarting failed ./check command from the middle of the
          process, new argument is added: --start-from)
      
      Benefits:
       - no rebase conflicts in group file on patch porting from branch to
         branch
       - no conflicts in upstream, when different series want to occupy same
         test number
       - meaningful names for test files
         For example, with digital number, when some person wants to add some
         test about block-stream, he most probably will just create a new
         test. But if there would be test-block-stream test already, he will
         at first look at it and may be just add a test-case into it.
         And anyway meaningful names are better.
      
      This commit doesn't update check behavior (which will be done in
      further commit), still, the documentation changed like new behavior is
      already here.  Let's live with this small inconsistency for the
      following few commits, until final change.
      
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20210125185056.129513-3-vsementsov@virtuozzo.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      b25a9488
    • Wainer dos Santos Moschetta's avatar
      docs/devel: Explain how acceptance tests can be skipped · cf5891ec
      Wainer dos Santos Moschetta authored
      
      Documented under the "Acceptance tests using the Avocado Framework"
      section in testing.rst how environment variables are used to skip tests.
      
      Signed-off-by: default avatarWainer dos Santos Moschetta <wainersm@redhat.com>
      Message-Id: <20210115210022.417996-1-wainersm@redhat.com>
      Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      cf5891ec
  13. Jan 23, 2021
    • Paolo Bonzini's avatar
      qemu-option: warn for short-form boolean options · ccd3b3b8
      Paolo Bonzini authored
      
      Options such as "server" or "nowait", that are commonly found in -chardev,
      are sugar for "server=on" and "wait=off".  This is quite surprising and
      also does not have any notion of typing attached.  It is even possible to
      do "-device e1000,noid" and get a device with "id=off".
      
      Deprecate it and print a warning when it is encountered.  In general,
      this short form for boolean options only seems to be in wide use for
      -chardev and -spice.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      ccd3b3b8
Loading