From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118128 invoked by alias); 20 Jul 2018 13:47:48 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 118116 invoked by uid 89); 20 Jul 2018 13:47:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=enable-coverage, palleti, enablecoverage, circular X-HELO: mail-qk0-f176.google.com Received: from mail-qk0-f176.google.com (HELO mail-qk0-f176.google.com) (209.85.220.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Jul 2018 13:47:46 +0000 Received: by mail-qk0-f176.google.com with SMTP id 126-v6so4594596qke.5 for ; Fri, 20 Jul 2018 06:47:46 -0700 (PDT) Return-Path: Received: from [10.150.73.190] ([184.151.37.83]) by smtp.gmail.com with ESMTPSA id b20-v6sm1118389qto.1.2018.07.20.06.47.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 06:47:44 -0700 (PDT) Subject: Re: gcov support for glibc To: "Palleti, Avinash Reddy" , "libc-help@sourceware.org" Cc: "Jasuja, Ritul" References: From: Carlos O'Donell Openpgp: preference=signencrypt Message-ID: <37a285de-4357-32b6-5112-eb08e24cc859@redhat.com> Date: Fri, 20 Jul 2018 13:47:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-07/txt/msg00011.txt.bz2 On 07/19/2018 11:32 PM, Palleti, Avinash Reddy wrote: > We are trying to get coverage analysis for glibc test cases, we tried > below command to enable gcov support while building glibc. There is no gcove support for glibc. The core library implements the pieces that gcov needs to implement coverage and so you have a circular dependency between the two which limits gcov coverage of glibc. Nobody that I know is working on this in the community. It would be great to see a design from you to solve the problems. A first pass solution is to enable coverage for just *part* of the library like all things compiled under nptl/, and so you'll have to * Add a configure option for --enable-coverage. * Detect the configure option in nptl/Makefile and enable coverage. * Add tests that show libpthread.so coverage is working. -- Cheers, Carlos.