From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] ptrace behavior accessing ar.lc and ar.ec
Date: Fri, 25 Jan 2002 16:30:10 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805932@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805929@msgid-missing>
> Hi folks,
> I'm using the ptrace interface to create a
> "architectural" processor state tracing tool. When I
> access AR.LC and AR.EC, I *usually* get the expected
> result, but every once and a while it returns a bogus
> result.
> Is there a known bug, or am I using ptrace
> incorrectly?
Not a known bug.
> Here's how its used:
> lc = ptrace (PTRACE_PEEKUSER, state->pid, PT_AR_LC,
> 0);
> The tracing program observes some sort of behavior
> like:
> mov.i ar.lc = r61 (I'm pretty sure r61 is 6), and
> ptrace returns 0
> sxt4 r22=r60 ptrace returns -1
> ..... "
> (swp kernel code) "
> ..... "
> br.ctop.sptk.few .b9 ptrace returns -1, br taken
> (p17) st8 [r15]=r34 ptrace returns 5
Do you have a self-contained and small test program that reproduces
the problem? That would make it easier to investigate the problem.
--david
next prev parent reply other threads:[~2002-01-25 16:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-25 9:28 [Linux-ia64] ptrace behavior accessing ar.lc and ar.ec Weihaw Chuang
2002-01-25 16:30 ` David Mosberger [this message]
2002-01-25 20:01 ` David Mosberger
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=marc-linux-ia64-105590698805932@msgid-missing \
--to=davidm@hpl.hp.com \
--cc=linux-ia64@vger.kernel.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