architecture paper draft

Chen, Brad brad.chen@intel.com
Fri Feb 11 19:42:00 GMT 2005


Good point that new instructions are relatively rare in
kernel code. At least I hope so! I agree that in user 
space the trap to kernel is the way to go.

Brad

-----Original Message-----
From: Stephen C. Tweedie [mailto:sct@redhat.com] 
Sent: Friday, February 11, 2005 11:43 AM
To: Chen, Brad
Cc: Sridharan, K; William Cohen; Frank Ch. Eigler;
systemtap@sources.redhat.com
Subject: RE: architecture paper draft

Hi,

On Fri, 2005-02-11 at 19:20, Chen, Brad wrote:
> New instructions: hopefully these won't happen very often. 
> When they do, they would only be a problem for systemtap if 
> they were in procedure prologues or epilogues, right? If we
> did hit a new instruction at a probe point, we could just 
> refuse to instrument them until the tools catch up. These 
> probes would become unavailable; perhaps the script would
> refuse to run.

That would be an option, yes.  But from a vendor perspective we
shouldn't be hitting new instructions in the kernel (where the build
environment is more controlled), only from user space.  And in user
space, kprobes already need to trap into kernel space, so perhaps the
int3 mechanism is OK for that side of things.

--Stephen



More information about the Systemtap mailing list