1. 06 2月, 2008 21 次提交
  2. 18 12月, 2007 1 次提交
    • S
      uml: stop gdb from deleting breakpoints when running UML · 4dbed85a
      Stanislaw Gruszka 提交于
      Sometimes when UML is debugged gdb miss breakpoints.
      
      When process traced by gdb do fork, debugger remove breakpoints from
      child address space. There is possibility to trace more than one fork,
      but this not work with UML, I guess (only guess) there is a deadlock -
      gdb waits for UML and UML waits for gdb.
      
      When clone() is called with SIGCHLD and CLONE_VM flags, gdb see this
      as PTRACE_EVENT_FORK not as PTRACE_EVENT_CLONE and remove breakpoints
      from child and at the same time from traced process, because either
      have the same address space.
      
      Maybe it is possible to do fix in gdb, but I'm not sure if there is
      easy way to find out if traced and child processes share memory. So I
      do fix for UML, it simply do not call clone() with both SIGCHLD and
      CLONE_VM flags together.  Additionally __WALL flag is used for
      waitpid() to assure not miss clone and normal process events.
      
      [ jdike - checkpatch fixes ]
      Signed-off-by: NStanislaw Gruszka <stf_xl@wp.pl>
      Signed-off-by: NJeff Dike <jdike@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4dbed85a
  3. 04 12月, 2007 1 次提交
  4. 30 11月, 2007 1 次提交
    • J
      uml: fix !NO_HZ busy-loop · 364e3a3d
      Jeff Dike 提交于
      With NO_HZ disabled, the UML idle loop effectively becomes a busy loop, as
      it will sleep for no time.
      
      The cause was forgetting to restart the tick after waking up from sleep.
      It was disabled before sleeping, and the remaining time used as the
      interval to sleep.  So, the tick needs to be restarted when nanosleep
      finishes.
      
      This is done by introducing after_sleep_interval, which is empty in the
      NO_HZ case, but which sets the tick starting in the !NO_HZ case.
      Signed-off-by: NJeff Dike <jdike@linux.intel.com>
      Cc: Miklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      364e3a3d
  5. 15 11月, 2007 1 次提交
  6. 17 10月, 2007 15 次提交