1. 20 5月, 2011 2 次提交
    • L
      selinux: avoid unnecessary avc cache stat hit count · 257313b2
      Linus Torvalds 提交于
      There is no point in counting hits - we can calculate it from the number
      of lookups and misses.
      
      This makes the avc statistics a bit smaller, and makes the code
      generation better too.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      257313b2
    • L
      selinux: de-crapify avc cache stat code generation · 044aea9b
      Linus Torvalds 提交于
      You can turn off the avc cache stats, but distributions seem to not do
      that (perhaps because several performance tuning how-to's talk about the
      avc cache statistics).
      
      Which is sad, because the code it generates is truly horrendous, with
      the statistics update being sandwitched between get_cpu/put_cpu which in
      turn causes preemption disables etc.  We're talking ten+ instructions
      just to increment a per-cpu variable in some pretty hot code.
      
      Fix the craziness by just using 'this_cpu_inc()' instead.  Suddenly we
      only need a single 'inc' instruction to increment the statistics.  This
      is quite noticeable in the incredibly hot avc_has_perm_noaudit()
      function (which triggers all the statistics by virtue of doing an
      avc_lookup() call).
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      044aea9b
  2. 13 5月, 2011 1 次提交
  3. 12 5月, 2011 2 次提交
  4. 08 5月, 2011 2 次提交
  5. 29 4月, 2011 11 次提交
  6. 26 4月, 2011 5 次提交
  7. 25 4月, 2011 3 次提交
  8. 23 4月, 2011 1 次提交
  9. 20 4月, 2011 2 次提交
  10. 19 4月, 2011 3 次提交
  11. 10 4月, 2011 1 次提交
  12. 08 4月, 2011 2 次提交
  13. 04 4月, 2011 1 次提交
  14. 02 4月, 2011 1 次提交
  15. 31 3月, 2011 2 次提交
  16. 29 3月, 2011 1 次提交