]> gcc.gnu.org Git - gcc.git/commit
profiling: fix streaming of TOPN counters
authorMartin Liska <mliska@suse.cz>
Tue, 16 Feb 2021 15:28:06 +0000 (16:28 +0100)
committerMartin Liska <mliska@suse.cz>
Thu, 4 Mar 2021 15:21:52 +0000 (16:21 +0100)
commit6a8fc0c31a9ae759fe9bf59b5418abf2af938f91
treed0f65e009207e8142f7e5882e2c9e059c3e1b6b8
parentc9816196328a4f4b927f08cf2f66cf255849da0b
profiling: fix streaming of TOPN counters

libgcc/ChangeLog:

PR gcov-profile/99105
* libgcov-driver.c (write_top_counters): Rename to ...
(write_topn_counters): ... this.
(write_one_data): Pre-allocate buffer for number of items
in the corresponding linked lists.
* libgcov.h (malloc_mmap): New function.
(allocate_gcov_kvp): Use it.

gcc/testsuite/ChangeLog:

PR gcov-profile/99105
* gcc.dg/tree-prof/indir-call-prof-malloc.c: Use profile
correction as the wrapped malloc is called one more time
from libgcov.
* gcc.dg/tree-prof/pr97461.c: Likewise.
gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-malloc.c
gcc/testsuite/gcc.dg/tree-prof/pr97461.c
libgcc/libgcov-driver.c
libgcc/libgcov.h
This page took 0.071431 seconds and 6 git commands to generate.