Skip to content

add support for gcov format introduced in gcc 4.7

Frantisek Hrbata linux-arch lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 17 repliesIn review
  2. v1 RFC4 patches 26 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4gcov: move gcov structs definitions to a gcc version specific filekernel/gcov/base.c kernel/gcov/fs.c kernel/gcov/gcc_3_4.c +1 more+153 -800 replies
2/4gcov: add support for gcc 4.7 gcov formatkernel/gcov/base.c kernel/gcov/gcc_4_7.c+568 -07 replies
3/4gcov: compile specific gcov implementation based on gcc versionDocumentation/gcov.txt kernel/gcov/Kconfig kernel/gcov/Makefile+65 -10 replies
4/4kernel: add support for init_array constructorsinclude/asm-generic/vmlinux.lds.h kernel/module.c+4 -09 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchRusty RussellPeter Oberparleiter
1/4
2/4R-b
3/4
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] add support for gcov format introduced in gcc 4.7

This is an attempt to bring support for modified gcov format in gcc 4.7 to the kernel. It tries to leverage the existing layout/abstraction, which was designed keeping in mind that the gcov format could change, but some changes had to be make. Mostly because the current model does not take into account that even the core gcov structures, like gcov_info, could change. One part that could be problematic is the addition of the .init_array section for constructors.

Tested with lcov and seems to be working fine, giving similar results as for the older format.

v2: Included suggestions/code provided by Peter Oberparleiter. Detailed
description in patches.

Frantisek Hrbata (4):
gcov: move gcov structs definitions to a gcc version specific file
gcov: add support for gcc 4.7 gcov format
gcov: compile specific gcov implementation based on gcc version
kernel: add support for init_array constructors

 Documentation/gcov.txt            |   4 +
 include/asm-generic/vmlinux.lds.h |   1 +
 kernel/gcov/Kconfig               |  30 ++
 kernel/gcov/Makefile              |  32 ++-
 kernel/gcov/base.c                |  32 ++-
 kernel/gcov/fs.c                  |  27 +-
 kernel/gcov/gcc_3_4.c             | 115 ++++++++
 kernel/gcov/gcc_4_7.c             | 562 ++++++++++++++++++++++++++++++++++++++
 kernel/gcov/gcov.h                |  65 +----
 kernel/module.c                   |   3 +
 10 files changed, 790 insertions(+), 81 deletions(-)
 create mode 100644 kernel/gcov/gcc_4_7.c
Signature · 1 line
1.8.3.1