Re: [PATCH] tests: add coverage-html target

2021-01-11 Thread Mark Wielaard
Hi Dmitry, On Wed, 2020-12-23 at 00:25 +0300, Dmitry V. Levin wrote: > Implement a target for capturing code coverage using lcov. > It is available when elfutils is configured using --enable-gcov. > > Signed-off-by: Dmitry V. Levin > --- > Rather than trying to salvage the coverage target, imple

Re: [PATCH] tests: add coverage-html target

2021-01-11 Thread Dmitry V. Levin
Hi Mark, On Mon, Jan 11, 2021 at 04:07:38PM +0100, Mark Wielaard wrote: > Hi Dmitry, > > On Wed, 2020-12-23 at 00:25 +0300, Dmitry V. Levin wrote: > > Implement a target for capturing code coverage using lcov. > > It is available when elfutils is configured using --enable-gcov. > > > > Signed-of

Re: [PATCH] tests: add coverage-html target

2021-01-11 Thread Mark Wielaard
Hi Dmitry, On Mon, 2021-01-11 at 18:33 +0300, Dmitry V. Levin wrote: > On Mon, Jan 11, 2021 at 04:07:38PM +0100, Mark Wielaard wrote: > > > lcov --exclude was introduced by lcov commit v1.14~19; yes, we can check > whether e.g. "lcov --exclude=/ --version" works. Alternatively, we could > use --

Re: 0x1000 offset in symbol resolution?

2021-01-11 Thread Mark Wielaard
Hi Milian, On Wed, 2020-12-30 at 16:51 +0100, Milian Wolff wrote: > I stumbled upon a strange behavior while symbolizing a perf.data file > with > hotspot/perfparser/elfutils that I have trouble understanding. I hope it's ok > to send this call for help here. > > I'm running with elfutils 0.181

Re: 0x1000 offset in symbol resolution?

2021-01-11 Thread Milian Wolff
On Montag, 11. Januar 2021 17:05:30 CET Mark Wielaard wrote: > Hi Milian, > > On Wed, 2020-12-30 at 16:51 +0100, Milian Wolff wrote: > > I stumbled upon a strange behavior while symbolizing a perf.data file > > with > > hotspot/perfparser/elfutils that I have trouble understanding. I hope it's > >

Re: [PATCH] src/elflint.c: fix printing of unknown flags

2021-01-11 Thread Mark Wielaard
Hi Sergei, On Thu, Dec 31, 2020 at 12:11:42PM +, Sergei Trofimovich via Elfutils-devel wrote: > before the change section_flags_string() ignored unknown section > flags: snprintf() did write numeric value int obuffer, but > "*cp = '\0'" hegated the effect. > > The change advances the 'cp' po

[PATCH v2] Add coverage target

2021-01-11 Thread Dmitry V. Levin
Implement a target for capturing code coverage using lcov. It is available when elfutils is configured using --enable-gcov. Tested with autoreconf -if && ./configure --enable-maintainer-mode --enable-gcov && make && make check && make coverage Signed-off-by: Dmitry V. Levin --- .gitignore |

[PATCH elfutils-htdocs] update-coverage.sh: use "make coverage"

2021-01-11 Thread Dmitry V. Levin
The coverage report is now prepared by "make coverage". Signed-off-by: Dmitry V. Levin --- update-coverage.sh | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/update-coverage.sh b/update-coverage.sh index 46f30ab2..cddfbf24 100755 --- a/update-coverage.sh +++ b/update-cove