The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Per CPU non locked atomic operations
@ 2006-06-03 11:26 Mathieu Desnoyers
  0 siblings, 0 replies; only message in thread
From: Mathieu Desnoyers @ 2006-06-03 11:26 UTC (permalink / raw)
  To: linux-kernel, ltt-dev

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 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-03 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-03 11:26 Per CPU non locked atomic operations Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox