nptl.BullOpenSource.Org Forum Index nptl.BullOpenSource.Org
NPTL Tests & Trace project. Homepage.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gcc coverage & gcov applied to NPTL sources

 
Post new topic   Reply to topic    nptl.BullOpenSource.Org Forum Index -> Tests - General
View previous topic :: View next topic  
Author Message
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Thu Jul 29, 2004 4:14 pm    Post subject: Gcc coverage & gcov applied to NPTL sources Reply with quote

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.



profiling.tar.gz
 Description:
Scripts used for the profiling test.

Download
 Filename:  profiling.tar.gz
 Filesize:  1.97 KB
 Downloaded:  1516 Time(s)


res-100.txt.gz
 Description:
List of functions which are totally used.

Download
 Filename:  res-100.txt.gz
 Filesize:  231 Bytes
 Downloaded:  1462 Time(s)


res-partial.txt.gz
 Description:
List of functions which are partially used

Download
 Filename:  res-partial.txt.gz
 Filesize:  333 Bytes
 Downloaded:  1468 Time(s)


res-0.txt.gz
 Description:
List of routines which were never used

Download
 Filename:  res-0.txt.gz
 Filesize:  513 Bytes
 Downloaded:  1459 Time(s)


libc.patch.tar.gz
 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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nptl.BullOpenSource.Org Forum Index -> Tests - General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group