add support for gcov format introduced in gcc 4.7
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 17 repliesIn review
- v1 RFC4 patches 26 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | gcov: move gcov structs definitions to a gcc version specific filekernel/ kernel/ kernel/ +1 more | +153 | 0 replies | |
| 2/4 | gcov: add support for gcc 4.7 gcov formatkernel/ kernel/ | +568 | 7 replies | |
| 3/4 | gcov: compile specific gcov implementation based on gcc versionDocumentation/ kernel/ kernel/ | +65 | 0 replies | |
| 4/4 | kernel: add support for init_array constructorsinclude/ kernel/ | +4 | 9 replies |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Rusty Russell | Peter Oberparleiter |
|---|---|---|
| 1/4 | ||
| 2/4 | R-b | |
| 3/4 | ||
| 4/4 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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