From owner-freebsd-hackers@FreeBSD.ORG Sun May 30 20:51:54 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9217106566B for ; Sun, 30 May 2010 20:51:54 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id BBFA88FC13 for ; Sun, 30 May 2010 20:51:54 +0000 (UTC) Received: by pwj4 with SMTP id 4so1631998pwj.13 for ; Sun, 30 May 2010 13:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=+Wnsb5Qo5wY8aFCrysdctx+sZJeL3RNVXxY9XpDowoE=; b=d27YFA1bkcdjTdN/wIw8BFvSlnTWMHFxu/2mJnN5CCmSV+C3BPdrKiVw44HjYhYPvD MN9FVfsj4B0GjN8ol/RCAufR09NH8D427ffGAHZPZuhRolR4IPADGj04CQg/baEoCH2Y 6brimeba00oaTAUh4b+1g78l9PXKHXBW8qsEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=SDF0hQisaPTVDhdgX1GJPsoZyTOi9wAIXe0ofdHuTKNu0OPtZZDr5YH2V18FntfKU5 qqkHyIbPcZ+AP2ejvCIBRFeV6uFKefo7dVIfOCNps089OMvmTxDZtuahrATho+kCV2p5 RM6rQvnCaThrxHMun4LrjkhZ1aj3HV66aY8Hw= MIME-Version: 1.0 Received: by 10.140.251.13 with SMTP id y13mr2546522rvh.116.1275252714258; Sun, 30 May 2010 13:51:54 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.141.40.4 with HTTP; Sun, 30 May 2010 13:51:54 -0700 (PDT) In-Reply-To: References: Date: Sun, 30 May 2010 13:51:54 -0700 X-Google-Sender-Auth: b8-yEXdhwipqDdqVCgaEc5qqFTY Message-ID: From: Artem Belevich To: Shrikanth Kamath Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: DTrace and CTF data X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2010 20:51:55 -0000 You may be confusing CTF info and the probes. Those are different things. CTF info just describes data types and variable/function location. DTrace later uses it to figure out where and how to install the probes. Probes are installed dynamically, at runtime when DTrace program is run. That's why you see it with kgdb on the live kernel once probe has been installed. DTrace does not modify your original kernel binary, so you will not see any probes there. --Artem On Sun, May 30, 2010 at 12:10 PM, Shrikanth Kamath wrote: > I have a query about the FBT provider in DTrace, does FBT provider not ne= ed > the CTF info for the /kernel binary... > > I have this observation, when I disassemble say a 'kernel_funtion' , I se= e > the function is not instrumented... > > (kgdb) disassemble kernel_function > Dump of assembler code for function kernel_function: > 0xc04aa05d : push =A0 %ebp > 0xc04aa05e : mov =A0 =A0%esp,%ebp > 0xc04aa060 : sub =A0 =A0$0x2c,%esp > > > Now after I did a 'fbt::kernel_function:entry', if I disassemble the > 'kernel_function'... > > (kgdb) disassemble kernel_function > Dump of assembler code for function kernel_function: > 0xc04aa05d : lock mov %esp,%ebp =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 <=3D=3D FBT > instrumentation > 0xc04aa060 : sub =A0 =A0$0x2c,%esp > > If I do a 'objdump' on the kernel.debug binary I do not see any CTF secti= ons > showing up? > > > -- > Shrikanth R K > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " >