This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [1/5 PATCH] Kprobes fix for broken fault handling for i386
- From: Hien Nguyen <hien at us dot ibm dot com>
- To: Keshavamurthy Anil S <anil dot s dot keshavamurthy at intel dot com>
- Cc: Prasanna S Panchamukhi <prasanna at in dot ibm dot com>, systemtap at sources dot redhat dot com
- Date: Tue, 07 Mar 2006 14:23:58 -0800
- Subject: Re: [1/5 PATCH] Kprobes fix for broken fault handling for i386
- References: <20060307133832.GA2245@in.ibm.com> <20060307132608.A29873@unix-os.sc.intel.com>
Keshavamurthy Anil S wrote:
On Tue, Mar 07, 2006 at 05:38:32AM -0800, Prasanna S Panchamukhi wrote:
Hi,
Below is the set of patches to fix broken fault handling
for i386, x86_64, ppc64, ia64 and sparc64 architectures
against 2.6.16-rc5-mm2.
These patches are tested for i386 and x86_64 architectures.
Could you please test it for ia64 and ppc64.
Prasanna,
Can you share your test module code here,
so that the same can be used(with minor tweak, if requred)
for testing other architecture. Also in you testing, did
you cover fault handling during pre/post/singlestep
cases?
Thanks,
Anil
I tested Prasanna's fault handling patch with the current syscalls
tapset (latest from CVS) which does lots of user copies. Without the
patch the system crashes right away, but with this patch I finally can
test the system calls tapset.
I use Martin's sys.stp script below
probe syscall.*, syscall.*.return {
if (pid() == target()) {
if (returnp)
printf("%d\n", returnval())
else
printf("%s (%s) = ", name, argstr)
}
}
Invoke the script as follow
stap -c bash sys.stp
to exit the script, just type exit.
Hien.