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
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
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, &
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
.
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
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
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
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
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/
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/
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/
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/
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/
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
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
.
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
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
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
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
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
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
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]>
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.
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.
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 ++
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
: 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
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.
rgs *)data;
> switch (val) {
> case DIE_INT3:
> + if (args->regs->cs & 3)
> + return NOTIFY_DONE;
> if (kprobe_handler(args->regs))
> return NOTIFY_STOP;
> break
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
30 matches
Mail list logo