From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107151 invoked by alias); 20 Jul 2018 03:32:49 -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 107131 invoked by uid 89); 20 Jul 2018 03:32:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:U*libc-help, H*MI:corp, functional, Hx-languages-length:1704 X-HELO: mga14.intel.com Received: from mga14.intel.com (HELO mga14.intel.com) (192.55.52.115) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Jul 2018 03:32:46 +0000 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2018 20:32:44 -0700 Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga005.fm.intel.com with ESMTP; 19 Jul 2018 20:32:29 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 19 Jul 2018 20:32:29 -0700 Received: from bgsmsx101.gar.corp.intel.com (10.223.4.170) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 19 Jul 2018 20:32:29 -0700 Received: from bgsmsx102.gar.corp.intel.com ([169.254.2.218]) by BGSMSX101.gar.corp.intel.com ([169.254.1.40]) with mapi id 14.03.0319.002; Fri, 20 Jul 2018 09:02:28 +0530 From: "Palleti, Avinash Reddy" To: "libc-help@sourceware.org" CC: "Jasuja, Ritul" Subject: gcov support for glibc Date: Fri, 20 Jul 2018 03:32:00 -0000 Message-ID: MIME-Version: 1.0 Return-Path: avinash.reddy.palleti@intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2018-07/txt/msg00009.txt.bz2 Hi, We are trying to get coverage analysis for glibc test cases, we tried below= command to enable gcov support while building glibc. CFLAGS=3D"-ftest-coverage -fprofile-arcs -O2 -U_FORTIFY_SOURCE" CXXFLAGS=3D= "-ftest-coverage -fprofile-arcs" LD_FLAGS=3D"-fprofile-arcs" ../configure -= -prefix=3D/opt/ --disable-werror libc_cv_ctors_header=3Dyes libc_cv_c_clea= nup=3Dyes With this configure line, "make tests" was giving segmentation fault with n= ot 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.htm= l) There are suggestions to use oprofile but that just gives functional cover= age, we are looking for line coverage. Does anyone tried supporting gcov for glibc, if yes, please share the patch= es or give us pointers to work on the same. Thanks, Avinash