1. 23 12月, 2007 4 次提交
  2. 22 12月, 2007 3 次提交
  3. 21 12月, 2007 30 次提交
  4. 20 12月, 2007 3 次提交
    • I
      mm: fix exit_mmap BUG() on a.out binary exit · 3c378158
      Ivan Kokshaysky 提交于
      The problem was introduced by commit "mm: variable length argument
      support" (b6a2fea3)
      as it didn't update fs/binfmt_aout.c like other binfmt's.
      
      I noticed that on alpha when accidentally launched old OSF/1
      Acrobat Reader binary. Obviously, other architectures are affected
      as well.
      Signed-off-by: NIvan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Ollie Wild <aaw@google.com>
      Acked-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Hugh Dickins <hugh@veritas.com>
      Cc: Adrian Bunk <bunk@stusta.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3c378158
    • A
      debug: add end-of-oops marker · 2c3b20e9
      Arjan van de Ven 提交于
      Right now it's nearly impossible for parsers that collect kernel crashes
      from logs or emails (such as www.kerneloops.org) to detect the
      end-of-oops condition. In addition, it's not currently possible to
      detect whether or not 2 oopses that look alike are actually the same
      oops reported twice, or are truly two unique oopses.
      
      This patch adds an end-of-oops marker, and makes the end marker include
      a very simple 64-bit random ID to be able to detect duplicate reports.
      
      Normally, this ID is calculated as a late_initcall() (in the hope that
      at that time there is enough entropy to get a unique enough ID); however
      for early oopses the oops_exit() function needs to generate the ID on
      the fly.
      
      We do this all at the _end_ of an oops printout, so this does not impact
      our ability to get the most important portions of a crash out to the
      console first.
      
      [ Sidenote: the already existing oopses-since-bootup counter we print
        during crashes serves as the differentiator between multiple oopses
        that trigger during the same bootup. ]
      
      Tested on 32-bit and 64-bit x86. Artificially injected very early
      crashes as well, as expected they result in this constant ID after
      multiple bootups:
      
        ---[ end trace ca143223eefdc828 ]---
        ---[ end trace ca143223eefdc828 ]---
      
      because the random pools are still all zero. But it all still works
      fine and causes no additional problems (which is the main goal of
      instrumentation code).
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      2c3b20e9
    • P
      sched: rt: account the cpu time during the tick · 67e2be02
      Peter Zijlstra 提交于
      Realtime tasks would not account their runtime during ticks. Which would lead
      to:
      
              struct sched_param param = { .sched_priority = 10 };
              pthread_setschedparam(pthread_self(), SCHED_FIFO, &param);
      
      	while (1) ;
      
      Not showing up in top.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      67e2be02