lkml.org 
[lkml]   [2006]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPer CPU non locked atomic operations
Hi,

In the kernel tracer I develop (LTTng : http://ltt.polymtl.ca), I see a need
that could be shared by others : I extensively use per-CPU data structures to
provide efficient tracing. In addition to that, I use atomic operations (cmpxchg
and atomic increment) to keep track of offsets in the buffer so it can be
reentrant with NMI handlers.

Would there be some larger interest for having non LOCK prefixed versions of
atomic.h functions and cmpxchg for per-CPU variable purposes ?

Mathieu


OpenPGP public key: http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-03 13:29    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog