aboutsummaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-03-22 17:01:41 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-11-09 06:36:29 -0800
commitda5606533e0bebb408b7e6df68caea46d387598e (patch)
tree2bdc82e7745f10ac82446c4f4621345e23e0323f /COPYING
parente186fbacd6b7663536b3fc3cdc91fcccb25404d0 (diff)
downloadkernel_samsung_smdk4412-da5606533e0bebb408b7e6df68caea46d387598e.tar.gz
kernel_samsung_smdk4412-da5606533e0bebb408b7e6df68caea46d387598e.tar.bz2
kernel_samsung_smdk4412-da5606533e0bebb408b7e6df68caea46d387598e.zip
security: optimize avc_audit() common path
avc_audit() did a lot of jumping around and had a big stack frame, all for the uncommon case. Split up the uncommon case (which we really can't make go fast anyway) into its own slow function, and mark the conditional branches appropriately for the common likely case. This causes avc_audit() to no longer show up as one of the hottest functions on the branch profiles (the new "perf -b" thing), and makes the cycle profiles look really nice and dense too. The whole audit path is still annoyingly very much one of the biggest costs of name lookup, so these things are worth optimizing for. I wish we could just tell people to turn it off, but realistically we do need it: we just need to make sure that the overhead of the necessary evil is as low as possible. Change-Id: I7bbbcefa10317233d4484b41adbbe8a9a031a177 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions