linux/include
David S. Miller dadeafdfc8 [PATCH] sparc64: Reduce ptrace cache flushing
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: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-04-17 18:03:11 -07:00
..
acpi
asm-alpha
asm-arm [PATCH] ARM: fix debug macros 2005-04-17 16:28:31 +01:00
asm-arm26
asm-cris
asm-frv
asm-generic [PATCH] add Big Endian variants of ioread/iowrite 2005-04-16 15:25:54 -07:00
asm-h8300 [PATCH] h8300 header update 2005-04-16 15:25:21 -07:00
asm-i386
asm-ia64
asm-m32r
asm-m68k
asm-m68knommu
asm-mips [PATCH] sparc64: Reduce ptrace cache flushing 2005-04-17 18:03:11 -07:00
asm-parisc
asm-ppc [PATCH] u32 vs. pm_message_t in ppc and radeon 2005-04-16 15:25:34 -07:00
asm-ppc64
asm-s390
asm-sh [PATCH] fix u32 vs. pm_message_t in rest of the tree 2005-04-16 15:25:37 -07:00
asm-sh64
asm-sparc
asm-sparc64 [PATCH] sparc64: Reduce ptrace cache flushing 2005-04-17 18:03:11 -07:00
asm-um
asm-v850
asm-x86_64 [PATCH] x86_64: Switch SMP bootup over to new CPU hotplug state machine 2005-04-16 15:25:19 -07:00
linux [PATCH] reparent_to_init cleanup 2005-04-16 15:26:01 -07:00
math-emu
media
mtd
net
pcmcia
rxrpc
scsi
sound
video