aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/dynamic-debug-howto.txt
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-03-31 10:58:08 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-11-09 06:36:32 -0800
commit0829ab05e113d5b52dfa4c8de94eb7bfffdf72bb (patch)
tree511c0aa902389558518d77efbbdb545682facfa6 /Documentation/dynamic-debug-howto.txt
parentda5606533e0bebb408b7e6df68caea46d387598e (diff)
downloadkernel_samsung_smdk4412-0829ab05e113d5b52dfa4c8de94eb7bfffdf72bb.tar.gz
kernel_samsung_smdk4412-0829ab05e113d5b52dfa4c8de94eb7bfffdf72bb.tar.bz2
kernel_samsung_smdk4412-0829ab05e113d5b52dfa4c8de94eb7bfffdf72bb.zip
selinux: don't inline slow-path code into avc_has_perm_noaudit()
The selinux AVC paths remain some of the hottest (and deepest) codepaths at filename lookup time, and we make it worse by having the slow path cases take up I$ and stack space even when they don't trigger. Gcc tends to always want to inline functions that are just called once - never mind that this might make for slower and worse code in the caller. So this tries to improve on it a bit by making the slow-path cases explicitly separate functions that are marked noinline, causing gcc to at least no longer allocate stack space for them unless they are actually called. It also seems to help register allocation a tiny bit, since gcc now doesn't take the slow case code into account. Uninlining the slow path may also allow us to inline the remaining hot path into the one caller that actually matters: avc_has_perm_flags(). I'll have to look at that separately, but both avc_audit() and avc_has_perm_noaudit() are now small and lean enough that inlining them may make sense. Change-Id: Ibc0563b84cbbde9afca15af78e957917a4f72bc6 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/dynamic-debug-howto.txt')
0 files changed, 0 insertions, 0 deletions