All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@linux.intel.com>
To: Vince Weaver <vincent.weaver@maine.edu>
Cc: Peter Zijlstra <peterz@infradead.org>,
	"Liang, Kan" <kan.liang@linux.intel.com>,
	Ingo Molnar <mingo@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	Namhyung Kim <namhyung@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Jiri Olsa <jolsa@kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>,
	linux-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com
Subject: Re: perf: is it possible to userspace rdpmc but only on a certain core type
Date: Thu, 23 Jan 2025 21:18:53 -0800	[thread overview]
Message-ID: <Z5MivTsyHedobQGY@tassilo> (raw)
In-Reply-To: <a55139ec-b46d-0854-4d75-845f3b4f788b@maine.edu>

On Thu, Jan 23, 2025 at 02:45:33PM -0500, Vince Weaver wrote:
> On Thu, 23 Jan 2025, Andi Kleen wrote:
> 
> > > I have a student working on this for PAPI.  If we get it working we can 
> > > see if perf could use support too if it doesn't have it already.
> > 
> > perf user space doesn't have a ring 3 self access library.
> 
> what happens if you're doing top-down measurments with perf on a hybrid 
> system and perf gets migrated to an E-core?
> 
> or are you saying perf always uses a syscall to read the top-down values 
> and doesn't use rdpmc in that case? 

perf always uses system calls or mmap.

-Andi

      reply	other threads:[~2025-01-24  5:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-17 22:04 perf: is it possible to userspace rdpmc but only on a certain core type Vince Weaver
2025-01-20 16:44 ` Liang, Kan
2025-01-21 12:52   ` Peter Zijlstra
2025-01-21 14:30     ` Mathieu Desnoyers
2025-01-22 21:51     ` Vince Weaver
2025-01-23 18:14       ` Andi Kleen
2025-01-23 19:45         ` Vince Weaver
2025-01-24  5:18           ` Andi Kleen [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=Z5MivTsyHedobQGY@tassilo \
    --to=ak@linux.intel.com \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=vincent.weaver@maine.edu \
    /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.