android_kernel_oneplus_msm8998/security
Linus Torvalds 48aab2f79d 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.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-03-22 17:01:41 -07:00
..
apparmor AppArmor: Fix location of const qualifier on generated string tables 2012-03-19 18:22:46 -07:00
integrity security: fix ima kconfig warning 2012-02-28 11:01:15 +11:00
keys KEYS: testing wrong bit for KEY_FLAG_REVOKED 2012-03-07 11:12:06 +11:00
selinux security: optimize avc_audit() common path 2012-03-22 17:01:41 -07:00
smack
tomoyo Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2012-03-21 13:25:04 -07:00
yama
capability.c
commoncap.c
device_cgroup.c
inode.c
Kconfig
lsm_audit.c switch unix_sock to struct path 2012-03-20 21:29:41 -04:00
Makefile
min_addr.c
security.c