From: M. R. B. <mr...@0x...> - 2002-05-10 17:48:04
|
* Pete LeMasters <pet...@st...> on Fri, May 10, 2002: >=20 > I have been attempting to generate profile data from a loadable module un= der > 2.4.17 on an SH4 based development board. >=20 Why do you need profile data from a loadable module? What's wrong with getting the data with the driver compiled into the kernel? Does your module execute differently than when compiled in? >=20 > Separately, I have also tried to making use of the -pg option provided by > gcc but upon trying to load the module, I get an undefined symbol "mcount= ", > which I believe is supposed to be provided by linking a profile specific > library?? I can't find a reference to mcount in the 2.4.17 kernel source, > so it's location is an assumption on my part. >=20 You need profiling support as provided by the C library (this usually comes with pgcrt0.o or similiar). M. R. |