summaryrefslogtreecommitdiff
path: root/sound/pci/lola
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-11-02 21:52:35 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2013-01-23 04:38:02 (GMT)
commit897f68a48b1f8fb6cb7493e1ee37e3ed7f879937 (patch)
tree404ea9f3d05ea83340f51a0198f8fd8977dafed0 /sound/pci/lola
parentedc15cafcbfa3d73f819cae99885a2e35e4cbce5 (diff)
downloadlinux-897f68a48b1f8fb6cb7493e1ee37e3ed7f879937.tar.xz
ftrace: Use only the preempt version of function tracing
The function tracer had two different versions of function tracing. The disabling of irqs version and the preempt disable version. As function tracing in very intrusive and can cause nasty recursion issues, it has its own recursion protection. But the old method to do this was a flat layer. If it detected that a recursion was happening then it would just return without recording. This made the preempt version (much faster than the irq disabling one) not very useful, because if an interrupt were to occur after the recursion flag was set, the interrupt would not be traced at all, because every function that was traced would think it recursed on itself (due to the context it preempted setting the recursive flag). Now that we have a recursion flag for every context level, we no longer need to worry about that. We can disable preemption, set the current context recursion check bit, and go on. If an interrupt were to come along, it would check its own context bit and happily continue to trace. As the preempt version is faster than the irq disable version, there's no more reason to keep the preempt version around. And the irq disable version still had an issue with missing out on tracing NMI code. Remove the irq disable function tracer version and have the preempt disable version be the default (and only version). Before this patch we had from running: # echo function > /debug/tracing/current_tracer # for i in `seq 10`; do ./hackbench 50; done Time: 12.028 Time: 11.945 Time: 11.925 Time: 11.964 Time: 12.002 Time: 11.910 Time: 11.944 Time: 11.929 Time: 11.941 Time: 11.924 (average: 11.9512) Now we have: # echo function > /debug/tracing/current_tracer # for i in `seq 10`; do ./hackbench 50; done Time: 10.285 Time: 10.407 Time: 10.243 Time: 10.372 Time: 10.380 Time: 10.198 Time: 10.272 Time: 10.354 Time: 10.248 Time: 10.253 (average: 10.3012) a 13.8% savings! Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'sound/pci/lola')
0 files changed, 0 insertions, 0 deletions