lkml.org 
[lkml]   [2008]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 05/24] perfmon: X86 generic code (x86)
    > What about a thread doing this and another one in the middle of read the buffer?

    I assume that uses locks. Locking between threads is easy.

    >
    > Or what about a thread trying to reset the buffer while you're processing an PMU
    > interrupt on another CPU. I know each buffer is per-CPU, but that does not
    > prevent two threads for trying to operate on it at the same time from
    > different CPUs.

    That happens per CPU.

    -Andi

    --
    ak@linux.intel.com


    \
     
     \ /
      Last update: 2008-11-27 14:41    [W:0.053 / U:89.480 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site