- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
we are planning to calculate the code coverage for intel FlexRAN code v21.03 using the codecov tool provided by intel.
URL is appended below for your reference.
https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/optimization-and-programming-guide/tools/pgo-tools/code-coverage-tool.html
I have followed the above URL to get the code coverage for SDK but no luck.
Any support on this?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Here are steps:
1) Compile with -profgen=srcpos, you will see the pgopti.spi (static profile information) file gets generated (Note: if you have lot of source files under different directories, then you need to compile with both -profgen=srcpos -prof-dir /tmp/dir_you_want_all_profiled_data_to_reside, or set the ENV variable "export PROF_DIR= /tmp/some_dir"). This way, all your .spi, .dyn and dpi files will be under one place.
$ icc -prof-gen=srcpos temp.c
$ ls -lt pgopti*
-rw-r--r-- 1 users 790 Oct 12 13:40 pgopti.spi
-rw-r--r-- 1 users 0 Oct 12 13:40 pgopti.spl
2) Then run your workloads to get dynamic information (.dyn)
$ ./a.out
$ ls -lt pgopti* *dyn
-rw-r--r-- 1 users 736 Oct 12 13:40 6165f2d1_23668.dyn
-rw-r--r-- 1 users 736 Oct 12 13:40 6165f2ca_23664.dyn
3) Use profmerge tool to merge all *dyn files into 1 pgopti.dpi (dynamic profiled information) file.
$ profmerge *dyn
$ ls -lt pgopti*
-rw-r--r-- 1 users 1808 Oct 12 13:41 pgopti.dpi
4) use codecov [options]
$ codecov -prj myProject -spi pgopti.spi -dpi pgopti.dpi
By default, the code coverage tool generates a single HTML file (CODE_COVERAGE.HTML) and a subdirectory (CodeCoverage) in the current directory. Use any web browser to see the coverages.
Let us know more details which issues you have encountered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
Thanks for your response. This is the general procedure to run codecov. But I am not able to get the .spi & .spl files for the SDK module which is provided by intel_FlexRAN_21.03.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
this same procedure in not provide the code coverage for SDK which is part of flex ran code(intel) for L1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume that I've answered your questions. Thus, I am going to close this thread.
If you need more assistants from us, please create a new thread.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You may need to contact the FlexRan team to see if they can provide you with that info or not, as this forum is only for Intel compiler usage/bugs.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the update. I will check with the flexRAN team. I have one more query regarding codecov. if you can address:
query:- Few of the files are missing under the same subdirectory while a few of them are coming in "pgopti.spi". what to do about this?
any pointer?
Regards,
Poorna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would check to see if those files compiled with -profgen=srcpos.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If there isn't any questions we would like to close this thread. Please let us know.
Thanks,
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page