Are the source file paths the same across the generated gcda files and gcno symlinks? #224
-
I’m looking at fixing up the paths of the *.gcda and *.gcno symlink files populated into debugfs when gcov is enabled in the kernel. The paths aren’t accurate due to sandboxing done at build time. We have generated mapping files to help with this process. My question is, are all the following <dev_src_path> values going to be the same?:
The reason I ask is it would be convenient if I didn’t have to evaluate the values of the symlinks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm not sure that I understand the question. If the question is about the source paths that are found in the captured .info file: then those are closely related to how your code was built. If the paths are not what you like - then you can use the "--substitute" option to change them (or simply use sed to get equivalent results). Hope this helped...but please clarify the question if possible. |
Beta Was this translation helpful? Give feedback.
-
As Henry mentioned, |
Beta Was this translation helpful? Give feedback.
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…