From: Dan K. <dk...@ix...> - 2002-05-13 16:02:55
|
> > * Pete LeMasters <pet...@st...> on Fri, May 10, 2002: > > > I have been attempting to generate profile data from a loadable > > > module under 2.4.17 on an SH4 based development board. > > > > 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? > > Well, since you asked. This is a development driver > that has not been set up to compile into the kernel yet. > I originally tried to link the driver into the kernel > to get the profiling information but, the driver makes > use of C++ which demands a generated constructor and > destructor list. Well, there's your problem. Linux is hostile to C++ in the kernel. Rewrite your driver in C, and all will be well. I'm serious. Nobody will support you in your use of C++ in the Linux kernel. It just isn't done. Go ask on the linux-kernel mailing list if you don't believe me. - Dan |