Re: [patch 16/16] Add hardware breakpoint support for i386

2005-08-30 Thread Prasanna S Panchamukhi
ule(void) { .. unregister_kwatch(debug_regs_num); .. } Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- --- linux-2.6.13-prasanna/arch/i386/Kconfig.debug |8 + linux-2.6.13-prasanna/arch/i386/kernel/Makefile |1

Re: [patch 16/16] Add hardware breakpoint support for i386

2005-08-30 Thread Prasanna S Panchamukhi
rasanna This patch provides debug register allocation mechanism. Useful for debuggers like IOW, kgdb, kdb, kernel watchpoint. --- Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- --- linux-2.6.13-prasanna/arch/i386/Kconfig.debug |8 linux-2.6.13-prasanna/arch/i386/kerne

Re: [5/6 PATCH] Kprobes : Prevent possible race conditions ia64 changes

2005-07-08 Thread Prasanna S Panchamukhi
ernel/jprobes.S~kprobes-exclude-functions-ia64 2005-07-08 15:22:52.0 +0530 +++ linux-2.6.13-rc1-mm1-prasanna/arch/ia64/kernel/jprobes.S2005-07-08 15:22:52.0 +0530 @@ -49,6 +49,7 @@ /* * void jprobe_break(void) */ + .section .kprobes.text, &

Re: [3/6 PATCH] Kprobes : Prevent possible race conditions x86_64 changes

2005-07-08 Thread Prasanna S Panchamukhi
conditions. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.13-rc1-mm1-prasanna/arch/x86_64/kernel/entry.S | 12 ++- linux-2.6.13-rc1-mm1-prasanna/arch/x86_64/kernel/kprobes.c | 35 +- linux-2.6.13-rc1-mm1-prasanna/arch/x86_64/kernel/traps.c

Re: [2/6 PATCH] Kprobes : Prevent possible race conditions i386 changes

2005-07-08 Thread Prasanna S Panchamukhi
. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.13-rc1-mm1-prasanna/arch/i386/kernel/entry.S | 13 +++- linux-2.6.13-rc1-mm1-prasanna/arch/i386/kernel/kprobes.c | 29 +-- linux-2.6.13-rc1-mm1-prasanna/arch/i386/kernel/traps.c

Re: [1/6 PATCH] Kprobes : Prevent possible race conditions generic changes

2005-07-08 Thread Prasanna S Panchamukhi
ection .kprobes.text. Also moved page fault and exception handlers, general protection fault to .kprobes.text section. These patches have been tested on i386, x86_64 and ppc64 architectures, also compiled on ia64 and sparc64 architectures. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED

Re: [1/6 PATCH] Kprobes : Prevent possible race conditions generic changes

2005-07-07 Thread Prasanna S Panchamukhi
forever. This patch avoids such possible race conditions by preventing probes on routines within the kprobes file and routines used by kprobes. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.13-rc1-mm1-prasanna/include/asm-generic/sections.h|1 linux-2.6.13-r

Re: [6/6 PATCH] Kprobes : Prevent possible race conditions sparc64 changes

2005-07-07 Thread Prasanna S Panchamukhi
This patch contains the sparc64 architecture specific changes to prevent the possible race conditions. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.13-rc1-mm1-prasanna/arch/sparc64/kernel/kprobes.c | 36 +- linux-2.6.13-rc1-mm1-prasanna/arch/s

Re: [5/6 PATCH] Kprobes : Prevent possible race conditions ia64 changes

2005-07-07 Thread Prasanna S Panchamukhi
This patch contains the ia64 architecture specific changes to prevent the possible race conditions. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.13-rc1-mm1-prasanna/arch/ia64/kernel/kprobes.c | 57 ++- linux-2.6.13-rc1-mm1-prasanna/arch/ia64/

Re: [4/6 PATCH] Kprobes : Prevent possible race conditions ppc64 changes

