aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh3
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2010-02-07 12:40:36 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-02-08 11:29:15 +0900
commit858918b77b29d0e9ce7f524d1b57d602d85f5d64 (patch)
treec6e25bdb8f68d3911f24335379e69c981fb38338 /arch/sh/kernel/cpu/sh3
parentsh: Remove superfluous setup_frame_reg call (diff)
downloadlinux-dev-858918b77b29d0e9ce7f524d1b57d602d85f5d64.tar.xz
linux-dev-858918b77b29d0e9ce7f524d1b57d602d85f5d64.zip
sh: Optimise FDE/CIE lookup by using red-black trees
Now that the DWARF unwinder is being used to provide perf callstacks unwinding speed is an issue. It is no longer being used in exceptional circumstances where we don't care about runtime performance, e.g. when panicing, so it makes sense improve performance is possible. With this patch I saw a 42% improvement in unwind time when calling return_address(1). Greater improvements will be seen as the number of levels unwound increases as each unwind is now cheaper. Note that insertion time has doubled but that's just the price we pay for keeping the trees balanced. However, this is a one-time cost for kernel boot/module load and so the improvements in lookup time dominate the extra time we spend keeping the trees balanced. Signed-off-by: Matt Fleming <matt@console-pimps.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh3')
0 files changed, 0 insertions, 0 deletions