From: William C. <wc...@nc...> - 2005-05-20 00:50:39
|
Jerome wrote: > On Thu, 19 May 2005, Philippe Elie wrote: > > >>On Thu, 19 May 2005 at 13:27 +0000, Jerome wrote: >> >> >>>Hi, >>>In trying to set up Oprofile, I get the following error: >>> >>>[root@la-opt1 oprofile-0.8.2]# opcontrol --vmlinux=/boot/vmlinux-`uname -r` >>>FATAL: Module oprofile not found. >>>FATAL: Module oprofile not found. >>>Kernel doesn't support oprofile >>>[root@la-opt1 oprofile-0.8.2]# >>> >>>Is there something I may have done wrong in the installation? When >>>configuring and installing Oprofile, I didn't get any errors. My system is >>>as follows: >>> >>>[root@la-opt1 oprofile-0.8.2]# uname -a >>>Linux la-opt1 2.6.11.7 #1 SMP Wed Apr 20 15:18:49 PDT 2005 x86_64 x86_64 >>>x86_64 GNU/Linux >>>[root@la-opt1 oprofile-0.8.2]# >>> >>>And I had CONFIG_X86_IO_APIC=y in my kernel configuration file (that >>>was used to compile my current kernel). >>> >>>Why would I be getting "Kernel doesn't support oprofile" error? Is there a >>>an Oprofile module I need to explicity load? Thanks >> >>The module should be loaded automatically, for 2.6 kernel (is it a 2.6 ?) >>you need to enable CONFIG_PROFILING=y and CONFIG_OPROFILE=m when building >>your kernel. >> >>Some recent kernel disable io-apic at runtime, you need perhaps to >>explicitely enable it at boot with lapic kernel parameter if I remember >>correctly. >> > > > Thanks Philippe. I am using a 2.6 kernel, but didn't realise I had to > check CONFIG_PROFILING and CONFIG_OPROFILE. Does it matter whether or not > CONFIG_OPROFILE is in the kernel (=y) or is a module (=m, as you specified > above)? > > jerome Select module (=m). The opcontrol script doesn't deal well with oprofile compiled into the kernel. -will |