2005-07-07 Thread Prasanna S Panchamukhi
This patch contains the ppc64 architecture specific changes to prevent the possible race conditions. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.13-rc1-mm1-prasanna/arch/ppc64/kernel/kprobes.c | 29 +- linux-2.6.13-rc1-mm1-prasanna/arch/ppc64/

Re: [3/6 PATCH] Kprobes : Prevent possible race conditions x86_64 changes

2005-07-07 Thread Prasanna S Panchamukhi
This patch contains the x86_64 architecture specific changes to prevent the possible race conditions. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.13-rc1-mm1-prasanna/arch/x86_64/kernel/kprobes.c | 35 +- linux-2.6.13-rc1-mm1-prasanna/arch/

Re: [2/6 PATCH] Kprobes : Prevent possible race conditions i386 changes

2005-07-07 Thread Prasanna S Panchamukhi
This patch contains the i386 architecture specific changes to prevent the possible race conditions. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.13-rc1-mm1-prasanna/arch/i386/kernel/kprobes.c | 29 +-- linux-2.6.13-rc1-mm1-prasanna/arch/i386/

[1/6 PATCH] Kprobes : Prevent possible race conditions generic changes

2005-07-07 Thread Prasanna S Panchamukhi
Also moved page fault and exception handlers to .kprobes.text section. These patches have been tested on i386, x86_64 and ppc64 architectures, also compiled on ia64 and sparc64 architectures. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.13-rc1-mm1-prasanna/

Re: kprobe support for memory access watchpoints

2005-07-06 Thread Prasanna S Panchamukhi
Thanks Prasanna -- Prasanna S Panchamukhi Linux Technology Center India Software Labs, IBM Bangalore Ph: 91-80-25044636 <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: [PATCH 2.6.12-rc1-mm3] [1/2] kprobes += function-return

2005-04-12 Thread Prasanna S Panchamukhi
e you can have N active > instances of the probed function, and have therefore recorded E entries > and E-N returns. Hien's code handles all that on retprobe > deregistration, but the user's instrumentation should never count on # > probed entries == # probed returns. > Jim, Y

[PATCH] Kprobes: Oops! in unregister_kprobe()

2005-04-11 Thread Prasanna S Panchamukhi
. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.12-rc2-prasanna/kernel/kprobes.c |6 +- 1 files changed, 5 insertions(+), 1 deletion(-) diff -puN kernel/kprobes.c~kprobes-unregister-oops-fix kernel/kprobes.c --- linux-2.6.12-rc2/kernel/kprobes.c~kprobes-unre

Re: [RFC] Kprobes: Multiple probes feature at given address

2005-04-11 Thread Prasanna S Panchamukhi
ne of existing kprobes code. Assumption : If a user has already inserted a probe using old register_kprobe() routine, and later wants to insert another probe at the same address using register_multiprobe() routine, then register_multiprobe() will return EEXIST. This can be avoided by renamin

[RFC] Kprobes: Multiple probes feature at given address

2005-04-08 Thread Prasanna S Panchamukhi
the same address using register_multiprobe() routine, then register_multiprobe() will return EEXIST. This can be avoided by renaming the interface routines. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.12-rc2-prasanna/include/linux/kprobes.h | 30

Re: module for controlling kprobes with /proc

2005-04-04 Thread Prasanna S Panchamukhi
registers etc. Let me know if you need more information. Thanks Prasanna -- Prasanna S Panchamukhi Linux Technology Center India Software Labs, IBM Bangalore Ph: 91-80-25044636 <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

Re: [PATCH 2.6.12-rc1-mm3] [1/2] kprobes += function-return

2005-04-04 Thread Prasanna S Panchamukhi
ered by exit probe. Remove the entry probe if no user has registered entry point kprobe/jprobe. If user has already registered entry point probes, just leave the entry point probes and remove only the exit point probes. Please let me know if you need more information. Thanks Prasanna - Prasanna

[PATCH] Kprobes: Incorrect handling of probes on ret/lret instruction

