Subject: oprofile: With 2.6.37 Error: counter 0 not available
Package: oprofile
Version: 0.9.6-1.1
Severity: important

Dear Debian folks,


using `linux-image-2.6.37-2-{amd64,686}` I get the following error.

        $ sudo opcontrol --start
        Using default event: CPU_CLK_UNHALTED:100000:0:1:1
        Error: counter 0 not available

Using `linux-image-2.6.32-5-{amd64,686}` OProfile works fine.

Here is the verbose output.

        $ sudo opcontrol --start-daemon --verbose
        Parameters used:
        SESSION_DIR /var/lib/oprofile
        LOCK_FILE /var/lib/oprofile/lock
        SAMPLES_DIR /var/lib/oprofile/samples
        CURRENT_SAMPLES_DIR /var/lib/oprofile/samples/current
        CPUTYPE x86-64/hammer
        BUF_SIZE default value
        BUF_WATERSHED default value
        CPU_BUF_SIZE default value
        SEPARATE_LIB 0
        SEPARATE_KERNEL 0
        SEPARATE_THREAD 0
        SEPARATE_CPU 0
        CALLGRAPH 0
        VMLINUX none
        KERNEL_RANGE
        XENIMAGE none
        XEN_RANGE
        Using default event: CPU_CLK_UNHALTED:100000:0:1:1

Running `strace`

        $ sudo strace opcontrol --start-daemon
        […]
        stat64("/dev/oprofile/0", 0xff874828)   = -1 ENOENT (No such file or 
directory)
        rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
        write(1, "Error: counter 0 not available", 30Error: counter 0 not 
available) = 30
        rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
        stat64("/proc/sys/kernel/nmi_watchdog", 0xff874628) = -1 ENOENT (No 
such file or directory)
        rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
        rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
        exit_group(1)                           = ?

it looks like that certain devices are not available. The module seems to load 
fine according to the output of `dmesg`.

        [  812.337393] oprofile: using NMI interrupt.

Please reassign this report to the appropriate package. Is this a Linux kernel 
issues? Although I would be surprised because I did not find a lot of reports 
on the WWW.

Just for your interest, I can reproduce that on two different machines.


Thanks,

Paul

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.37-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages oprofile depends on:
ii  debconf [debconf-2.0]   1.5.38           Debian configuration management sy
ii  libc6                   2.11.2-11        Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.5.2-4        GCC support library
ii  libpopt0                1.16-1           lib for parsing cmdline parameters
ii  libstdc++6              4.5.2-4          The GNU Standard C++ Library v3
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages oprofile recommends:
ii  binutils               2.21.0.20110216-2 The GNU assembler, linker and bina

Versions of packages oprofile suggests:
pn  oprofile-gui                  <none>     (no description available)

-- no debconf information

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to