public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] convert perf to local64_t
@ 2010-05-21 13:42 Peter Zijlstra
  2010-05-21 13:42 ` [PATCH 1/4] arch: local64_t Peter Zijlstra
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Peter Zijlstra @ 2010-05-21 13:42 UTC (permalink / raw)
  To: Ingo Molnar, Paul Mackerras, Arnaldo Carvalho de Melo
  Cc: Frederic Weisbecker, Steven Rostedt, David Miller, Paul Mundt,
	Will Deacon, Deng-Cheng Zhu, Peter Zijlstra, LKML

These patches introduce local64_t.

Since perf_event:count is only modified cross-cpu when child-counters
feed back their changes on exit, and we can use a secondary variable
for that, we can convert perf to use local64_t instead of atomic64_t
and use instructions without buslock semantics.

The local64_t implementation uses local_t for 64 bits, since local_t is
of type long, for 32 bit it falls back to atomic64_t. Architectures can
provide their own implementation as usual.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-05-26 10:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-21 13:42 [PATCH 0/4] convert perf to local64_t Peter Zijlstra
2010-05-21 13:42 ` [PATCH 1/4] arch: local64_t Peter Zijlstra
2010-05-21 14:47   ` Kyle McMartin
2010-05-21 14:52   ` David Howells
2010-05-21 13:42 ` [PATCH 2/4] perf: Add perf_event_count() Peter Zijlstra
2010-05-21 13:42 ` [PATCH 3/4] perf: Add child_count Peter Zijlstra
2010-05-21 13:42 ` [PATCH 4/4] perf: Convert perf_event to local_t Peter Zijlstra
2010-05-26 10:08 ` [PATCH 0/4] convert perf to local64_t Frederic Weisbecker
2010-05-26 10:11   ` Peter Zijlstra

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