[PATCH 0/3] plugins/execlog: add data address match and address range support

Sven Schnelle posted 3 patches 3 months, 2 weeks ago
Only 2 patches received!
There is a newer version of this series
contrib/plugins/execlog.c | 95 ++++++++++++++++++++++++++++++++-------
1 file changed, 79 insertions(+), 16 deletions(-)
[PATCH 0/3] plugins/execlog: add data address match and address range support
Posted by Sven Schnelle 3 months, 2 weeks ago
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 v2:
- rebased on top of latest master

Sven Schnelle (3):
  plugins/execlog: pass matches array to parse_vaddr_match
  plugins/execlog: add data address match
  plugins/execlog: add address range matching

 contrib/plugins/execlog.c | 95 ++++++++++++++++++++++++++++++++-------
 1 file changed, 79 insertions(+), 16 deletions(-)

-- 
2.43.2
Re: [PATCH 0/3] plugins/execlog: add data address match and address range support
Posted by Alex Bennée 3 months, 2 weeks ago
Sven Schnelle <svens@stackframe.org> writes:

> 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 v2:
> - rebased on top of latest master
>
> Sven Schnelle (3):
>   plugins/execlog: pass matches array to parse_vaddr_match

I think we've lost a patch in the re-posting. patchew hasn't seen it
either:

  https://patchew.org/QEMU/20240229150729.1620410-1-svens@stackframe.org/

>   plugins/execlog: add data address match
>   plugins/execlog: add address range matching
>
>  contrib/plugins/execlog.c | 95 ++++++++++++++++++++++++++++++++-------
>  1 file changed, 79 insertions(+), 16 deletions(-)

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro
Re: [PATCH 0/3] plugins/execlog: add data address match and address range support
Posted by Sven Schnelle 3 months, 2 weeks ago
Hi Alex,

Alex Bennée <alex.bennee@linaro.org> writes:

> Sven Schnelle <svens@stackframe.org> writes:
> I think we've lost a patch in the re-posting. patchew hasn't seen it
> either:
>
>   https://patchew.org/QEMU/20240229150729.1620410-1-svens@stackframe.org/
>
>>   plugins/execlog: add data address match
>>   plugins/execlog: add address range matching
>>
>>  contrib/plugins/execlog.c | 95 ++++++++++++++++++++++++++++++++-------
>>  1 file changed, 79 insertions(+), 16 deletions(-)

Yes, i got a 550 mail. But i'll look into the qemu_set_dfilter_ranges()
before resending.