On Tue, Feb 23, 2010 at 09:58:25AM +1300, Darran Hunt wrote: > I'm concerned that this will introduce more of a performance penalty > for. Wouldn't your suggestion mean that there would always be a > function call made? > > i.e. > if (__predict_false(dtrace_vtime_active)) { > (*dtrace_vtime_switch_func)(newl); > } > > vrs > > dtrace_vtime_switch(newl);
There will not necessarily be a function call, but making the function "inline" may help to avoid a function call. Dave -- David Young OJC Technologies dyo...@ojctech.com Urbana, IL * (217) 278-3933