Skip to content

Update scripts/code_cov_parse_info

Jari Tahvanainen igt-dev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scripts/code_cov_parse_info: add support for lcov/geninfo >1.14 formatsscripts/code_cov_parse_info+100 -60 replies
2/2scripts/code_cov_parse_info: add display include and exclude in only_xescripts/code_cov_parse_info+35 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKamil Konieczny
1/2A-b
2/2A-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/2] Update scripts/code_cov_parse_info

Add support changes related function coverage data within .info files produced by recent compiler/toolchain versions.

Current assumed/supported .info file is for lcov/geninfo 1.14.
FN:<line number of function start>,<function name> FNDA:<execution count>,<function name> FNF:<number of functions found>
FNH:<number of function hit>

There is change caused by gcc 9 tool chain, requiring lcov/geninfo 2.0.
https://manpages.ubuntu.com/manpages/noble/man1/geninfo.1.html
FN:<line number of function start>,[<line number of function end>,]<function name> The 'end' line number is optional, and is generated only if the compiler/toolchain version is recent enough to generate the data (e.g., gcc 9 or newer)

The format of the function coverage data has changed from LCOV 2.2 onward.
https://manpages.ubuntu.com/manpages/questing/man1/geninfo.1.html
First, the leader:
FNL:<index>,<line number of function start>[,line number of function end>] Then the aliases of the function; there will be at least one alias. All aliases of a particular function share the same index. FNA:<index>,<execution count>,<name>
The now-obsolete function data format is:
FN:<line number of function start>,[<line number of function end>,]<function name>

Add i915/display files in only_xe definitions excluding non-xe related i915/display sources.

v2: fixing name on email for submitter.

Jari Tahvanainen (2):
scripts/code_cov_parse_info: add support for lcov/geninfo >1.14
formats
scripts/code_cov_parse_info: add display include and exclude in
only_xe

 scripts/code_cov_parse_info | 141 ++++++++++++++++++++++++++++++++++--
 1 file changed, 135 insertions(+), 6 deletions(-)
Signature · 1 line
2.43.0