From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rediffmail.com (f4mail-235-131.rediffmail.com [202.137.235.131]) by sourceware.org (Postfix) with ESMTPS id 5B62D3857026 for ; Tue, 25 May 2021 07:05:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5B62D3857026 Received: (qmail 20878 invoked by uid 510); 25 May 2021 07:05:37 -0000 x-m-msg: asd54ad564ad7aa6sd5as6d5; a6da7d6asas6dasd77; 5dad65ad5sd; X-OUT-VDRT-SpamState: 0\LEGIT X-OUT-VDRT-SpamScore: 0 X-OUT-VDRT-SpamCause: gggruggvucftvghtrhhoucdtuddrgeduledrvdektddguddufecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucdftffgfffkhffhpdfqfgfvfdenuceurghilhhouhhtmecufedttdenucenucfjughrpeffggfvkfgjshfuhfgtsegrtderredttdejnecuhfhrohhmpedfifgvjhhovgcuffgrnhhivghlfdcuoehgvghjohgvugesrhgvughifhhfmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeelffduleegtdfghfektdelffeifeegudfghedtudeifeegveevjedtffekteekudenucffohhmrghinhepghhnuhdrohhrghenucfkphepjedvrdduieefrddvvddtrddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-Remote-IP: 72.163.220.18 X-REDF-OSEN: gejoed@rediffmail.com Date: 25 May 2021 07:05:37 -0000 MIME-Version: 1.0 To: "Martin Li ka" Received: from unknown 72.163.220.18 by rediffmail.com via HTTP; 25 May 2021 07:05:37 -0000 X-Senderscore: D=0&S=0 Message-ID: <1621864930.S.5378.29996.f4-234-161.1621926337.20763@webmail.rediffmail.com> In-Reply-To: <5b806776-5c7a-08b0-14d1-754d415d859a@suse.cz> Sender: gejoed@rediffmail.com Subject: =?utf-8?B?UmU6IFJlZ2FyZGluZyBfX2djb3ZfZHVtcCBhbmQgX19nY292X3Jlc2V0IHVzYWdl?= From: "Gejoe Daniel" Cc: "gcc@gcc.gnu.org" , "gcc-help@gcc.gnu.org" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2021 07:05:45 -0000 Hi Martin, The bug is created : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751  Let me know if any more info is required. Thanks, Gejoe From: Martin Li ka <mliska@suse.cz> Sent: Mon, 24 May 2021 19:32:10 To: Gejoe Daniel <gejoed@rediffmail.com>, gcc@gcc.gnu.org, gcc-help@gcc.gnu.org Subject: Re: Regarding __gcov_dump and __gcov_reset usage On 5/24/21 1:44 PM, Gejoe Daniel via Gcc wrote: > Adding gcc mailing list for the clarification. > > Thank you team !&nbsp; > > From: &quot;Gejoe Daniel&quot;&lt;gejoed@rediffmail.com>; > Sent: Mon, 24 May 2021 15:02:12 > To: &quot;gcc-help@gcc.gnu.org";&lt;gcc-help@gcc.gnu.org>; > Subject: Re: Regarding __gcov_dump and __gcov_reset usage > > Hi team, > > Any info/reply ? > > Thanking you in advance, > Gejoe > > > From: &quot;Gejoe Daniel&quot;&lt;gejoed@rediffmail.com>; > Sent: Sun, 16 May 2021 17:37:46 > To: &lt;gcc-help@gcc.gnu.org>; > Subject: Regarding __gcov_dump and __gcov_reset usage > > Hi team, > > I did go through the online manual of gcc gcov&nbsp; on __gcov_dump() and __gcov_reset() : > https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html#Gcov-and-Optimization > > I tried out using the functions in a sample program (sample-prog.c) that is attached here. > > The steps followed were : > > (1)&nbsp; gcc -fprofile-arcs -ftest-coverage sample-prog.c&nbsp; > (2)&nbsp; ./a.out > (3)&nbsp;&nbsp;gcov sample-prog.c > > While running a.out, when I give character &#39;g&#39;, the __gcov_dump() must be invoked. > What I could observe is that first time __gcov_dump() is invoked , the sample-prog.gcda file gets created. > For the second time and then onwards, __gcov_dump() invocation (by giving &#39;g&#39; character during the a.out run) doesn&#39;t happen. > This is concluded by looking at the time stamp of sample-prog.gcda file in the same folder. It was still having the same time stamp of first time invocation of __gcov_dump(). > > Another thing is&nbsp; that, __gcov_reset() also doesn&#39;t appear to work. I tried giving the character &#39;r&#39; during the run of the program but couldn&#39;t see the counters getting reset to 0 in the sample-prog.gcov file. The previous values of lines covered were there. > > Let me know if my approach is correct or if I miss any information here. > > Thanks, > Gejoe > &nbsp; > Hello. Can you please create bug at: https://gcc.gnu.org/bugzilla/ Please upload there a test-case and series of commands executed and the expected result. Thank you, Martin