2 Replies Latest reply on Apr 27, 2009 8:38 AM by harindra

    CodeAnalyst Error "Cannot open /dev/oprofile/buffer_size"

    harindra
      CodeAnalyst problem

      Hi

       

      I'm trying out CodeAnalyst on Redhat Enterprise Linux WS release 4 on a 4 CPU Opteron (Each CPU is a Dual-Core AMD Opetorn processor 2218). I've installed (or so I think) everything correctly, but when I try running Codeanalyst on an application I get the following error

       

      "Oprofile daemon failed to start

      Reason: Cannot open /dev/oprofile/buffer_size.

      Please check if:

      1. The file exists

      2. User in in "amdca" group".

       

      From what I can see 

      - Oprofile sampling driver is loaded (from "codeanalyst_init status")

      - The file /dev/oprofile/buffer_size exists and is readable

      - I am in group amdca

       

      I've restarted codeanalyst, but get the same error.

      What else do I need to check/fix?

       

      Regards

      Hari

        • CodeAnalyst Error "Cannot open /dev/oprofile/buffer_size"
          suravee

          Hi,

          - What version of CodeAnalyst are you using?

          - What does "ls -l /dev/oprofile/*" return?

          - Can you run as root?

          - Please go to "Menubar -> Tools -> CodeAnlyst Options" and select "Oprofile" Tab.  What do you set for the buffer size?


          Suravee

            • CodeAnalyst Error "Cannot open /dev/oprofile/buffer_size"
              harindra

               

              Hi,

               

              - CodeAnalyst version is 2.8.29

              - Unfortunately I cannot run as root. If it is a must, I can try that.

              - When I do ls -l /dev/opfile/* I get 

               

              ls -arlt /dev/oprofile/

              total 0

              drwxr-xr-x 12 root root  6000 Mar  9 14:45 ../

              drwxrwxr-x  1 root amdca    0 Apr 21 18:06 stats/

              -rwxrwxr-x  1 root amdca    0 Apr 21 18:06 pointer_size*

              -rwxrwxr-x  1 root amdca    0 Apr 21 18:06 enable*

              -rwxrwxr-x  1 root amdca    0 Apr 21 18:06 dump*

              -rwxrwxr-x  1 root amdca    0 Apr 21 18:06 cpu_type*

              -rwxrwxr-x  1 root amdca    0 Apr 21 18:06 cpu_buffer_size*

              -rwxrwxr-x  1 root amdca    0 Apr 21 18:06 buffer_watershed*

              -rwxrwxr-x  1 root amdca    0 Apr 21 18:06 buffer_size*

              -rwxrwxr-x  1 root amdca    0 Apr 21 18:06 buffer*

              drwxrwxr-x  1 root amdca    0 Apr 21 18:06 1/

              drwxrwxr-x  1 root amdca    0 Apr 21 18:06 0/

              drwxrwxr-x  1 root amdca    0 Apr 21 18:06 ./

              drwxrwxr-x  1 root amdca    0 Apr 21 18:06 3/

              drwxrwxr-x  1 root amdca    0 Apr 21 18:06 2/

              --------------------
              ls -l /dev/oprofile/0:
              total 0
              -rwxrwxr-x 1 root amdca 0 Apr 21 18:06 user*
              -rwxrwxr-x 1 root amdca 0 Apr 21 18:06 unit_mask*
              -rwxrwxr-x 1 root amdca 0 Apr 21 18:06 kernel*
              -rwxrwxr-x 1 root amdca 0 Apr 21 18:06 event*
              -rwxrwxr-x 1 root amdca 0 Apr 21 18:06 enabled*
              -rwxrwxr-x 1 root amdca 0 Apr 21 18:06 count*
              drwxrwxr-x 1 root amdca 0 Apr 21 18:06 ../
              drwxrwxr-x 1 root amdca 0 Apr 21 18:06 ./
              - Tools->CodeAnalyst Options->Oprofile has 
               Buffer Size - 80000
               CPU Buffer Size - 80000
              Regards
              Hari