From: Pete L. <pet...@st...> - 2002-05-13 16:25:37
|
I do understand that the kernel source does not welcome C++, unfortunately, that's the way the driver source was given to me when I was asked to get it running on an SH4 dev board. If there is no hope of getting the C++ driver linked to the kernel, I'll go back to trying to get profiling data out of a loadable module. thanks for the information. > -----Original Message----- > From: lin...@li... > [mailto:lin...@li...]On Behalf Of > dk...@ix... > Sent: Monday, May 13, 2002 12:02 PM > To: pet...@st...; mr...@0x... > Cc: lin...@m1...; lin...@li... > Subject: [linuxsh-dev] RE: [linux-sh:02354] Re: performance data from > modules. > > > > > * 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 > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > linuxsh-dev mailing list > lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxsh-dev > |