linux/arch/score/include/asm
Christoph Hellwig dacbe41f77 ptrace: move user_enable_single_step & co prototypes to linux/ptrace.h
While in theory user_enable_single_step/user_disable_single_step/
user_enable_blockstep could also be provided as an inline or macro there's
no good reason to do so, and having the prototype in one places keeps code
size and confusion down.

Roland said:

  The original thought there was that user_enable_single_step() et al
  might well be only an instruction or three on a sane machine (as if we
  have any of those!), and since there is only one call site inlining
  would be beneficial.  But I agree that there is no strong reason to care
  about inlining it.

  As to the arch changes, there is only one thought I'd add to the
  record.  It was always my thinking that for an arch where
  PTRACE_SINGLESTEP does text-modifying breakpoint insertion,
  user_enable_single_step() should not be provided.  That is,
  arch_has_single_step()=>true means that there is an arch facility with
  "pure" semantics that does not have any unexpected side effects.
  Inserting a breakpoint might do very unexpected strange things in
  multi-threaded situations.  Aside from that, it is a peculiar side
  effect that user_{enable,disable}_single_step() should cause COW
  de-sharing of text pages and so forth.  For PTRACE_SINGLESTEP, all these
  peculiarities are the status quo ante for that arch, so having
  arch_ptrace() itself do those is one thing.  But for building other
  things in the future, it is nicer to have a uniform "pure" semantics
  that arch-independent code can expect.

  OTOH, all such arch issues are really up to the arch maintainer.  As
  of today, there is nothing but ptrace using user_enable_single_step() et
  al so it's a distinction without a practical difference.  If/when there
  are other facilities that use user_enable_single_step() and might care,
  the affected arch's can revisit the question when someone cares about
  the quality of the arch support for said new facility.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-12 15:52:38 -08:00
..
Kbuild score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
asm-offsets.h score: add asm/asm-offsets.h wrapper 2009-12-12 13:08:16 +01:00
asmmacro.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
atomic.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
auxvec.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
bitops.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
bitsperlong.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
bug.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
bugs.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
byteorder.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
cache.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
cacheflush.h score: add flush_dcahce_page and PG_dcache_dirty define 2009-12-17 18:28:31 +08:00
checksum.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
cputime.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
current.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
delay.h score: include asm-generic/param.h in asm/delay.h. 2009-12-17 18:31:23 +08:00
device.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
div64.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
dma-mapping.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
dma.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
elf.h elf: kill USE_ELF_CORE_DUMP 2009-12-16 07:20:12 -08:00
emergency-restart.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
errno.h score: update files according to review comments 2009-06-19 11:40:13 +02:00
fcntl.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
fixmap.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
ftrace.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
futex.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
hardirq.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
hw_irq.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
io.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
ioctl.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
ioctls.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
ipcbuf.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
irq.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
irq_regs.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
irqflags.h score: remove unused code, add include files in .c 2009-08-30 12:26:32 +08:00
kdebug.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
kmap_types.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
linkage.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
local.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
mman.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
mmu.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
mmu_context.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
module.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
msgbuf.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
mutex.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
page.h score: fixed pfn_valid define. 2009-12-17 18:28:31 +08:00
param.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
pci.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
percpu.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
pgalloc.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
pgtable-bits.h score: update files according to review comments 2009-06-19 11:40:13 +02:00
pgtable.h MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself 2010-02-20 16:41:46 +00:00
poll.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
posix_types.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
processor.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
ptrace.h ptrace: move user_enable_single_step & co prototypes to linux/ptrace.h 2010-03-12 15:52:38 -08:00
resource.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
scatterlist.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
scoreregs.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
sections.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
segment.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
sembuf.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
setup.h score: add MEMORY_START and MEMORY_SIZE define, to make the code clear 2009-08-30 12:31:58 +08:00
shmbuf.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
shmparam.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
sigcontext.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
siginfo.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
signal.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
socket.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
sockios.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
stat.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
statfs.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
string.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
swab.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
syscalls.h score: add prototypes for wrapped syscalls 2009-06-19 14:10:46 +02:00
system.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
termbits.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
termios.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
thread_info.h score: Make THREAD_SIZE available to assembly files. 2009-09-23 13:37:42 +08:00
timex.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
tlb.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
tlbflush.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
topology.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
types.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
uaccess.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
ucontext.h score: add missing #includes 2009-06-27 15:09:46 +02:00
unaligned.h score: Add support for Sunplus S+core architecture 2009-06-19 11:38:47 +02:00
unistd.h score: add old syscall support 2009-08-30 12:33:30 +08:00
user.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00