lkml.org 
[lkml]   [2008]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] tracing/function-return-tracer: Make the function return tracer lockless
> So the answer to this is:
>
> i = index++;
> barrier();
> write to index i (not index);

That was my first thought when I wrote the original email,
but the disadvantage is that barrier() is a big hammer
that flushes everything and can make the code much worse.
That is why I suggested local_add_return() instead.

-Andi

--
ak@linux.intel.com


\
 
 \ /
  Last update: 2008-11-13 18:27    [from the cache]
©2003-2011 Jasper Spaans