1. 19 4月, 2005 1 次提交
  2. 18 4月, 2005 1 次提交
    • D
      [PATCH] sparc64: Reduce ptrace cache flushing · dadeafdf
      David S. Miller 提交于
      We were flushing the D-cache excessively for ptrace() processing
      and this makes debugging threads so slow as to be totally unusable.
      
      All process page accesses via ptrace() go via access_process_vm().
      This routine, for each process page, uses get_user_pages().  That
      in turn does a flush_dcache_page() on the child pages before we
      copy in/out the ptrace request data.
      
      Therefore, all we need to do after the data movement is:
      
      1) Flush the D-cache pages if the kernel maps the page to a different
         color than userspace does.
      2) If we wrote to the page, we need to flush the I-cache on older cpus.
      
      Previously we just flushed the entire cache at the end of a ptrace()
      request, and that was beyond stupid.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      dadeafdf
  3. 17 4月, 2005 38 次提交