Topic
  • 13 replies
  • Latest Post - ‏2009-10-28T22:11:14Z by HermannPS
HermannPS
HermannPS
46 Posts

Pinned topic Module perfmon_cell_hw_smpl not found error

‏2009-09-30T12:47:33Z |
When i try to run the command below (from "Cell/B.E. SDK 3.0 tools, Part 1: Using performance tools" - LINK: https://www6.software.ibm.com/developerworks/education/pa-sdk3tool/section4.html):

cpc -e 2100,2101,2106,2109 -e 2103,2104,2111,2119 -c all --sampling-buffer-size 15 --interval 100000000 -X fft_cpc2.pmf -t 10 fft 40 printflag

i´ve got this error:

FATAL: Module perfmon_cell_hw_smpl not found.
Error: Unable to load perfmon_cell_hw_smpl driver module: Operation
not permitted.

Any tip in how to solve this? I´ve just search fs for perfmon_cell_hw_smpl file but this does not exist... how do i create/install this module? this belong to a lib/rpm?

System: fedora 9 - sdk 3.0 (all packages installed)

Thanks in advance!
Updated on 2009-10-28T22:11:14Z at 2009-10-28T22:11:14Z by HermannPS
  • HermannPS
    HermannPS
    46 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-05T23:41:14Z  
    please, need assistence :)
  • gcst
    gcst
    171 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-06T08:44:59Z  
    • HermannPS
    • ‏2009-10-05T23:41:14Z
    please, need assistence :)
    >FATAL: Module perfmon_cell_hw_smpl not found.

    perfmon_cell_hw_smpl is a kernel module, which you should find in /lib/modules/<output of uname -r>.

    Which kernelversion is this and which hardware?
  • HermannPS
    HermannPS
    46 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-07T01:33:00Z  
    • gcst
    • ‏2009-10-06T08:44:59Z
    >FATAL: Module perfmon_cell_hw_smpl not found.

    perfmon_cell_hw_smpl is a kernel module, which you should find in /lib/modules/<output of uname -r>.

    Which kernelversion is this and which hardware?
    Thanks for your help.

    *find /lib/modules -name 'perfmon_cell_hw_smpl*'*

    No result found :(

    Kernel: 2.6.25 compiled with perfmon2 patch version 3.5 (http://sourceforge.net/projects/perfmon2/files/).
    Hardware: Cell PS3
    OS: Fedora 9
    SDK: 3.1 (all packages)

    I compiled libpfm-3.5 and pfmon-3.5 too...

    Someone in the forum suggested that I need compile the kernel from barcelona supercomputing, but I did not find a road map on how to do this because there are dozens of patch available on the kernel source RPM, and I do not know what I need install to have the CPC working without error.

    By now, im looking into http://www.bsc.es/projects/deepcomputing/linuxoncell/ some instructions... I don't know if I'm going in the right direction. Have a suggestion?

    Thanks again.
  • HermannPS
    HermannPS
    46 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-08T02:46:57Z  
    • gcst
    • ‏2009-10-06T08:44:59Z
    >FATAL: Module perfmon_cell_hw_smpl not found.

    perfmon_cell_hw_smpl is a kernel module, which you should find in /lib/modules/<output of uname -r>.

    Which kernelversion is this and which hardware?
    Today I tried to apply the patch that comes with the kernel source package from barcelona supercomputing (kernel-2.6.25.14-108.20080910bsc.src.rpm).

    As I don't find any guide that shows patch's order of installation, I tried to install in alphabetical order those that started with numbers. Here is the result:

    root@lua linux-2.6.25# patch -p1 -s < ../0001-arch-Remove-unnecessary-inclusions-of-asm-semaphore.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-dma-add-dma_-map-_attrs-interfaces.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-dma-document-dma_-map-_attrs-interfaces.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-oprofile-change-cpu_buffer-from-array-to-per_cpu-va.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-oprofile-don-t-request-cache-line-alignment-for-cpu.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-POWERPC-Add-thread_info_cache_init-weak-hook.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-cell-Add-DMA_ATTR_WEAK_ORDERING-dma-attribu.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-cell-Add-support-for-power-button-of-future.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-cell-cell_dma_dev_setup_iommu-return-the.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-cell-Cleanup-sysreset_hack-for-IBM-cell-bla.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-cell-cpufreq-Add-spu-aware-cpufreq-governor.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-cell-oprofile-fix-mutex-locking-for-spu-opr.patch
    1 out of 7 hunks FAILED -- saving rejects to file arch/powerpc/oprofile/cell/spu_task_sync.c.rej
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-dma-Add-struct-iommu_table-argument-to-iomm.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-move-device_to_mask-to-dma-mapping.h.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-POWERPC-Replace-remaining-__FUNCTION__-occurrences.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-spufs-add-atomic-busy_spus-counter-to-struc.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-POWERPC-spufs-add-context-switch-notification-log.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-POWERPC-spufs-add-.gitignore-for-spu_save_dump.h.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-POWERPC-spufs-add-newline-to-signal-1-2-_type-fil.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-POWERPC-spufs-add-sputrace-marker-parameter-names.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-spufs-fix-aff_mutex-and-cbe_spu_info-n-.lis.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-spufs-Fix-multiple-get_spu_context.patch
    1 out of 1 hunk FAILED -- saving rejects to file arch/powerpc/platforms/cell/spufs/sched.c.rej
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-spufs-fix-npc-setting-for-NOSCHED-contexts.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-powerpc-spufs-reference-context-while-dropping-stat.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0001-PS3-Add-usb-fix-hcd-interrupt-disabling.patch.patch
    1 out of 1 hunk FAILED -- saving rejects to file drivers/usb/core/hcd.c.rej
    root@lua linux-2.6.25# patch -p1 -s < ../0001-tg3-Fix-5714S-5715S-5780S-link-failures.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-powerpc-cell-edac-Log-a-syndrome-code-in-case-of-co.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-POWERPC-cell-Fix-lost-interrupts-due-to-fasteoi-h.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-powerpc-cell-oprofile-avoid-double-free-of-profile.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-powerpc-dma-implement-new-dma_-map-_attrs-interfa.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-powerpc-dma-Use-the-struct-dma_attrs-in-iommu-code.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-POWERPC-Fix-kernel-stack-allocation-alignment.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-POWERPC-spufs-add-marker-for-destroy_spu_context.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-powerpc-spufs-better-placement-of-spu-affinity-refe.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-powerpc-spufs-Fix-race-for-a-free-SPU.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0002-POWERPC-spufs-reacquire-LS-pointer-in-spu_process.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0003-POWERPC-spufs-don-t-touch-suspend-bits-when-purgi.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0003-POWERPC-spufs-fix-marker-name-for-find_victim.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0003-powerpc-spufs-Fix-possible-scheduling-of-a-context.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0003-POWERPC-spufs-save-MFC-command-channel-before-pur.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0003-POWERPC-spufs-spu_create-should-send-inotify-IM_C.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0004-POWERPC-spufs-don-t-requeue-victim-contex-in-find.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0004-POWERPC-spufs-fix-incorrect-file-descriptors-in-S.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0004-POWERPC-spufs-fix-save-of-mfc_cntl-register.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0004-POWERPC-spufs-trace-spu_acquire_saved-events.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0005-POWERPC-spufs-fix-post-stopped-update-of-MFC_CNTL.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0005-POWERPC-spufs-lockdep-annotations-for-spufs_dir_c.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0006-POWERPC-spufs-Fix-pointer-reference-in-find_victi.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0006-POWERPC-spufs-update-master-runcntl-with-context.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0007-POWERPC-spufs-don-t-acquire-state_mutex-interrupt.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0007-POWERPC-spufs-Fix-compile-error.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0008-POWERPC-spufs-set-SPU_CONTEXT_SWITCH_PENDING-befo.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0009-POWERPC-spufs-try-to-route-SPU-interrupts-to-loca.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0010-POWERPC-spufs-fix-concurrent-delivery-of-class-0.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0010-powerpc-spufs-wait-for-stable-spu-status-in-spu_sto.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0011-POWERPC-spufs-handle-faults-while-the-context-swi.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0011-powerpc-spufs-remove-class_0_dsisr-from-spu-excepti.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0012-powerpc-spufs-synchronize-interaction-between-spu-e.patch
    root@lua linux-2.6.25# patch -p1 -s < ../0013-powerpc-spufs-fix-missed-stop-and-signal-event.patch

    There are still other patch (those that do not begin with numbers) that I have not applied yet.

    I wish somebody would send me a guide to which patch should I apply to get CPC (and other essential components of the SDK) working properly without error.

    I still try find "perfmon_cell_hw_smpl" file on kernel source from barcelona supercoputing without sucess. Some help would be apreciated.
  • gcst
    gcst
    171 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-12T11:15:56Z  
    • HermannPS
    • ‏2009-10-07T01:33:00Z
    Thanks for your help.

    *find /lib/modules -name 'perfmon_cell_hw_smpl*'*

    No result found :(

    Kernel: 2.6.25 compiled with perfmon2 patch version 3.5 (http://sourceforge.net/projects/perfmon2/files/).
    Hardware: Cell PS3
    OS: Fedora 9
    SDK: 3.1 (all packages)

    I compiled libpfm-3.5 and pfmon-3.5 too...

    Someone in the forum suggested that I need compile the kernel from barcelona supercomputing, but I did not find a road map on how to do this because there are dozens of patch available on the kernel source RPM, and I do not know what I need install to have the CPC working without error.

    By now, im looking into http://www.bsc.es/projects/deepcomputing/linuxoncell/ some instructions... I don't know if I'm going in the right direction. Have a suggestion?

    Thanks again.
    To compile the BSC kernel on a PS3, do the following:
    
    wget http:
    //www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.1/SRPMS/kernel-2.6.25.14-108.20080910bsc.src.rpm rpm -ivh kernel-2.6.25.14-108.20080910bsc.src.rpm cd /usr/src/redhat/  rpmbuild -bp SPECS/kernel.spec cd BUILD/kernel-2.6.25/linux-2.6.25.ppc64/  make menuconfig (to change PAGESIZE from 64k to 4k) make -j2 make modules_install make install
    

    and add a new entry to /etc/yaboot.conf similar to this one:
    
    image=/vmlinux-2.6.25.14 label=test read-only initrd=/initrd-2.6.25.14.img append=
    "video=720p rhgb quiet root=/dev/ps3da3"
    
  • HermannPS
    HermannPS
    46 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-14T01:15:31Z  
    • gcst
    • ‏2009-10-12T11:15:56Z
    To compile the BSC kernel on a PS3, do the following:
    <pre class="jive-pre"> wget http: //www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.1/SRPMS/kernel-2.6.25.14-108.20080910bsc.src.rpm rpm -ivh kernel-2.6.25.14-108.20080910bsc.src.rpm cd /usr/src/redhat/ rpmbuild -bp SPECS/kernel.spec cd BUILD/kernel-2.6.25/linux-2.6.25.ppc64/ make menuconfig (to change PAGESIZE from 64k to 4k) make -j2 make modules_install make install </pre>
    and add a new entry to /etc/yaboot.conf similar to this one:
    <pre class="jive-pre"> image=/vmlinux-2.6.25.14 label=test read-only initrd=/initrd-2.6.25.14.img append= "video=720p rhgb quiet root=/dev/ps3da3" </pre>
    Thank you very much. I will try this and report any advance for future forum members reference.
  • HermannPS
    HermannPS
    46 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-26T11:18:49Z  
    • gcst
    • ‏2009-10-12T11:15:56Z
    To compile the BSC kernel on a PS3, do the following:
    <pre class="jive-pre"> wget http: //www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.1/SRPMS/kernel-2.6.25.14-108.20080910bsc.src.rpm rpm -ivh kernel-2.6.25.14-108.20080910bsc.src.rpm cd /usr/src/redhat/ rpmbuild -bp SPECS/kernel.spec cd BUILD/kernel-2.6.25/linux-2.6.25.ppc64/ make menuconfig (to change PAGESIZE from 64k to 4k) make -j2 make modules_install make install </pre>
    and add a new entry to /etc/yaboot.conf similar to this one:
    <pre class="jive-pre"> image=/vmlinux-2.6.25.14 label=test read-only initrd=/initrd-2.6.25.14.img append= "video=720p rhgb quiet root=/dev/ps3da3" </pre>
    On modules install, get this error:

    INSTALL sound/usb/snd-usb-audio.ko
    INSTALL sound/usb/snd-usb-lib.ko
    INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
    DEPMOD 2.6.25.14
    /bin/sh: line 1: 25683 Killed /sbin/depmod -ae -F System.map 2.6.25.14
    *make: *** _modinst_post Error 137*
    root@localhost linux-2.6.25.ppc64#
    Any tip?
  • gcst
    gcst
    171 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-26T11:42:55Z  
    • HermannPS
    • ‏2009-10-26T11:18:49Z
    On modules install, get this error:

    INSTALL sound/usb/snd-usb-audio.ko
    INSTALL sound/usb/snd-usb-lib.ko
    INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
    DEPMOD 2.6.25.14
    /bin/sh: line 1: 25683 Killed /sbin/depmod -ae -F System.map 2.6.25.14
    *make: *** _modinst_post Error 137*
    root@localhost linux-2.6.25.ppc64#
    Any tip?
    Maybe your disk is full?
  • HermannPS
    HermannPS
    46 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-26T13:08:37Z  
    • gcst
    • ‏2009-10-26T11:42:55Z
    Maybe your disk is full?
    Thank for your response,

    I dont think this is the problem, on "df" I get 20% disk space usage.
  • HermannPS
    HermannPS
    46 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-26T13:38:15Z  
    • gcst
    • ‏2009-10-26T11:42:55Z
    Maybe your disk is full?
    well, my search for related problems on google i found this site that best describe my problem:

    http://www.linuxforums.org/forum/slackware-linux-help/147257-depmod-problems-when-trying-install-modules.html

    The conclusion here is:
    "So the moral for me here is never change too much config at a time I think . If I want to configure some debug into my kernel I'll do it softly softly next time."

    I will try to recompile Barcelona's kernel with the same .config options used by original installed on my system, and change .config as little as possible to make cpc and perfmon work properly...

    The question now is: how do I recover .config options used by my running kernel (Fedora 9 default kernel), and how do I know the options that Barcelona's Kernel enable for use?

    Thanks in advance.
  • gcst
    gcst
    171 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-26T14:49:24Z  
    • HermannPS
    • ‏2009-10-26T13:38:15Z
    well, my search for related problems on google i found this site that best describe my problem:

    http://www.linuxforums.org/forum/slackware-linux-help/147257-depmod-problems-when-trying-install-modules.html

    The conclusion here is:
    "So the moral for me here is never change too much config at a time I think . If I want to configure some debug into my kernel I'll do it softly softly next time."

    I will try to recompile Barcelona's kernel with the same .config options used by original installed on my system, and change .config as little as possible to make cpc and perfmon work properly...

    The question now is: how do I recover .config options used by my running kernel (Fedora 9 default kernel), and how do I know the options that Barcelona's Kernel enable for use?

    Thanks in advance.
    Fedora puts the config file in /boot, when it installs a kernel rpm.
  • HermannPS
    HermannPS
    46 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-28T17:35:06Z  
    • gcst
    • ‏2009-10-26T11:42:55Z
    Maybe your disk is full?
    Let me report the progress made on my journey to build the kernel for use performance tools on PS3.

    I followed the steps defined by "gcst", but I had to disable the "Kernel Debug" in "make menuconfig", because It was the cause of the error 137 reported by me during the "make modules_install" step, as well described in http://linuxhacksandfixes.blogspot.com/2009/06/fix-for-depmod-gives-cannot-allocate.html.

    Now that I have the new kernel functioning, I tried run the command

    cpc -e 2100,2101,2106,2109 -e 2103,2104,2111,2119 -c all --sampling-buffer-size 15 --interval 100000000 -X fft_cpc2.pmf -t 10 fft 40 printflag

    and got the following error:

    carll, __NR_pfm_create_context = 313
    Error: Could not create Perfmon2 context: Cannot allocate memory.

    Can someone help me identify the cause of this error? Apparently, when I run this command, I don't see the RAM being used, and now I have 100MB RAM free for use.

    I've tried to reduce "interval", "sampling-buffer-size" and use "ls" command instead of "fft" but the error still the same... any tip or guess would be apreciated.
  • HermannPS
    HermannPS
    46 Posts

    Re: Module perfmon_cell_hw_smpl not found error

    ‏2009-10-28T22:11:14Z  
    the command "cpc -e 2100,2101,2106,2109 -e 2103,2104,2111,2119 -c all --sampling-buffer-size 15 --interval 100000000 -X fft_cpc2.pmf -t 10 fft 40 printflag" don't run, despite the error message be another.