lkml.org 
[lkml]   [2015]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [patch] perf_event_open.2: 3.19 PERF_SAMPLE_REGS_INTR support
On Mon, 2 Mar 2015, Stephane Eranian wrote:

> vince,

> PEBS machine state. Problem is that there is only one set of pt_regs passed to
> __intel_pmu_pebs_event(). And if REGS_INTR is set, then the pt_regs
> registers are
> indeed overwritten with PEBS captured state. To avoid the issue, we
> would have to
> carry around two sets of pt_regs.

I don't think we have to carry around both (would that ever be useful?)
Just that the behavior is a bit surprising and I should document it in the
manpage.

One question I do have: if it never makes sense to measure REGS_USER and
REGS_INTR at the same time, why was the latter added at all? Why not just
have the REGS_USER information automatically upgrade to REGS_INTR if
precise_ip is high enough?

Vince



\
 
 \ /
  Last update: 2015-03-02 22:41    [W:0.090 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site