login
Header Space

 
 

Re: [patch] x86, ptrace: in-kernel BTS interface

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Roland McGrath <roland@...>
Cc: Metzger, Markus T <markus.t.metzger@...>, <linux-kernel@...>, <mingo@...>, <tglx@...>, Siddha, Suresh B <suresh.b.siddha@...>, Villacis, Juan <juan.villacis@...>
Date: Tuesday, May 6, 2008 - 2:39 am

Hi,

On Tue, May 6, 2008 at 1:03 AM, Roland McGrath <roland@redhat.com> wrote:
I would let the upper layer handle this. Perfmon2 takes care of this today.
But the consumer may be the kernel, so you could not charge this onto
the current/asking task.


Exactly!


In Perfmon2, we want to keep control of the buffer allocation. Thus we want
to be able to pass the buffer base address and size, that's all. Perfmon2
does allow the buffer to be remapped to user level.


I agree. I think I have discussed this with Markus already because I
ran into some
issue when experimenting with ds.c for perfmon PEBS support.


I am not sure I undertstand what you mean by multiplexing?
Are you talking about per-thread vs. system-wide?
Perfmon2 does support both modes incl. for PEBS, although in system-wide
mode, there is not enough information saved in the PEBS buffer to determine
which task generated the sample.


The interest for using ds for perfmon2 is:
    - hides the details about the DS layout (different from P4 to Intel Core)
    - ensures mutual exclusion on the DS/PEBS resource
    - manages DS save/restore on context switch

So it removes a lot of code.

But perfmon2 does not use:
    - buffer allocation
    - PEBS record abstraction
    - BTS (not yet)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] x86, ptrace: in-kernel BTS interface, Markus Metzger, (Wed Apr 30, 7:54 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Roland McGrath, (Fri May 2, 9:43 pm)
RE: [patch] x86, ptrace: in-kernel BTS interface, Metzger, Markus T, (Mon May 5, 5:09 am)
RE: [patch] x86, ptrace: in-kernel BTS interface, Roland McGrath, (Mon May 5, 7:03 pm)
Re: [patch] x86, ptrace: in-kernel BTS interface, stephane eranian, (Tue May 6, 2:39 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andi Kleen, (Sat May 3, 4:45 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andi Kleen, (Wed Apr 30, 9:03 am)
RE: [patch] x86, ptrace: in-kernel BTS interface, Metzger, Markus T, (Wed Apr 30, 11:30 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andi Kleen, (Wed Apr 30, 12:06 pm)
RE: [patch] x86, ptrace: in-kernel BTS interface, Metzger, Markus T, (Mon May 5, 2:25 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andrew Morton, (Wed Apr 30, 8:26 am)
RE: [patch] x86, ptrace: in-kernel BTS interface, Metzger, Markus T, (Wed Apr 30, 8:43 am)
Re: [patch] x86, ptrace: in-kernel BTS interface, Andrew Morton, (Wed Apr 30, 8:55 am)
speck-geostationary