From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23146 invoked by alias); 28 Jul 2005 16:23:01 -0000 Mailing-List: contact systemtap-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sources.redhat.com Received: (qmail 23078 invoked by uid 22791); 28 Jul 2005 16:22:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q3JWLP3cFT9QASJz9XV/BbbaLaMqzgAbf70GjMexU9G+dw3qdAIXKNlWC5lKW4oGld3CLWsojbOAt2f3k2RgRKYYXLBOUpVwgYw0cRAjn7Sp1axKOKF4woDrh/YGfIUngpfUxXae1FWIVCU578zyRO1hrwg7bwYhfPvDt8upuwE= Message-ID: Date: Thu, 28 Jul 2005 16:23:00 -0000 From: Masami Hiramatsu Reply-To: Masami Hiramatsu To: karim@opersys.com Subject: Re: Hitachi djprobe mechanism Cc: "Keshavamurthy, Anil S" , Masami Hiramatsu , Roland McGrath , Richard J Moore , SystemTAP , sugita@sdl.hitachi.co.jp, Satoshi Oshima In-Reply-To: <42E83CEC.8040702@opersys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44BDAFB888F59F408FAE3CC35AB4704101E506F6@orsmsx409> <42E83895.6070602@opersys.com> <42E83CEC.8040702@opersys.com> X-SW-Source: 2005-q3/txt/msg00145.txt.bz2 Hi, 2005/7/28, Karim Yaghmour : > Karim Yaghmour wrote: > >From the article's text: > > "The springboard approach requires chunks of scratch space (collectivel= y, > > the springboard heap) to be conveniently sprinkled throughout the kerne= l, > > so that every kernel instruction can reach some chunk when using one of > > the suitable instructions ..." > > Also, there's this bit I missed from the figure the text refers to as > containing the list of instructions that can be used for various architec= tures > (figure 4.6): > > "None of the architectures has an ideal splicing instruction; either > displacement is insufficient (RISC architectures), or there is no > guarantee that only a single instruction is overwritten when splicing (x8= 6)." > > To the best of my understanding, the latter seems to imply that springboa= rds > have the very same limitations mentioned earlier for djprobe. I think so. the size of smallest jmp instruction is 2 bytes on i386, but the smallest instruction is 1byte on i386 (ex. pushl %esi). I will try to add safety check routine in sched() and do_IRQ(). -- Masami Hiramatsu mailto:masami.hiramatsu@gmail.com