From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D0200386F824; Tue, 2 Jun 2020 08:23:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D0200386F824 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591086202; bh=oHsnMnKTWviZalRWjJPfgRKzjA6FmHFnrHcO1EhM85s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vky64Mu+JPpCUmRdOrNcKMlZsqbtIRB8lw5+TWR4qONnSwWFxtjqG5B8RX3W3ENbp yjYrd51V1zG/LGc7zkKZng7Iv0bmsEbymQfZq0QoySug3Y/2ELX7pFj9yo04EVhB2o Xug0DIznlw+01//G4ByFSelNgOZ5QAWyZDWsAV8U= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT Date: Tue, 02 Jun 2020 08:23:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 08:23:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95348 --- Comment #23 from Martin Li=C5=A1ka --- Created attachment 48660 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48660&action=3Dedit work-in-progress patch There's patch that does not stream all zero counters for a function. The pa= tch only supports streaming and gcov-dump: $ gcov-dump -l a-foo.gcda a-foo.gcda:data:magic `gcda':version `B10e' a-foo.gcda:stamp 1948224357 a-foo.gcda: a1000000: 2:OBJECT_SUMMARY runs=3D1, sum_max=3D1 a-foo.gcda: 01000000: 3:FUNCTION ident=3D108032747, lineno_checksum=3D0x2408bf36, cfg_checksum=3D0x7cb34af9 a-foo.gcda: 01a10000: 4:COUNTERS arcs 2 counts a-foo.gcda: 0: 1 1=20 a-foo.gcda: 01af0000: 2:COUNTERS time_profiler 1 counts a-foo.gcda: 0: 1=20 a-foo.gcda: 01000000: 3:FUNCTION ident=3D932535731, lineno_checksum=3D0x74cbb94c, cfg_checksum=3D0xeb219516 a-foo.gcda: 01a10000: 4:COUNTERS arcs 2 counts (all zero) a-foo.gcda: 0: 0 0=20 a-foo.gcda: 01af0000: 2:COUNTERS time_profiler 1 counts (all zero) a-foo.gcda: 0: 0=20 Can you please test the patch and measure how much does it help for your test-case? Note that the FUNCTION section will be streamed (it contains 3 64-bit integ= ers for each fn: ident=3D932535731, lineno_checksum=3D0x74cbb94c, cfg_checksum=3D0xeb219516)= .=