1 Reply Latest reply on Apr 3, 2009 1:02 PM by leiy

    Oprofile collected no samples

    lakkok

      Hi,

      I am having trouble with CodeAnalyst:

       

      CodeAnalyst Warning

      Oprofile collected no samples
      Suggestion:
      -Check the profiling duration
      -Check number of counts for events
      -Check "start delay period" and "start with the profiling paused" options

       

      I am running Ubuntu on VmWare. Any ideas?

      Thanks, Levent

       

      log:

      <quote>

      oprofiled started Thu Apr  2 19:22:40 2009
      kernel pointer size: 4
      *** glibc detected *** /opt/CodeAnalyst//bin//oprofiled: double free or corruption (out): 0x0809d3b0 ***
      ======= Backtrace: =========
      /lib/tls/i686/cmov/libc.so.6[0xb7ceba85]
      /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7cef4f0]
      /opt/CodeAnalyst//bin//oprofiled[0x804e8ca]
      /opt/CodeAnalyst//bin//oprofiled[0x804d39d]
      /opt/CodeAnalyst//bin//oprofiled[0x804d28a]
      /opt/CodeAnalyst//bin//oprofiled[0x804d529]
      /opt/CodeAnalyst//bin//oprofiled[0x804e4b4]
      /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7c96450]
      /opt/CodeAnalyst//bin//oprofiled(__gxx_personality_v0+0x14d)[0x804cf41]
      ======= Memory map: ========
      08048000-08076000 r-xp 00000000 08:01 975556     /opt/CodeAnalyst/bin/oprofiled
      08076000-08077000 rw-p 0002e000 08:01 975556     /opt/CodeAnalyst/bin/oprofiled
      08077000-080bc000 rw-p 08077000 00:00 0          [heap]
      b7b00000-b7b21000 rw-p b7b00000 00:00 0
      b7b21000-b7c00000 ---p b7b21000 00:00 0
      b7c2f000-b7c80000 rw-p b7c2f000 00:00 0
      b7c80000-b7dc9000 r-xp 00000000 08:01 1026470    /lib/tls/i686/cmov/libc-2.7.so
      b7dc9000-b7dca000 r--p 00149000 08:01 1026470    /lib/tls/i686/cmov/libc-2.7.so
      b7dca000-b7dcc000 rw-p 0014a000 08:01 1026470    /lib/tls/i686/cmov/libc-2.7.so
      b7dcc000-b7dcf000 rw-p b7dcc000 00:00 0
      b7dcf000-b7dd9000 r-xp 00000000 08:01 1008389    /lib/libgcc_s.so.1
      b7dd9000-b7dda000 rw-p 0000a000 08:01 1008389    /lib/libgcc_s.so.1
      b7dda000-b7dfd000 r-xp 00000000 08:01 1026474    /lib/tls/i686/cmov/libm-2.7.so
      b7dfd000-b7dff000 rw-p 00023000 08:01 1026474    /lib/tls/i686/cmov/libm-2.7.so
      b7dff000-b7ee7000 r-xp 00000000 08:01 542243     /usr/lib/libstdc++.so.6.0.9
      b7ee7000-b7eea000 r--p 000e8000 08:01 542243     /usr/lib/libstdc++.so.6.0.9
      b7eea000-b7eec000 rw-p 000eb000 08:01 542243     /usr/lib/libstdc++.so.6.0.9
      b7eec000-b7ef2000 rw-p b7eec000 00:00 0
      b7ef2000-b7ef4000 r-xp 00000000 08:01 1026473    /lib/tls/i686/cmov/libdl-2.7.so
      b7ef4000-b7ef6000 rw-p 00001000 08:01 1026473    /lib/tls/i686/cmov/libdl-2.7.so
      b7ef6000-b7ef7000 rw-p b7ef6000 00:00 0
      b7ef7000-b7efe000 r-xp 00000000 08:01 1007731    /lib/libpopt.so.0.0.0
      b7efe000-b7eff000 rw-p 00006000 08:01 1007731    /lib/libpopt.so.0.0.0
      b7eff000-b7fbc000 r-xp 00000000 08:01 542098     /usr/lib/libbfd-2.18.0.20080103.so
      b7fbc000-b7fc6000 rw-p 000bc000 08:01 542098     /usr/lib/libbfd-2.18.0.20080103.so
      b7fc6000-b7fca000 rw-p b7fc6000 00:00 0
      b7fdc000-b7fdf000 rw-p b7fdc000 00:00 0
      b7fdf000-b7fe0000 r-xp b7fdf000 00:00 0          [vdso]
      b7fe0000-b7ffa000 r-xp 00000000 08:01 1008390    /lib/ld-2.7.so
      b7ffa000-b7ffc000 rw-p 00019000 08:01 1008390    /lib/ld-2.7.so
      bfd8e000-bfda3000 rw-p bffeb000 00:00 0          [stack]

      Thu Apr  2 19:22:55 2009

      Nr. sample dumps: 2
      Nr. non-backtrace samples: 0
      Nr. kernel samples: 0
      Nr. lost samples (no kernel/user): 0
      Nr. lost kernel samples: 0
      Nr. incomplete code structs: 0
      Nr. samples lost due to sample file open failure: 0
      Nr. samples lost due to no permanent mapping: 0
      Nr. JIT entries received from agent: 0
      Nr. samples mapped to JIT: 0
      Nr. IBS samples mapped: 0
      Nr. event lost due to buffer overflow: 0
      Nr. samples lost due to no mapping: 0
      Nr. backtraces skipped due to no file mapping: 0
      Nr. samples lost due to no mm: 0
      Nr. samples lost cpu buffer overflow: 0
      Nr. samples received: 0
      Nr. backtrace aborted: 0
      </quote>

      My system:

      <quote>

      Onboard local apic detected.
      Linux version 2.6.24-19-generic (buildd@terranova) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Wed Aug 20 22:56:21 UTC 2008
      processor    : 0
      vendor_id    : AuthenticAMD
      cpu family    : 15
      model        : 65
      model name    : Dual-Core AMD Opteron(tm) Processor 2218
      stepping    : 3
      cpu MHz        : 2599.884
      cache size    : 1024 KB
      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 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm extapic ts fid vid ttp tm stc
      bogomips    : 5205.83
      clflush size    : 64
      processor    : 1
      vendor_id    : AuthenticAMD
      cpu family    : 15
      model        : 65
      model name    : Dual-Core AMD Opteron(tm) Processor 2218
      stepping    : 3
      cpu MHz        : 2599.884
      cache size    : 1024 KB
      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 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm extapic ts fid vid ttp tm stc
      bogomips    : 5204.86
      clflush size    : 64

      </quote>

        • Oprofile collected no samples
          leiy

          I don't think performance events controls and counters (PERF_CTL and PERF_CTR) are virtualized. The interrupt caused by the counter overflow was not handled by the VmWare.

          In other words, the traditional way of event based profile is not supported in the virtualization system.

          -Lei