Hi

I am getting this when trying to run pfmon. I downloaded the perfmon kernel
from GIT tree. I can successfully compile and install libpfm-3.10. I can
successfully run all the examples from examples_v2.x folder in libpfm.

However, pfmon fails to run with the error "No pmu detected type=41".

To check if my compilation and installation process is correct or not, I
repeated the whole process on an older IBM Thinkpad laptop (Intel Core Duo
T2400 processor) and can successfully run pfmon. However, I need to run
pfmon on the newer laptop.

I was going through the pfmon.c source code and I guess the error is thrown
by pfmon_detect() which calls pfm_get_pmu_type(&type).

Thanks

Saurabh

On Wed, Nov 10, 2010 at 2:20 AM, stephane eranian <eran...@googlemail.com>wrote:

> Hi,
>
> If you are using the perfmon kernel from the GIT tree, this should work
> fine. You have an Intel Westmere single-socket. This is supported.
>
> Can you tell me exactly where you are getting this error message
> from (kernel, libpfm)?
>
>
>
> On Sat, Nov 6, 2010 at 4:02 AM, Saurabh Sinha <spsin...@asu.edu> wrote:
> > Hi
> >
> > Here is the output
> >
> > processor    : 0
> > vendor_id    : GenuineIntel
> > cpu family    : 6
> > model        : 37
> > model name    : Intel(R) Core(TM) i5 CPU       M 460  @ 2.53GHz
> > stepping    : 5
> > cpu MHz        : 1199.000
> > cache size    : 3072 KB
> > physical id    : 0
> > siblings    : 4
> > core id        : 0
> > cpu cores    : 2
> > apicid        : 0
> > initial apicid    : 0
> > fpu        : yes
> > fpu_exception    : yes
> > cpuid level    : 11
> > wp        : yes
> > flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov
> > pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp
> > lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable
> > nonstop_tsc pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm
> > sse4_1 sse4_2 lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
> > bogomips    : 5053.81
> > clflush size    : 64
> > cache_alignment    : 64
> > address sizes    : 36 bits physical, 48 bits virtual
> > power management:
> >
> > processor    : 1
> > vendor_id    : GenuineIntel
> > cpu family    : 6
> > model        : 37
> > model name    : Intel(R) Core(TM) i5 CPU       M 460  @ 2.53GHz
> > stepping    : 5
> > cpu MHz        : 1199.000
> > cache size    : 3072 KB
> > physical id    : 0
> > siblings    : 4
> > core id        : 0
> > cpu cores    : 2
> > apicid        : 1
> > initial apicid    : 1
> > fpu        : yes
> > fpu_exception    : yes
> > cpuid level    : 11
> > wp        : yes
> > flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov
> > pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp
> > lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable
> > nonstop_tsc pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm
> > sse4_1 sse4_2 lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
> > bogomips    : 5053.72
> > clflush size    : 64
> > cache_alignment    : 64
> > address sizes    : 36 bits physical, 48 bits virtual
> > power management:
> >
> > processor    : 2
> > vendor_id    : GenuineIntel
> > cpu family    : 6
> > model        : 37
> > model name    : Intel(R) Core(TM) i5 CPU       M 460  @ 2.53GHz
> > stepping    : 5
> > cpu MHz        : 1199.000
> > cache size    : 3072 KB
> > physical id    : 0
> > siblings    : 4
> > core id        : 2
> > cpu cores    : 2
> > apicid        : 4
> > initial apicid    : 4
> > fpu        : yes
> > fpu_exception    : yes
> > cpuid level    : 11
> > wp        : yes
> > flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov
> > pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp
> > lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable
> > nonstop_tsc pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm
> > sse4_1 sse4_2 lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
> > bogomips    : 5053.73
> > clflush size    : 64
> > cache_alignment    : 64
> > address sizes    : 36 bits physical, 48 bits virtual
> > power management:
> >
> > processor    : 3
> > vendor_id    : GenuineIntel
> > cpu family    : 6
> > model        : 37
> > model name    : Intel(R) Core(TM) i5 CPU       M 460  @ 2.53GHz
> > stepping    : 5
> > cpu MHz        : 1199.000
> > cache size    : 3072 KB
> > physical id    : 0
> > siblings    : 4
> > core id        : 2
> > cpu cores    : 2
> > apicid        : 5
> > initial apicid    : 5
> > fpu        : yes
> > fpu_exception    : yes
> > cpuid level    : 11
> > wp        : yes
> > flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov
> > pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp
> > lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable
> > nonstop_tsc pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm
> > sse4_1 sse4_2 lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
> > bogomips    : 5053.73
> > clflush size    : 64
> > cache_alignment    : 64
> > address sizes    : 36 bits physical, 48 bits virtual
> > power management:
> >
> > Also, I am not sure if I am choosing the right configuration options
> while
> > compiling the kernel. I get the following options:
> >
> >     [*]   Perfmon
> > debugging
> >        [*]   Enable perfmon statistics reporting via debugfs
> >       < >   Support for Intel Pentium 4/Xeon hardware performance
> counters
> >       < >     Support for Intel Netburst Precise Event-Based Sampling
> > (PEBS)
> >       < >   Support for Intel Core-based performance
> > counters
> >       < >     Support for Intel Core/Atom Precise Event-Based Sampling
> > (PEBS)
> >       < >   Support for Intel Atom
> > processor
> >       <M>   Support for Intel Nehalem
> > processor
> >       <*>   Unified Support for Intel Precise Event-Based Sampling (PEBS)
> >       <*>   Support for Intel architectural perfmon
> > v1/v2/v3
> >       < >   Support AMD Athlon64/Opteron64 hardware performance counters
> >
> > I have compiled with all options enabled as built-in <*> as well as
> modules
> > <M>, None of them seem to work. I get the same error message while trying
> to
> > run pfmon.
> >
> > Thanks
> >
> > Saurabh
> >
> > On Fri, Nov 5, 2010 at 6:53 PM, stephane eranian <eran...@googlemail.com
> >
> > wrote:
> >>
> >> Cat you send me the output of cat /proc/cpuinfo?
> >>
> >>
> >> On Fri, Nov 5, 2010 at 10:58 PM, Saurabh Sinha <spsin...@asu.edu>
> wrote:
> >> > Hi
> >> >
> >> > Thanks for the reply. I checked the mailing list archive and figured
> >> > that I
> >> > needed the latest kernel source code. Here are the exact steps that I
> >> > took:
> >> >
> >> > I downloaded the source code from the git-tree and  compiled 2.6.30.
> >> > While
> >> > setting up the configuration file, I enabled all the options for
> >> > Hardware
> >> > Performance Monitoring.
> >> > I re-compiled libpfm-3.10 and pfmon-3.9. I changed the compiler flags
> >> > for
> >> > the folder smpl_mod inside pfmon because Warnings were being treated
> as
> >> > errors preventing successful compilation. Please let me know if I
> >> > shouldn't
> >> > do this or if there is a workaround.
> >> > When I check /sys/kernel/perfmon there is a folder pmu_desc
> >> > pmu_desc has the following contents
> >> >
> >> > model  pmc1   pmc2  pmd0  pmd16  pmd18  pmd3
> >> > pmc0   pmc16  pmc3  pmd1  pmd17  pmd2
> >> >
> >> > cat model shows: Intel architectural
> >> >
> >> > However, I still get the exact same error message while trying to run
> >> > pfmon:
> >> >
> >> >  no detected PMU support type=41.
> >> >
> >> > Please advise.
> >> >
> >> > Thanks
> >> >
> >> > Saurabh
> >> >
> >> > On Fri, Nov 5, 2010 at 7:41 AM, stephane eranian
> >> > <eran...@googlemail.com>
> >> > wrote:
> >> >>
> >> >> Hi,
> >> >>
> >> >> To get support for Model 37 (Arrandale) processor, I suggest you
> >> >> download
> >> >> the
> >> >> latest source code for 2.6.30 from the perfmon GIT tree on
> kernel.org.
> >> >>
> >> >>
> >> >> git clone
> >> >> git://git.kernel.org/pub/scm/linux/kernel/git/eranian/linux-2.6.git
> >> >>
> >> >>
> >> >> On Fri, Nov 5, 2010 at 1:26 AM, Saurabh Sinha <spsin...@asu.edu>
> wrote:
> >> >> > Hi
> >> >> >
> >> >> > I need some help in running pfmon. I am running Fedora Core 11 on a
> >> >> > patched
> >> >> > Linux kernel 2.6.29.4 (using the kernel patch 6.29 from
> >> >> > perfmon2.sf.net).
> >> >> > Mine is a Toshiba M645 Laptop with Intel Core i5 460-m processor. I
> >> >> > installed the libpfm 3.10 libraries and compiled pfmon-3.9.
> >> >> >
> >> >> > I am getting the following error on trying to run pfmon
> >> >> >
> >> >> > no detected PMU support type=41
> >> >> >
> >> >> > The libpfm examples (examples_v2.x) files run successfully. Any
> help
> >> >> > would
> >> >> > be great appreciated.
> >> >> >
> >> >> > Thanks
> >> >> > --
> >> >> > Saurabh Sinha
> >> >> > Graduate Research Assistant
> >> >> > 333 GWC
> >> >> > Department of Electrical Engineering
> >> >> > Arizona State University
> >> >> > Tempe, AZ
> >> >> > Ph: 480-686-2477
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> ------------------------------------------------------------------------------
> >> >> > The Next 800 Companies to Lead America's Growth: New Video
> Whitepaper
> >> >> > David G. Thomson, author of the best-selling book "Blueprint to a
> >> >> > Billion" shares his insights and actions to help propel your
> >> >> > business during the next growth cycle. Listen Now!
> >> >> > http://p.sf.net/sfu/SAP-dev2dev
> >> >> > _______________________________________________
> >> >> > perfmon2-devel mailing list
> >> >> > perfmon2-devel@lists.sourceforge.net
> >> >> > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
> >> >> >
> >> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Saurabh Sinha
> >> > Graduate Research Assistant
> >> > 333 GWC
> >> > Department of Electrical Engineering
> >> > Arizona State University
> >> > Tempe, AZ
> >> > Ph: 480-686-2477
> >> >
> >
> >
> >
> > --
> > Saurabh Sinha
> > Graduate Research Assistant
> > 333 GWC
> > Department of Electrical Engineering
> > Arizona State University
> > Tempe, AZ
> > Ph: 480-686-2477
> >
>



-- 
Saurabh Sinha
Graduate Research Assistant
333 GWC
Department of Electrical Engineering
Arizona State University
Tempe, AZ
Ph: 480-686-2477
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to