Skip to content

Are the source file paths the same across the generated gcda files and gcno symlinks? #224

Answered by henry2cox
joefradley asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure that I understand the question.
All else being equal: the .gcno and .gcda files do get dumped into the same location (next to the .o's) - but I'm not sure if kernel builds and kernel modules are the same as regular user code.
If someone used the GCOV_PREFIX (and GCOV_PREFX_STRIP) environment variables: then the .gcda files are going to go elsewhere (into the prefix directory, with paths reflecting the number of levels that got stripped).
Some time back, I had added some 'capture' features to make it easier to capture data from split builds. See the geninfo man page for '--build-directory'.

If the question is about the source paths that are found in the captured .info file: th…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@joefradley
Comment options

Answer selected by joefradley
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants