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 was reviewed by Attilio Rao.

Anton



pmckern.diff
Description: pmckern.diff
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

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 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 was reviewed by Attilio Rao.

 Anton


 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org