[PATCH v3 0/3] plugins: add a drcov plugin

NDNF posted 3 patches 2 years, 5 months ago
Failed in applying to current master (apply log)
contrib/plugins/Makefile     |    1
contrib/plugins/drcov.c      |  152 ++++++++++++++++++++++++++++++++++++++++++
include/qemu/qemu-plugin.h   |   17 +++++
plugins/api.c                |   44 ++++++++++++
plugins/qemu-plugins.symbols |   56 ++++++++-------
5 files changed, 244 insertions(+), 26 deletions(-)
create mode 100644 contrib/plugins/drcov.c
[PATCH v3 0/3] plugins: add a drcov plugin
Posted by NDNF 2 years, 5 months ago
These patches adds the ability to generate files in drcov format.
Primary goal this scripts is to have coverage
logfiles thatwork in Lighthouse.

Changelog:
v3:
  * Increased speed of the plugin.
  * Added documentation to the helper functions.
  * Sorted qemu-plugins.symbols.

v2:
  * Added path to executable binary file.
  * base, end, entry have correct values now.
  * Added option: "filename" for output file.
  * Install an actual tracer when the TB gets executed.

Signed-off-by: Ivanov Arkady <arkadiy.ivanov@ispras.ru>

---

Ivanov Arkady (3):
      src/plugins: sorted list
      This patch adds helper functions to the drcov plugin.
      contrib/plugins: add a drcov plugin


 contrib/plugins/Makefile     |    1 
 contrib/plugins/drcov.c      |  152 ++++++++++++++++++++++++++++++++++++++++++
 include/qemu/qemu-plugin.h   |   17 +++++
 plugins/api.c                |   44 ++++++++++++
 plugins/qemu-plugins.symbols |   56 ++++++++-------
 5 files changed, 244 insertions(+), 26 deletions(-)
 create mode 100644 contrib/plugins/drcov.c

--
Ivanov Arkady

Re: [PATCH v3 0/3] plugins: add a drcov plugin
Posted by Alex Bennée 2 years, 5 months ago
NDNF <arkaisp2021@gmail.com> writes:

> These patches adds the ability to generate files in drcov format.
> Primary goal this scripts is to have coverage
> logfiles thatwork in Lighthouse.

Queued with some fixes to plugins/next, thanks.

-- 
Alex Bennée

Re: [PATCH v3 0/3] plugins: add a drcov plugin
Posted by Pavel Dovgalyuk 2 years, 2 months ago
On 25.10.2021 22:03, Alex Bennée wrote:
> 
> NDNF <arkaisp2021@gmail.com> writes:
> 
>> These patches adds the ability to generate files in drcov format.
>> Primary goal this scripts is to have coverage
>> logfiles thatwork in Lighthouse.
> 
> Queued with some fixes to plugins/next, thanks.
> 

ping

Re: [PATCH v3 0/3] plugins: add a drcov plugin
Posted by Alex Bennée 2 years, 2 months ago
Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru> writes:

> On 25.10.2021 22:03, Alex Bennée wrote:
>> NDNF <arkaisp2021@gmail.com> writes:
>> 
>>> These patches adds the ability to generate files in drcov format.
>>> Primary goal this scripts is to have coverage
>>> logfiles thatwork in Lighthouse.
>> Queued with some fixes to plugins/next, thanks.
>> 
>
> ping

I would still like to find a decent way of testing these coverage files.
I looked at a number of FLOSS tools and I think radare2 can handle the
drcov format but I couldn't get anything out of it.

I'll be posting the state of my plugins/next tree soon and we can get
some final reviews before submitting the PR.

-- 
Alex Bennée