tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Thu Jul 29, 2004 4:14 pm Post subject: Gcc coverage & gcov applied to NPTL sources |
|
|
I just tried to get some coverage information on the use of NPTL when the PTS is executed.
The problem is, this information is partial as gcc can only track execution of C files, not assembler source files. When I have more time, I'll port this experience to IA64 NPTL, as most of the source is in C there.
I followed those steps:
-> Recompile a full libc with the attached patch. (gcc 3.4.1 was used). This will generate the .gcno files for the routines listed in routines.lst (see patch detail).
-> Execute the PTS (the tests are compiled to run with the new libc).
-> gcov is called for every source file which was in routines.lst
-> All gcov files are merged and filtered to kkep only the "function" statistics.
-> A sorting of those function is done, to split
-> function which were never used
-> function which were partially used
-> function which were totally used.
Three files are generated with this lists and are atached to this post.
I also provide the script files I used, but it may need some adjustements to feet your needs if you intend to do the same test.
| Description: |
| Scripts used for the profiling test. |
|
 Download |
| Filename: |
profiling.tar.gz |
| Filesize: |
1.97 KB |
| Downloaded: |
1516 Time(s) |
| Description: |
| List of functions which are totally used. |
|
 Download |
| Filename: |
res-100.txt.gz |
| Filesize: |
231 Bytes |
| Downloaded: |
1462 Time(s) |
| Description: |
| List of functions which are partially used |
|
 Download |
| Filename: |
res-partial.txt.gz |
| Filesize: |
333 Bytes |
| Downloaded: |
1468 Time(s) |
| Description: |
| List of routines which were never used |
|
 Download |
| Filename: |
res-0.txt.gz |
| Filesize: |
513 Bytes |
| Downloaded: |
1459 Time(s) |
| Description: |
| Patch to enable the gcc flags for profiling during NPTL compilation. The file routine.lst need to be in the current directory also. |
|
 Download |
| Filename: |
libc.patch.tar.gz |
| Filesize: |
1.19 KB |
| Downloaded: |
1434 Time(s) |
_________________ Sebastien Decugis. |
|