public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* gcov support for glibc
@ 2018-07-20  3:32 Palleti, Avinash Reddy
  2018-07-20 13:47 ` Carlos O'Donell
  2018-07-20 14:06 ` Adhemerval Zanella
  0 siblings, 2 replies; 4+ messages in thread
From: Palleti, Avinash Reddy @ 2018-07-20  3:32 UTC (permalink / raw)
  To: libc-help; +Cc: Jasuja, Ritul

Hi,

We are trying to get coverage analysis for glibc test cases, we tried below command to enable gcov support while building glibc.

CFLAGS="-ftest-coverage -fprofile-arcs -O2 -U_FORTIFY_SOURCE" CXXFLAGS="-ftest-coverage -fprofile-arcs" LD_FLAGS="-fprofile-arcs" ../configure --prefix=/opt/ --disable-werror  libc_cv_ctors_header=yes libc_cv_c_cleanup=yes

With this configure line, "make tests" was giving segmentation fault with not much information in coredump. Then we realized that there is no support for gcov in glibc (https://sourceware.org/ml/libc-help/2017-09/msg00031.html)
There are suggestions to use oprofile  but that just gives functional coverage, we are looking for line coverage.
Does anyone tried supporting gcov for glibc, if yes, please share the patches or give us pointers to work on the same.

Thanks,
Avinash



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-20 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-20  3:32 gcov support for glibc Palleti, Avinash Reddy
2018-07-20 13:47 ` Carlos O'Donell
2018-07-20 16:54   ` Palleti, Avinash Reddy
2018-07-20 14:06 ` Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).