1)
-a seems to be unsupported. Compiler code [snipet below] suggest that macros
(BLOCK_PROFILER & FUNCTION_BLOCK_PROFILER) are missing. On a side note, I've
downloaded the gcc-3.2.3, and it doesn't look like -a is even supported
anymore. The system.h files says: " /* And other obsolete target macros, or
macros that used to be in target headers and were not used, and may be
obsolete or may never have been used. */ ", so it looks like the macros
have been removed.
else if (!strcmp (str, "a"))
{
#if !defined (BLOCK_PROFILER) || !defined (FUNCTION_BLOCK_PROFILER)
warning ("`-a' option (basic block profile) not supported");
#else
profile_block_flag = 1;
#endif
}
2)
"-fprofile-arcs -ftest-coverage -fbranch-probabilities" seems to be compiled
but not linked. Loading the .o on the card, I get unresolved symbols for the
"__bb_init_func".
modUnSymShow
Unresolved symbol list for module: objPoolMgrPkg.o
# of Refs Symbol Name
-----------------------------------------------------------------
1 __bb_init_func
(I find both the bb_init_func and bb_exit_func defined in the libgcc2.c
file.)
Is VxWorks 5.3.1 capable of producing coverage analysis being function or
basic block as is?? Am I missing some module that needs to be loaded? Does
one or more additional libraries need to be loaded on the card before
loading this module? Internet says that VxWorks is capable of producing such
analysis. Is there a "User Configurable Parameter" missing somewhere to pick
up the code for such functions? Do I need to write my own instrumentation
funcs? etc etc etc
Any info would be great and/or a reference on the internet or documentation
on the subject. Thou Shalt Profile for Dummies would be excellent. Thx.
Additional Information:
===============
VxWorks Info:
OS> version
VxWorks (for powerPC Model number : 8 (12802-revision)) version 5.3.1.
Kernel: WIND version 2.5.
Compiler Info
=:-O g++ -v
Reading specs from
........../gcc-2.95.2/bin/sparc-solaris2.6/lib/gcc-lib/sparc-sun-solaris2.6/
2.95.2/specs
gcc version 2.95.2 19991024 (release)
=:-O gcc-ppcleV99r1h -v
Reading specs from
....../cygnus/99r1h/lib/gcc-lib/powerpcle-xxx-eabile/2.9-xxxx-99r1/specs
gcc version 2.9-xxxx-99r1
> Any info would be great and/or a reference on the internet or documentation
> on the subject. Thou Shalt Profile for Dummies would be excellent. Thx.
Probably not exactly what you were thinking of, but have you looked at
the ScopeTools from RTI? Included in there are CoverageScope and
ProfileScope which might fit your need. I believe that you buy the
pack from Wind River directly if you need it, and there are some other
useful tools in there that you might need one day ;-)
HTH,
John...
=====
Contribute to the VxWorks Cookbook at:
http://www.bluedonkey.org/cgi-bin/twiki/bin/view/Books/WebHome