All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: zhuzhenhua <zzh.hust@gmail.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Subject: Re: is there a way to read cp0_performance in user space?
Date: Tue, 14 Mar 2006 12:41:00 +0000	[thread overview]
Message-ID: <20060314124100.GA4438@linux-mips.org> (raw)
In-Reply-To: <50c9a2250603131856n61c75573w99b4e5f4e3bbce10@mail.gmail.com>

On Tue, Mar 14, 2006 at 10:56:57AM +0800, zhuzhenhua wrote:

> to test my deocder program, i want read cp0_performance, is there a
> way to do that in linux?

There is no interface to directly access the performance counter registers
from an application as it is a priviledged CPU resource.  You can
however use oprofile's kernel interfaces.

  Ralf

      reply	other threads:[~2006-03-14 12:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-14  2:56 is there a way to read cp0_performance in user space? zhuzhenhua
2006-03-14 12:41 ` Ralf Baechle [this message]

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=20060314124100.GA4438@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=linux-mips@linux-mips.org \
    --cc=zzh.hust@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.