public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: Systemtap List <systemtap@sourceware.org>
Subject: Re: copy faults from user_string* functions
Date: Fri, 26 Jul 2013 19:50:00 -0000	[thread overview]
Message-ID: <20130726195020.GA7739@dcvr.yhbt.net> (raw)
In-Reply-To: <20130726194220.GA7389@dcvr.yhbt.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.

  reply	other threads:[~2013-07-26 19:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-26  6:36 Eric Wong
2013-07-26 17:08 ` Frank Ch. Eigler
2013-07-26 17:56   ` Eric Wong
2013-07-26 19:42     ` Eric Wong
2013-07-26 19:50       ` Eric Wong [this message]
2013-07-27  0:22     ` Frank Ch. Eigler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130726195020.GA7739@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=fche@redhat.com \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).