2005-04-01 Thread Prasanna S Panchamukhi
correct location after execution of the ret/lret instruction. This patch fixes the above problem. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- --- linux-2.6.12-rc1-prasanna/arch/i386/kernel/kprobes.c |7 +++ linux-2.6.12-rc1-prasanna/arch/x86_64/kernel/kpr

Re: [PATCH] Kprobes: Allow/deny probes on int3/breakpoint instruction?

2005-03-31 Thread Prasanna S Panchamukhi
such situations? Below is the patch to allow probes on an int3/breakpoint instruction. This patch fixes the above problem by doing a proper exit while avoiding recursion. Any pointers/suggestions on the above issues will be helpful. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]>

[PATCH] Kprobes: Allow/deny probes on int3/breakpoint instruction?

2005-03-31 Thread Prasanna S Panchamukhi
int3/breakpoint instruction. This patch fixes the above problem by doing a proper exit while avoiding recursion. Any pointers/suggestions on the above issues will be helpful. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.12-rc1-prasanna/arch/i386/kernel/kprobes.

[PATCH] Kprobes: Allow/deny probes on int3/breakpoint instruction?

2005-03-31 Thread Prasanna S Panchamukhi
int3/breakpoint instruction. This patch fixes the above problem by doing a proper exit while avoiding recursion. Any pointers/suggestions on the above issues will be helpful. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- linux-2.6.12-rc1-prasanna/arch/i386/kernel/kprobes.

[PATCH] kprobes: incorrect spin_unlock_irqrestore() call in register_kprobe()

2005-03-15 Thread Prasanna S Panchamukhi
Hi, register_kprobe() routine was calling spin_unlock_irqrestore() wrongly. This patch removes unwanted spin_unlock_irqrestore() call in register_kprobe() routine. Signed-off-by: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- --- linux-2.6.11-prasanna/kernel/kprobes.c |5 ++

Re: 2.6.10 kprobes/jprobes panic

2005-02-08 Thread Prasanna S Panchamukhi
t; {sys_init_module+6387} >{__pagevec_free+32} > {release_pages+382} >{do_munmap+918} > {__down_read+49} >{__up_write+48} > {system_call+126} > > > > > Code: 4c 8b 06 4c 89 07 48 8d 7f 08 48 8d 76 08 75 ee 89 d1 83 e1 > RIP {__memcpy+114} RSP <0

[PATCH] kprobes x86_64 memory allocation changes

2005-01-19 Thread Prasanna S Panchamukhi
: Prasanna S Panchamukhi <[EMAIL PROTECTED]> --- --- linux-2.6.11-rc1-prasanna/arch/i386/kernel/kprobes.c|6 +- linux-2.6.11-rc1-prasanna/arch/ppc64/kernel/kprobes.c | 10 -- linux-2.6.11-rc1-prasanna/arch/sparc64/kernel/kprobes.c |6 +- linux-2.6.11-rc1-pr

Re: x86-64: int3 no longer causes SIGTRAP in 2.6.10

2005-01-19 Thread Prasanna S Panchamukhi
T3: > > > + if (args->regs->cs & 3) > > > + return NOTIFY_DONE; This will prevent handling of userspace probes (privilege level 3). The kprobe_exception handler will return from here and registered user space probe handler won't be called.

Re: x86-64: int3 no longer causes SIGTRAP in 2.6.10

2005-01-18 Thread Prasanna S Panchamukhi
rgs *)data; > switch (val) { > case DIE_INT3: > + if (args->regs->cs & 3) > + return NOTIFY_DONE; > if (kprobe_handler(args->regs)) > return NOTIFY_STOP; > break

Re: 2.6.11-rc1-mm1

2005-01-16 Thread Prasanna S Panchamukhi
s" and "kernel-> user space tranport by debugfs" This will also remove lots of compilcated code from realyfs. Thanks Prasanna -- Prasanna S Panchamukhi Linux Technology Center India Software Labs, IBM Bangalore Ph: 91-80-25044636 <[EMAIL PROTECTED]> - To unsubscribe fr