[lkml]   [2010]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC][PATCH 07/11] perf: Provide PERF_SAMPLE_REGS
    From: Stephane Eranian <>
    Date: Wed, 3 Mar 2010 09:49:33 -0800

    > On Wed, Mar 3, 2010 at 9:39 AM, Peter Zijlstra <> wrote:
    >> On Wed, 2010-03-03 at 09:30 -0800, Stephane Eranian wrote:
    >>> This assumes struct pt_regs is somehow exported to userland.
    >>> Is that the case?
    >> I seems to have understood they were, and asm/ptrace.h seems to agree
    >> with that, it has !__KERNEL__ definitions for struct pt_regs.
    > Seems to be the case, indeed.

    BTW, how are you going to cope with compat systems?

    If I build 'perf' on a sparc64 kernel build, it's going to get the
    64-bit pt_regs. So I can't then use that binary on a sparc box
    running a 32-bit kernel.

    And vice versa.

    And more generally aren't we supposed to be able to eventually analyze
    perf dumps on any platform not just the one 'perf' was built under?

    We'll need to do something about the encoding of pt_regs, therefore.

     \ /
      Last update: 2010-03-03 18:59    [W:0.019 / U:3.728 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site