Skip to content

plugins/next pre-PR (hwprofile, regression fixes, icount count fix)

Alex Bennée qemu-arm qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest23 patches 6 repliesIn review
  2. v221 patches 31 repliesSuperseded
  3. v14 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23hw/virtio/pci: include vdev name in registered PCI sectionshw/virtio/virtio-pci.c+14 -80 replies
2/23plugins: add API to return a name for a IO deviceinclude/qemu/qemu-plugin.h plugins/api.c+26 -00 replies
3/23plugins: new hwprofile plugincontrib/plugins/Makefile contrib/plugins/hwprofile.c docs/devel/tcg-plugins.rst+340 -00 replies
4/23contrib: Don't use '#' flag of printf formatcontrib/plugins/hotblocks.c contrib/plugins/hotpages.c contrib/plugins/howvec.c +1 more+6 -60 replies
5/23contrib: Fix some code style problems, ERROR: "foo * bar" should be "foo *bar"contrib/plugins/howvec.c+1 -10 replies
6/23contrib: Add spaces around operatorcontrib/ivshmem-server/main.c+1 -10 replies
7/23contrib: space required after that ','contrib/plugins/howvec.c+6 -60 replies
8/23contrib: Open brace '{' following struct go on the same linecontrib/plugins/howvec.c+1 -20 replies
9/23accel/tcg/plugin-gen: fix the call signature for inline callbacksaccel/tcg/plugin-gen.c+11 -210 replies
10/23exec: Move TranslationBlock typedef to qemu/typedefs.hinclude/exec/tb-context.h include/hw/core/cpu.h include/hw/core/tcg-cpu-ops.h +6 more+8 -120 replies
11/23accel/tcg: Create io_recompile_replay_branch hookaccel/tcg/translate-all.c include/hw/core/tcg-cpu-ops.h+23 -40 replies
12/23target/mips: Create mips_io_recompile_replay_branchaccel/tcg/translate-all.c target/mips/cpu.c+20 -100 replies
13/23target/sh4: Create superh_io_recompile_replay_branchaccel/tcg/translate-all.c target/sh4/cpu.c+18 -120 replies
14/23tests/plugin: expand insn test to detect duplicate instructionstests/plugin/insn.c tests/tcg/i386/Makefile.softmmu-target tests/tcg/i386/Makefile.target +1 more+38 -11 reply
15/23tests/acceptance: add a new set of tests to exercise pluginsMAINTAINERS tests/acceptance/tcg_plugins.py+92 -00 replies
16/23accel/tcg: actually cache our partial icount TBaccel/tcg/cpu-exec.c+9 -80 replies
17/23accel/tcg: cache single instruction TB on pending replay exceptionaccel/tcg/cpu-exec.c+4 -401 reply
18/23accel/tcg: re-factor non-RAM execution codeaccel/tcg/translate-all.c+15 -150 replies
19/23accel/tcg: remove CF_NOCACHE and special casesaccel/tcg/translate-all.c include/exec/exec-all.h+15 -390 replies
20/23accel/tcg: allow plugin instrumentation to be disable via cflagsaccel/tcg/plugin-gen.c accel/tcg/translate-all.c accel/tcg/translator.c +4 more+49 -271 reply
21/23tests/acceptance: add a new tests to detect counting errorstests/acceptance/tcg_plugins.py+26 -00 replies
22/23tests/plugin: allow memory plugin to do both inline and callbackstests/plugin/mem.c+20 -72 replies
23/23tests/acceptance: add a memory callback checktests/acceptance/tcg_plugins.py+31 -01 reply

Reviews trailers per patch

18 of 23 patches have a Reviewed-by or Acked-by.

PatchRobert FoleyPhilippe Mathieu-DaudéMichael S. TsirkinAlex BennéeClement DeschampsEmilio G. CotaRichard HendersonWainer dos Santos MoschettaAaron Lindsay
1/23R-b R-b
2/23R-b R-b R-b
3/23T-b R-b
4/23
5/23
6/23
7/23
8/23
9/23R-b
10/23R-b R-b
11/23R-b R-b
12/23R-b R-b
13/23R-b R-b
14/23R-b
15/23R-b T-b
16/23R-b
17/23R-b
18/23R-b
19/23R-b
20/23R-b T-b
21/23R-b T-b
22/23R-b R-b
23/23R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 9 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/23] plugins/next pre-PR (hwprofile, regression fixes, icount count fix)

