Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/include
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
..
acpi Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
asm-alpha [PATCH] remove non-DISCONTIG use of pgdat->node_mem_map 2005-06-23 09:45:00 -07:00
asm-arm Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6 2005-06-27 15:13:26 -07:00
asm-arm26 [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-cris [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-frv [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-generic [PATCH] kexec: vmlinux: fix physical addresses 2005-06-25 16:24:47 -07:00
asm-h8300 [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-i386 [PATCH] seccomp: tsc disable 2005-06-27 15:11:44 -07:00
asm-ia64 [PATCH] Return probe redesign: ia64 specific implementation 2005-06-27 15:23:53 -07:00
asm-m32r [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-m68k [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-m68knommu [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-mips [PATCH] sched: cleanup context switch locking 2005-06-25 16:24:43 -07:00
asm-parisc [PATCH] compat: introduce compat_time_t 2005-06-23 09:45:32 -07:00
asm-ppc [PATCH] ppc32: Bump PMU interrupt priority 2005-06-27 15:11:42 -07:00
asm-ppc64 [PATCH] Return probe redesign: ppc64 specific implementation 2005-06-27 15:23:53 -07:00
asm-s390 [PATCH] kexec: s390 support 2005-06-25 16:24:51 -07:00
asm-sh [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-sh64 [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-sparc [PATCH] sched: cleanup context switch locking 2005-06-25 16:24:43 -07:00
asm-sparc64 [PATCH] sched: cleanup context switch locking 2005-06-25 16:24:43 -07:00
asm-um [PATCH] uml: add profile_pc for i386 2005-06-25 16:24:36 -07:00
asm-v850 [PATCH] streamline preempt_count type across archs 2005-06-23 09:45:19 -07:00
asm-x86_64 [PATCH] seccomp: tsc disable 2005-06-27 15:11:44 -07:00
asm-xtensa [PATCH] xtensa: Architecture support for Tensilica Xtensa Part 8 2005-06-24 00:05:22 -07:00
linux [PATCH] Return probe redesign: architecture independent changes 2005-06-27 15:23:52 -07:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
media [PATCH] v4l: update for SAA7134 cards 2005-06-24 00:06:39 -07:00
mtd Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
net [PATCH] bring over ieee80211.h from mainline 2005-06-27 00:23:54 -04:00
pcmcia [PATCH] yenta TI: turn off interrupts during card power-on #2 2005-06-23 09:45:31 -07:00
rxrpc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi [PATCH] I2O: Adaptec specific SG_IO access, firmware access through sysfs and 2400A workaround 2005-06-24 00:05:28 -07:00
sound [PATCH] create a kstrdup library function 2005-06-23 09:45:18 -07:00
video [PATCH] Clean-up and bug fix for tdfxfb framebuffer size detection 2005-05-01 08:59:25 -07:00