Messages in this thread |  | | Date | Sat, 3 Jun 2006 07:26:17 -0400 | | From | Mathieu Desnoyers <> | | Subject | Per 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/
|  |