Skip to contentSkip to conversation

Per CPU non locked atomic operations

DISCUSSION Mathieu Desnoyers 1 participant 1 message Jun 3, 2006

lore
Share & tools
lore
#0 lore raw

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