Skip to content

contrib/plugins/hotblocks: Minor bug fixes and add limit argument

Alex Bradbury qemu-devel 2 versions – Applied

Status from this message: Queued to plugins/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesApplied
  2. v15 patches 12 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5contrib/plugins/hotblocks: Correctly free sorted counts listcontrib/plugins/hotblocks.c+5 -40 replies
2/5contrib/plugins/hotblocks: Fix off by one error in iteration of sorted blockscontrib/plugins/hotblocks.c+1 -20 replies
3/5contrib/plugins/hotblocks: Print uint64_t with PRIu64 rather than PRId64contrib/plugins/hotblocks.c+1 -10 replies
4/5docs/about/emulation: Add documentation for hotblocks plugin argumentsdocs/about/emulation.rst+10 -00 replies
5/5contrib/plugins/hotblocks: Allow limit to be set as a command line argumentcontrib/plugins/hotblocks.c docs/about/emulation.rst+11 -10 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchManos PitsidianakisPierrick Bouvier
1/5R-b R-b
2/5R-b
3/5R-b R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] contrib/plugins/hotblocks: Minor bug fixes and add limit argument

This is a resend of my previous patchset which unfortunately seems not to have been applied (see
<https://lore.kernel.org/qemu-devel/[email protected]/).
I've rebased on current HEAD, checked it works as expected, and added Reviewed-by tags to the patches, which all received review.

Repeating the summary from last time:

This series contains one minor feature addition and a series of small bugfixes/improvements. The addition that motivates the submission is to add a limit argument for the hotblocks plugin, allowing you to control how many blocks are printed rather than being hardcoded to the 20 most executed. Setting limit=0 and dumping information about all executed blocks is incredibly helpful for an analysis script I have downstream.

This is my first contribution to QEMU. I've attempted to follow all of the guidance in the "Submitting a Patch" guide, but apologies if I missed anything.

Alex Bradbury (5):
contrib/plugins/hotblocks: Correctly free sorted counts list contrib/plugins/hotblocks: Fix off by one error in iteration of sorted
blocks
contrib/plugins/hotblocks: Print uint64_t with PRIu64 rather than

    PRId64

docs/about/emulation: Add documentation for hotblocks plugin arguments contrib/plugins/hotblocks: Allow limit to be set as a command line
argument

 contrib/plugins/hotblocks.c | 20 ++++++++++++++------
 docs/about/emulation.rst    | 12 ++++++++++++
 2 files changed, 26 insertions(+), 6 deletions(-)
Signature · 1 line
2.52.0