From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id 0CFA9399B47D for ; Fri, 23 Jul 2021 07:06:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0CFA9399B47D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de Received: from sslproxy02.your-server.de ([78.47.166.47]) by dedi548.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1m6pGM-00018I-JA; Fri, 23 Jul 2021 09:06:26 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6pGM-000CwS-G4; Fri, 23 Jul 2021 09:06:26 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 332342A1610; Fri, 23 Jul 2021 09:06:26 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id hZntKWEZY-Ll; Fri, 23 Jul 2021 09:06:25 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id D94612A165B; Fri, 23 Jul 2021 09:06:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HFpo3zULJsIN; Fri, 23 Jul 2021 09:06:25 +0200 (CEST) Received: from shuber-nb-linux.eb.localhost (unknown [10.10.171.10]) by mail.embedded-brains.de (Postfix) with ESMTPSA id B393F2A1610; Fri, 23 Jul 2021 09:06:25 +0200 (CEST) Subject: Re: [PATCH v2] gcov: Add __gcov_info_to_gdca() To: =?UTF-8?Q?Martin_Li=c5=a1ka?= , gcc-patches@gcc.gnu.org References: <20210713201553.108947-1-sebastian.huber@embedded-brains.de> <946c22c1-af94-713c-6d72-867a50c7bd48@suse.cz> From: Sebastian Huber Message-ID: Date: Fri, 23 Jul 2021 09:06:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <946c22c1-af94-713c-6d72-867a50c7bd48@suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.103.2/26240/Thu Jul 22 10:19:18 2021) X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2021 07:06:29 -0000 On 23/07/2021 08:52, Martin Li=C5=A1ka wrote: >>>> +#ifdef NEED_L_GCOV_INFO_TO_GCDA >>>> +/* Convert the gcov info to a gcda data stream.=C2=A0 It is intende= d for >>>> +=C2=A0=C2=A0 free-standing environments which do not support the C = library=20 >>>> file I/O.=C2=A0 */ >>>> + >>>> +void >>>> +__gcov_info_to_gcda (const struct gcov_info *gi_ptr, >>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 void (*filename) (const char *, void *), >>> >>> What about begin_finaname_fn? >>> >>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 void (*dump) (const void *, unsigned, void *), >>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 void *(*allocate) (unsigned, void *), >>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 void *arg) >>>> +{ >>>> +=C2=A0 (*filename) (gi_ptr->filename, arg); >>>> +=C2=A0 write_one_data (gi_ptr, NULL, dump, allocate, arg); >>>> +} >>>> +#endif /* NEED_L_GCOV_INFO_TO_GCDA */ >>>> >>> >>> About gcov_write_summary: it should be also dumped in order to have a= =20 >>> complete .gcda file, right? >> >> How can I get access to the summary information? Here it is not=20 >> available: >=20 > You only need to change gcov_write_summary in gcov-io.c. Sorry, I still don't know how I can get the summary information if I=20 only have a pointer to the gcov_info structure which does not contain a=20 summary member. --=20 embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.huber@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht M=C3=BCnchen Registernummer: HRB 157899 Vertretungsberechtigte Gesch=C3=A4ftsf=C3=BChrer: Peter Rasmussen, Thomas= D=C3=B6rfler Unsere Datenschutzerkl=C3=A4rung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/