This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: copy faults from user_string* functions
- From: Eric Wong <normalperson at yhbt dot net>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: Systemtap List <systemtap at sourceware dot org>
- Date: Fri, 26 Jul 2013 19:50:20 +0000
- Subject: Re: copy faults from user_string* functions
- References: <20130726063634 dot GA32443 at dcvr dot yhbt dot net> <y0miozxmeqe dot fsf at fche dot csb> <20130726175602 dot GA5773 at dcvr dot yhbt dot net> <20130726194220 dot GA7389 at dcvr dot yhbt dot net>
Eric Wong <normalperson@yhbt.net> wrote:
> Eric Wong <normalperson@yhbt.net> wrote:
> > Is there any optional way to get stap to trigger page faults to get
> > that data?
>
> I could restructure my code to pass integers instead of strings as
> a workaround, but I'm trying my best to be lazy :>
Actually, simply reordering my code to access the string (via mempcpy)
before the trace point seems to work around the issue. I'll keep the
try{}catch{} just in case, though.