linux-stable-rt/include/asm-ppc64
Rusty Lynch 97f7943d70 [PATCH] Return probe redesign: ppc64 specific implementation
The following is a patch provided by Ananth Mavinakayanahalli that implements
the new PPC64 specific parts of the new function return probe design.

NOTE: Since getting Ananth's patch, I changed trampoline_probe_handler()
      to consume each of the outstanding return probem instances (feedback
      on my original RFC after Ananth cut a patch), and also added the
      arch_init() function (adding arch specific initialization.) I have
      cross compiled but have not testing this on a PPC64 machine.

Changes include:
 * Addition of kretprobe_trampoline to act as a dummy function for instrumented
   functions to return to, and for the return probe infrastructure to place
   a kprobe on on, gaining control so that the return probe handler
   can be called, and so that the instruction pointer can be moved back
   to the original return address.
 * Addition of arch_init(), allowing a kprobe to be registered on
   kretprobe_trampoline
 * Addition of trampoline_probe_handler() which is used as the pre_handler
   for the kprobe inserted on kretprobe_implementation.  This is the function
   that handles the details for calling the return probe handler function
   and returning control back at the original return address
 * Addition of arch_prepare_kretprobe() which is setup as the pre_handler
   for a kprobe registered at the beginning of the target function by
   kernel/kprobes.c so that a return probe instance can be setup when
   a caller enters the target function.  (A return probe instance contains
   all the needed information for trampoline_probe_handler to do it's job.)
 * Hooks added to the exit path of a task so that we can cleanup any left-over
   return probe instances (i.e. if a task dies while inside a targeted function
   then the return probe instance was reserved at the beginning of the function
   but the function never returns so we need to mark the instance as unused.)

Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-27 15:23:53 -07:00
..
iSeries [PATCH] ppc64 iSeries: tidy up irq code after merge 2005-06-21 18:46:30 -07:00
8253pit.h
a.out.h [PATCH] ppc64: remove unnecessary include 2005-05-01 08:58:46 -07:00
abs_addr.h
agp.h [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
atomic.h
bitops.h
bootinfo.h
btext.h
bug.h [PATCH] remove all kernel BUGs 2005-05-01 08:59:01 -07:00
bugs.h
byteorder.h
cache.h
cacheflush.h
checksum.h
compat.h [PATCH] compat: introduce compat_time_t 2005-06-23 09:45:32 -07:00
cputable.h
cputime.h
current.h
dbdma.h
delay.h
div64.h
dma-mapping.h
dma.h [PATCH] ppc64 iSeries: allow build with no PCI 2005-06-21 18:46:31 -07:00
eeh.h
elf.h [PATCH] ppc64: Fix PER_LINUX32 behaviour 2005-06-08 16:24:15 -07:00
errno.h
fcntl.h
floppy.h
hardirq.h
hdreg.h
hvcall.h
hvconsole.h
hvcserver.h
hw_irq.h
ide.h
imalloc.h [PATCH] ppc64: Abolish ioremap_mm 2005-06-21 18:46:26 -07:00
io.h
ioctl.h
ioctls.h
iommu.h [PATCH] ppc64 iSeries: allow build with no PCI 2005-06-21 18:46:31 -07:00
ipc.h
ipcbuf.h
irq.h
kdebug.h [PATCH] RCU: clean up a few remaining synchronize_kernel() calls 2005-06-25 16:24:38 -07:00
kexec.h [PATCH] ppc64: kexec support for ppc64 2005-06-25 16:24:51 -07:00
keylargo.h
kmap_types.h
kprobes.h [PATCH] Return probe redesign: ppc64 specific implementation 2005-06-27 15:23:53 -07:00
linkage.h
lmb.h
local.h
lppaca.h
machdep.h [PATCH] ppc64: kexec support for ppc64 2005-06-25 16:24:51 -07:00
macio.h
mc146818rtc.h
memory.h
mman.h
mmu.h [PATCH] ppc64 kexec: native hash clear 2005-06-25 16:24:51 -07:00
mmu_context.h [PATCH] ppc64: pgtable.h and other header cleanups 2005-05-05 16:36:32 -07:00
mmzone.h [PATCH] ppc64: sparsemem memory model 2005-06-23 09:45:06 -07:00
module.h
msgbuf.h
naca.h
namei.h
numnodes.h
nvram.h [PATCH] ppc64: add a minimal nvram driver 2005-06-23 09:43:31 +10:00
of_device.h
pSeries_reconfig.h
paca.h [PATCH] ppc64 iSeries: tidy up some includes and HvCall.h 2005-06-21 18:46:28 -07:00
page.h [PATCH] ppc64: sparsemem memory model 2005-06-23 09:45:06 -07:00
param.h
parport.h
pci-bridge.h
pci.h
percpu.h
pgalloc.h [PATCH] ppc64: update to use the new 4L headers 2005-05-01 08:58:44 -07:00
pgtable.h [PATCH] ppc64: Abolish ioremap_mm 2005-06-21 18:46:26 -07:00
plpar_wrappers.h
pmac_feature.h
pmac_low_i2c.h
pmc.h
poll.h
posix_types.h
ppc32.h [PATCH] compat: introduce compat_time_t 2005-06-23 09:45:32 -07:00
ppc_asm.h
ppcdebug.h
processor.h [PATCH] ppc64: add BPA platform type 2005-06-23 09:43:37 +10:00
prom.h [PATCH] ppc32/ppc64: cleanup /proc/device-tree 2005-06-01 07:54:14 -07:00
ptrace-common.h
ptrace.h
resource.h
rtas.h [PATCH] ppc64: pSeries_progress -> rtas_progress 2005-06-23 09:43:28 +10:00
rwsem.h
scatterlist.h
seccomp.h
sections.h
segment.h
semaphore.h
sembuf.h
serial.h
setup.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
smp.h [PATCH] ppc64: add BPA platform type 2005-06-23 09:43:37 +10:00
smu.h
socket.h
sockios.h
sparsemem.h [PATCH] ppc64: sparsemem memory model 2005-06-23 09:45:06 -07:00
spinlock.h [PATCH] ppc64: reverse prediction on spinlock busy loop code 2005-05-01 08:58:47 -07:00
sstep.h
stat.h
statfs.h
string.h
system.h
systemcfg.h
termbits.h
termios.h
thread_info.h [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
time.h [PATCH] ppc64: consolidate calibrate_decr implementations 2005-06-23 09:43:07 +10:00
timex.h
tlb.h
tlbflush.h
topology.h [PATCH] ppc64: pcibus_to_node fix 2005-06-23 09:45:08 -07:00
types.h
uaccess.h
ucontext.h
udbg.h
unaligned.h
uninorth.h
unistd.h
user.h
vdso.h
vga.h
vio.h
xics.h [PATCH] ppc64: kexec support for ppc64 2005-06-25 16:24:51 -07:00
xor.h