Hi,

Hopefully the final round for the current plugins queue. I've added a slightly more finessed version of the io_recompile handling for plugins which is now call CF_MEMI_ONLY - which allows memory instrumentation but nothing else. I've added an additional acceptance test to ensure inline/cb based counting stays aligned. Along with the usual tweaks and cleanups from review which are documented bellow the --- of the commit messages.

The following remain un-reviewed:

- tests/acceptance: add a memory callback check
- tests/plugin: allow memory plugin to do both inline and callbacks
- accel/tcg: cache single instruction TB on pending replay exception
- tests/plugin: expand insn test to detect duplicate instructions

Alex Bennée (14):
hw/virtio/pci: include vdev name in registered PCI sections
plugins: add API to return a name for a IO device
plugins: new hwprofile plugin
accel/tcg/plugin-gen: fix the call signature for inline callbacks tests/plugin: expand insn test to detect duplicate instructions tests/acceptance: add a new set of tests to exercise plugins accel/tcg: actually cache our partial icount TB accel/tcg: cache single instruction TB on pending replay exception accel/tcg: re-factor non-RAM execution code
accel/tcg: remove CF_NOCACHE and special cases accel/tcg: allow plugin instrumentation to be disable via cflags tests/acceptance: add a new tests to detect counting errors tests/plugin: allow memory plugin to do both inline and callbacks tests/acceptance: add a memory callback check

Richard Henderson (4):
exec: Move TranslationBlock typedef to qemu/typedefs.h accel/tcg: Create io_recompile_replay_branch hook target/mips: Create mips_io_recompile_replay_branch target/sh4: Create superh_io_recompile_replay_branch

zhouyang (5):
contrib: Don't use '#' flag of printf format
contrib: Fix some code style problems, ERROR: "foo * bar" should be

    "foo *bar"

contrib: Add spaces around operator
contrib: space required after that ','
contrib: Open brace '{' following struct go on the same line

 docs/devel/tcg-plugins.rst               |  34 +++
 include/exec/exec-all.h                  |   9 +-
 include/exec/plugin-gen.h                |   4 +-
 include/exec/tb-context.h                |   1 -
 include/hw/core/cpu.h                    |   4 +-
 include/hw/core/tcg-cpu-ops.h            |  13 +-
 include/qemu/plugin.h                    |   4 +
 include/qemu/qemu-plugin.h               |   6 +
 include/qemu/typedefs.h                  |   1 +
 target/arm/internals.h                   |   3 +-
 accel/tcg/cpu-exec.c                     |  61 +----
 accel/tcg/plugin-gen.c                   |  35 +--
 accel/tcg/translate-all.c                | 130 ++++------
 accel/tcg/translator.c                   |   5 +-
 contrib/ivshmem-server/main.c            |   2 +-
 contrib/plugins/hotblocks.c              |   2 +-
 contrib/plugins/hotpages.c               |   2 +-
 contrib/plugins/howvec.c                 |  19 +-
 contrib/plugins/hwprofile.c              | 305 +++++++++++++++++++++++
 contrib/plugins/lockstep.c               |   6 +-
 hw/virtio/virtio-pci.c                   |  22 +-
 plugins/api.c                            |  56 ++++-
 target/cris/translate.c                  |   2 +-
 target/lm32/translate.c                  |   2 +-
 target/mips/cpu.c                        |  18 ++
 target/moxie/translate.c                 |   2 +-
 target/sh4/cpu.c                         |  18 ++
 target/unicore32/translate.c             |   2 +-
 tests/plugin/insn.c                      |  12 +-
 tests/plugin/mem.c                       |  27 +-
 MAINTAINERS                              |   1 +
 contrib/plugins/Makefile                 |   1 +
 tests/acceptance/tcg_plugins.py          | 148 +++++++++++
 tests/tcg/i386/Makefile.softmmu-target   |  10 +
 tests/tcg/i386/Makefile.target           |   7 +
 tests/tcg/x86_64/Makefile.softmmu-target |  10 +
 36 files changed, 769 insertions(+), 215 deletions(-)
 create mode 100644 contrib/plugins/hwprofile.c
 create mode 100644 tests/acceptance/tcg_plugins.py
Signature · 1 line
2.20.1