[PATCH v2 0/2] Update scripts/code_cov_parse_info
Jari Tahvanainen <[email protected]>
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <[email protected]> |
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(-)
--
2.43.0