From: Andrew Cagney <cagney@redhat.com>
To: Chris Moller <cmoller@redhat.com>
Cc: frysk <frysk@sources.redhat.com>
Subject: Re: ongoing frysk.proc.ptrace refactoring
Date: Tue, 22 May 2007 17:08:00 -0000 [thread overview]
Message-ID: <46531B07.4010005@redhat.com> (raw)
In-Reply-To: <46531685.7090405@redhat.com>
Chris,
Good question. The existing code-observer code modifies memory by
inserting small breakpoint instructions (1 byte on i386, 4 bytes on PPC
and 8 bytes? on ia64) and going forward will write slightly larger
chunks (~16 bytes) so efficiency there may be helpful. Beyond that,
however, no existing code is attempting large memory writes so
justification for the change is absent.
Andrew
Chris Moller wrote:
> I just committed this stuff. You should be able to drop
> MemorySpaceByteBuffer in as a replacement for AddressSpaceByteBuffer and
> get a huge increase in performance in multi-word peeks.
>
> Does anyone need high-speed multi-word pokes? The StatelessFile class
> supports that, but AddressSpaceByteBuffer doesn't, so I didn't include
> it in MemorySpaceByteBuffer. If there's enough popular demand (>= 1
> request), I'll hack it in.
>
> Let me know if it blows up in your face...
>
> cm
>
> Chris Moller wrote:
>
>> Andrew,
>>
>> I'd planned to add MemorySpaceByteBuffer.java and commit a few changes
>> to TestByteBuffer.java in frysk-core/frysk/proc/ptrace later today--is
>> that going to mung up the stuff you're doing?
>>
>> Chris
>>
>> Andrew Cagney wrote:
>>
>>
>>> Just a work-in-progress update:
>>>
>>> While I've finished restructuring the target specific frysk.proc code
>>> into separate frysk.proc.corefile, frysk.proc.dummy and
>>> frysk.proc.ptrace packages there's still a ways to go as the
>>> refactoring has helped clarify several additional problems with the
>>> current code:
>>>
>>> -> frysk.proc.Proc and frysk.proc.Task seem to have gained a number of
>>> fields, such as Task.sig_send, that are very Linux/ptrace centric;
>>> the'll need to be cleaned up
>>>
>>> -> many of the methods, such as frysk.proc.Task.sendContinue, being
>>> ptrace specific (they do not apply to a corefile proc), can be moved
>>> to more specific packages
>>>
>>> -> rather than split along the lines of "corefile" and "ptrace", a
>>> better split might be "dead" (you can query a dead proc) and "live"
>>> (or stateful) (you can observe a live proc), re-consider that once the
>>> more pressing issues are addressed
>>>
>>> I'll be continuing with this.
>>>
>>> Andrew
>>>
>>>
>>>
>>
>>
>
>
next prev parent reply other threads:[~2007-05-22 16:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 14:38 Andrew Cagney
2007-05-22 14:45 ` Chris Moller
2007-05-22 15:10 ` Andrew Cagney
2007-05-22 16:32 ` Chris Moller
2007-05-22 17:08 ` Andrew Cagney [this message]
2007-05-22 22:44 ` Phil Muldoon
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=46531B07.4010005@redhat.com \
--to=cagney@redhat.com \
--cc=cmoller@redhat.com \
--cc=frysk@sources.redhat.com \
/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).