[PATCH 3/8][RFC] ftrace: Optimize the function tracer list loop

2012-11-15 Thread Steven Rostedt
From: Steven Rostedt There is lots of places that perform: op = rcu_dereference_raw(ftrace_control_list); while (op != &ftrace_list_end) { Add a helper macro to do this, and also optimize for a single entity. That is, gcc will optimize a loop for either no iterations or more than

[PATCH 3/8][RFC] ftrace: Optimize the function tracer list loop

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt There is lots of places that perform: op = rcu_dereference_raw(ftrace_control_list); while (op != &ftrace_list_end) { Add a helper macro to do this, and also optimize for a single entity. That is, gcc will optimize a loop for either no iterations or more than