A tweak to HWPMC hooks to improve code generation

2013-12-23 Thread Rang, Anton
The HWPMC hooks are never invoked except when using the soft PMC feature for performance monitoring. This trivial patch hints as much to the compiler, which then moves some fairly lengthy code sequences out of the locking primitives (in particular), reducing their runtime footprint. This patch

Re: A tweak to HWPMC hooks to improve code generation

2013-12-23 Thread Adrian Chadd
Hm! Cool! I'll give this a spin tomorrow on my frequently-very-lock-busy boxes and get back to you. -a On 23 December 2013 09:52, Rang, Anton anton.r...@isilon.com wrote: The HWPMC hooks are never invoked except when using the soft PMC feature for performance monitoring. This trivial patch