Per CPU non locked atomic operations

From: Mathieu Desnoyers
Date: Sat Jun 03 2006 - 07:25:31 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/