Skip to content

plugins/execlog: add data address match and address range support

Sven Schnelle qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 7 repliesIn review
  2. v12 of 3 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- extend plugin api to re-use the existing range parsing infrastructure
- export error report api

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12util/log: convert debug_regions to GListutil/log.c+18 -186 replies
2/12util/log: make qemu_set_dfilter_ranges() take a GListutil/log.c+11 -50 replies
3/12util/range: move range_list_from_string() to range.cinclude/qemu/range.h util/log.c util/range.c+83 -740 replies
4/12util/range: add range_list_free()include/qemu/range.h util/range.c+10 -00 replies
5/12util/range: use append_new_range() in range_list_from_string()util/range.c+1 -60 replies
6/12util/range: split up range_list_from_string()util/range.c+70 -490 replies
7/12util/range: make range_list_from_string() accept a single numberutil/range.c+5 -00 replies
8/12qemu/range: add range_list_contains() functioninclude/qemu/range.h util/log.c+13 -90 replies
9/12plugins: add API to print errorsinclude/qemu/qemu-plugin.h plugins/api.c plugins/qemu-plugins.symbols+20 -00 replies
10/12plugins: add range list APIinclude/qemu/qemu-plugin.h plugins/api.c plugins/qemu-plugins.symbols+62 -01 reply
11/12plugins/execlog: use range list apicontrib/plugins/execlog.c+9 -180 replies
12/12plugins/execlog: add data address matchcontrib/plugins/execlog.c+23 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/12] plugins/execlog: add data address match and address range support

Hi List,

this patchset adds a new -dfilter option and address range matching. With this execlog can match only a certain range of address for both instruction and data adresses.

Example usage:

qemu-system-xxx <other options> -d plugin -plugin libexeclog.so,afilter=0x1000-0x2000,dfilter=0x388

This would only log instruction in the address range 0x1000 to 0x2000 and accessing data at address 0x388.

Changes in v3:
- extend plugin api to re-use the existing range parsing infrastructure
- export error report api

Changes in v2:
- rebased on top of latest master

Sven Schnelle (12):
util/log: convert debug_regions to GList
util/log: make qemu_set_dfilter_ranges() take a GList util/range: move range_list_from_string() to range.c util/range: add range_list_free()
util/range: use append_new_range() in range_list_from_string() util/range: split up range_list_from_string() util/range: make range_list_from_string() accept a single number qemu/range: add range_list_contains() function
plugins: add API to print errors
plugins: add range list API
plugins/execlog: use range list api
plugins/execlog: add data address match

 contrib/plugins/execlog.c    |  55 +++++++++++--------
 include/qemu/qemu-plugin.h   |  53 ++++++++++++++++++
 include/qemu/range.h         |  24 +++++++++
 plugins/api.c                |  25 +++++++++
 plugins/qemu-plugins.symbols |   4 ++
 util/log.c                   |  84 ++---------------------------
 util/range.c                 | 102 +++++++++++++++++++++++++++++++++++
 7 files changed, 244 insertions(+), 103 deletions(-)

--
2.43.2