public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Simon Kämpflein" <s.kaempflein@gmx.de>
To: linux-kernel@vger.kernel.org
Subject: perf counters: problem with perf record
Date: Sun, 15 Nov 2009 03:14:03 +1000	[thread overview]
Message-ID: <4AFEE55B.3000906@gmx.de> (raw)

Hello,

I have a problem with the new kernel perf tools in kernel 2.6.31.6 (very
nice tools by the way). I like to monitor the cache-misses of a program.
"perf stat -e cache-misses program" works without problems, but I can't
get "perf record -e cache-misses program" working (even running as root
and CONFIG_PERF_COUNTERS=y):

Error: perfcounter syscall returned with -1 (Operation not supported)
Fatal: No CONFIG_PERF_COUNTERS=y kernel support configured?

strace of "perf stat":
SYS_336(0x8508da0, 0x1074, 0xffffffff, 0xffffffff, 0) = 3

strace of "perf record":
SYS_336(0x8508da0, 0xf85, 0xffffffff, 0xffffffff, 0) = -1 EOPNOTSUPP
(Operation not supported)

My CPU is a "Intel(R) Pentium(R) M processor 1.80GHz":
[    0.004337] p6 PMU driver.
[    0.004343] ... version:                 0
[    0.004345] ... bit width:               32
[    0.004347] ... generic counters:        2
[    0.004349] ... value mask:              00000000ffffffff
[    0.004351] ... max period:              000000007fffffff
[    0.004353] ... fixed-purpose counters:  0
[    0.004355] ... counter mask:            0000000000000003

Best regards,
Simon



             reply	other threads:[~2009-11-14 16:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-14 17:14 Simon Kämpflein [this message]
2009-11-14 19:46 ` perf counters: problem with perf record Peter Zijlstra
2009-11-15 10:06   ` Simon Kämpflein
2009-11-15 10:34     ` Ingo Molnar
2009-11-16  5:25       ` Simon Kämpflein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AFEE55B.3000906@gmx.de \
    --to=s.kaempflein@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox