Ok, next step is to verify you have /sys mounted. Type mount.
On Wed, May 28, 2008 at 12:31 PM, Caglar Ozdag <[EMAIL PROTECTED]> wrote: > Hi, > > It is the right kernel, i don't know how to verify if the patching was > successful or not though. > > [EMAIL PROTECTED]:/home/caglar# uname -a > Linux caglar-notebook 2.6.25.4 #1 SMP Tue May 27 15:49:38 EEST 2008 i686 > GNU/Linux > [EMAIL PROTECTED]:/home/caglar# dmesg | fgrep perfmon > [ 0.246476] perfmon: version 2.8 > [ 0.246577] perfmon: CPU hotplug support enabled > [ 4.672193] perfmon: found family=15 VAL=0x0 > [ 4.672199] perfmon: AMD64 PMU detected, 4 PMCs, 4 PMDs, 4 counters (47 > bits) > [ 4.672247] perfmon: AMD64 PMU installed > [ 4.675387] perfmon: added sampling format default > > > also, dmesg | fgrep perfmon shows nothing if im not root. > > [EMAIL PROTECTED]:~$ dmesg | fgrep pfmon > [EMAIL PROTECTED]:~$ > > Thanks, > > Caglar > > > > On Wed, May 28, 2008 at 12:17 PM, stephane eranian <[EMAIL PROTECTED]> > wrote: >> >> Hi, >> >> Verify you've booted the right kernel. >> >> Do the following: dmesg | fgrep perfmon >> and send me what you get. >> >> >> On Wed, May 28, 2008 at 11:12 AM, Caglar Ozdag <[EMAIL PROTECTED]> >> wrote: >> > Hi, >> > >> > Thanks for your prompt replies. >> > >> > /usr/src/build-dir/.config looks like this: >> > >> > CONFIG_PERFMON=y >> > CONFIG_PERFMON_DEBUG=y >> > CONFIG_PERFMON_DEBUG_FS=y >> > # CONFIG_X86_PERFMON_P6 is not set >> > # CONFIG_X86_PERFMON_P4 is not set >> > # CONFIG_X86_PERFMON_CORE is not set >> > # CONFIG_X86_PERFMON_INTEL_ARCH is not set >> > CONFIG_X86_PERFMON_AMD64=y >> > CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y >> > >> > so does this mean the perfmon support is enabled? i've also run make >> > modules_install after the patch. and /sys/kernel/perfmon/version doesn't >> > exit.. >> > >> > On Wed, May 28, 2008 at 12:01 PM, stephane eranian >> > <[EMAIL PROTECTED]> >> > wrote: >> >> >> >> Hello, >> >> >> >> >> >> On Wed, May 28, 2008 at 10:57 AM, Caglar Ozdag <[EMAIL PROTECTED]> >> >> wrote: >> >> > >> >> > I'm a newbie and it was my first kernel patch ever so i guess i've >> >> > made >> >> > a mistake. I've looked at a couple online tutorials and I did what it >> >> > told >> >> > me to do.. and also, my kernel version is 2.6.25.4 and the patch is >> >> > for >> >> > 2.6.25 does that make a difference? >> >> >> >> Should not make a difference. If you've applied the patch, then you >> >> need to enable perfmon support. >> >> For you machine, if you look a the .config file in the root dir of >> >> your build, you should have in it: >> >> >> >> CONFIG_PERFMON=y >> >> CONFIG_PERFMON_AMD64=y (or m) >> >> >> >> If you've selected module for AMD64 processors, then make sure you >> >> run: make modules_install >> >> at the end of your build. >> >> >> >> >> >> > >> >> > >> >> > >> >> > On Wed, May 28, 2008 at 11:48 AM, stephane eranian >> >> > <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Hello, >> >> >> >> >> >> You need to apply a kernel patch for pfmon to work. Are you running >> >> >> on >> >> >> off-the-shelf 2.6.25? >> >> >> You can verify if you have perfmon support by looking at: >> >> >> /sys/kernel/perfmon/version. >> >> >> If you don't have this file, then you don't have perfmon support in >> >> >> your kernel. >> >> >> >> >> >> >> >> >> On Wed, May 28, 2008 at 10:13 AM, Caglar Ozdag >> >> >> <[EMAIL PROTECTED]> >> >> >> wrote: >> >> >>> >> >> >>> Whatever I try to do with pfmon i get the following error message: >> >> >>> >> >> >>> [EMAIL PROTECTED]:/home/caglar# pfmon ls /dev/null >> >> >>> pfm_create_context error Invalid argument >> >> >>> can't create perfmon context: Invalid argument(22) >> >> >>> >> >> >>> >> >> >>> Below are my system information: >> >> >>> >> >> >>> [EMAIL PROTECTED]:/home/caglar# uname -a >> >> >>> Linux caglar-notebook 2.6.25.4 #1 SMP Tue May 27 15:49:38 EEST 2008 >> >> >>> i686 GNU/Linux >> >> >>> >> >> >>> [EMAIL PROTECTED]:/home/caglar# more /proc/cpuinfo >> >> >>> processor : 0 >> >> >>> vendor_id : AuthenticAMD >> >> >>> cpu family : 15 >> >> >>> model : 72 >> >> >>> model name : AMD Turion(tm) 64 X2 Mobile Technology TL-52 >> >> >>> stepping : 2 >> >> >>> cpu MHz : 800.000 >> >> >>> cache size : 512 KB >> >> >>> physical id : 0 >> >> >>> siblings : 2 >> >> >>> core id : 0 >> >> >>> cpu cores : 2 >> >> >>> fdiv_bug : no >> >> >>> hlt_bug : no >> >> >>> f00f_bug : no >> >> >>> coma_bug : no >> >> >>> fpu : yes >> >> >>> fpu_exception : yes >> >> >>> cpuid level : 1 >> >> >>> wp : yes >> >> >>> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge >> >> >>> mca cmov >> >> >>> pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt >> >> >>> rdtscp lm 3dno >> >> >>> wext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy ts >> >> >>> fid >> >> >>> vid ttp tm >> >> >>> stc >> >> >>> bogomips : 1608.92 >> >> >>> clflush size : 64 >> >> >>> processor : 1 >> >> >>> vendor_id : AuthenticAMD >> >> >>> cpu family : 15 >> >> >>> model : 72 >> >> >>> model name : AMD Turion(tm) 64 X2 Mobile Technology TL-52 >> >> >>> stepping : 2 >> >> >>> cpu MHz : 800.000 >> >> >>> cache size : 512 KB >> >> >>> physical id : 0 >> >> >>> siblings : 2 >> >> >>> core id : 1 >> >> >>> cpu cores : 2 >> >> >>> fdiv_bug : no >> >> >>> hlt_bug : no >> >> >>> f00f_bug : no >> >> >>> coma_bug : no >> >> >>> fpu : yes >> >> >>> fpu_exception : yes >> >> >>> cpuid level : 1 >> >> >>> wp : yes >> >> >>> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge >> >> >>> mca cmov >> >> >>> pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt >> >> >>> rdtscp lm 3dno >> >> >>> wext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy ts >> >> >>> fid >> >> >>> vid ttp tm >> >> >>> stc >> >> >>> bogomips : 1608.92 >> >> >>> clflush size : 64 >> >> >>> >> >> >>> --- >> >> >>> >> >> >>> My boss is getting very impatient i have to get this working :) Any >> >> >>> help is appreciated! >> >> >>> >> >> >>> >> >> >>> >> >> >>> ------------------------------------------------------------------------- >> >> >>> This SF.net email is sponsored by: Microsoft >> >> >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >> >> >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> >>> _______________________________________________ >> >> >>> perfmon2-devel mailing list >> >> >>> perfmon2-devel@lists.sourceforge.net >> >> >>> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel >> >> >>> >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > - C. >> > >> > >> > >> > -- >> > - C. > > > > -- > - C. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel