diff options
author | Nick Desaulniers <[email protected]> | 2021-04-09 13:27:26 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-04-09 14:54:23 -0700 |
commit | 9562fd132985ea9185388a112e50f2a51557827d (patch) | |
tree | 04ae60b766d4cfd2d51f39ddcdef087f4da8c9c3 /scripts/gdb/linux/tasks.py | |
parent | a3a8833dffb7e7329c2586b8bfc531adb503f123 (diff) |
gcov: re-fix clang-11+ support
LLVM changed the expected function signature for llvm_gcda_emit_function()
in the clang-11 release. Users of clang-11 or newer may have noticed
their kernels producing invalid coverage information:
$ llvm-cov gcov -a -c -u -f -b <input>.gcda -- gcno=<input>.gcno
1 <func>: checksum mismatch, \
(<lineno chksum A>, <cfg chksum B>) != (<lineno chksum A>, <cfg chksum C>)
2 Invalid .gcda File!
...
Fix up the function signatures so calling this function interprets its
parameters correctly and computes the correct cfg checksum. In
particular, in clang-11, the additional checksum is no longer optional.
Link: https://reviews.llvm.org/rG25544ce2df0daa4304c07e64b9c8b0f7df60c11d
Link: https://lkml.kernel.org/r/[email protected]
Reported-by: Prasad Sodagudi <[email protected]>
Tested-by: Prasad Sodagudi <[email protected]>
Signed-off-by: Nick Desaulniers <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Cc: <[email protected]> [5.4+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions