[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#622887: /usr/bin/perf_2.6.38: "perf list" lists unsupported events



Package: linux-tools-2.6.38
Version: 2.6.38-3
Severity: normal
File: /usr/bin/perf_2.6.38


Event types listed by "perf list" can't be used for profiling (at
least on my system).

My expectation was that "perf list" would list only events I could
actually use.

For example, note how instructions are counted but not cycles, even
though I ask for both:
"
johan@johansdator:~$ perf list|cat

List of pre-defined events (to be used in -e):

  cpu-cycles OR cycles                       [Hardware event]
  instructions                               [Hardware event]
  cache-references                           [Hardware event]
  cache-misses                               [Hardware event]
  branch-instructions OR branches            [Hardware event]
  branch-misses                              [Hardware event]
  bus-cycles                                 [Hardware event]
[...]

johan@johansdator:~$ sudo perf stat -e cycles -e instructions echo foo
foo

 Performance counter stats for 'echo foo':

     <not counted> cycles                  
           823 105 instructions             #      0,000 IPC  
"

  Regards //Johan

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=sv_SE.utf8, LC_CTYPE=sv_SE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages linux-tools-2.6.38 depends on:
ii  libc6                         2.11.2-11  Embedded GNU C Library: Shared lib
ii  libdw1                        0.152-1    library that provides access to th
ii  libelf1                       0.152-1    library to read and write ELF file
ii  libnewt0.52                   0.52.11-2  Not Erik's Windowing Toolkit - tex
ii  libperl5.10                   5.10.1-19  shared Perl library
ii  libpython2.6                  2.6.6-8+b1 Shared Python runtime library (ver
ii  libslang2                     2.2.2-4    The S-Lang programming library - r
ii  perl                          5.10.1-19  Larry Wall's Practical Extraction 
ii  python                        2.6.6-12   interactive high-level object-orie
ii  python-support                1.0.11     automated rebuilding support for P

Versions of packages linux-tools-2.6.38 recommends:
ii  linux-base                    3.2        Linux image base package

Versions of packages linux-tools-2.6.38 suggests:
pn  linux-doc-2.6.38              <none>     (no description available)

-- no debconf information



Reply to: