In Solaris 11.3 dtrace: script 'test.d' matched 1 probe CPU ID FUNCTION:NAME 2 93505 :tick-1sec hrt = fffffffc805f2000
2 93505 :tick-1sec hrt = fffffffc805f2000 2 93505 :tick-1sec hrt = fffffffc805f2000 2 93505 :tick-1sec hrt = fffffffc805f2000 2 93505 :tick-1sec hrt = fffffffc805f2000 2 93505 :tick-1sec hrt = fffffffc805f2000 #!/usr/sbin/dtrace -s #pragma D option bufsize=512K #pragma D option aggsize=512K tick-1sec { printf(" hrt = %p \n", unix`hrt); } So what are you trying to do ? rick On Fri, Jun 12, 2015 at 05:38:45PM -0400, brian utterback wrote: > X-CAA-SPAM: N00000 > X-Authority-Analysis: v=2.1 cv=Q+MvmNCa c=1 sm=1 tr=0 > a=Ja7KxfovB4Ub0iXAHaw1AA==:117 a=cO1MCeL413koqtnJ7NBp8A==:17 > a=mHUc8iyOAAAA:8 a=C_IRinGWAAAA:8 a=GGcpBh7Jt_oA:10 a=by1oRRPI6K0A:10 > a=yPCof4ZbAAAA:8 a=sWZmMPi9AAAA:8 a=lyYuGu4CHa5PaZGX25icmyaRxzw=:19 > a=XAFQembCKUMA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 > a=cKsnjEOsciEA:10 a=gZbpxnkM3yUA:10 a=EugR2NRD0_nOJtqyiWIA:9 > a=e7rL_74VgamzSsJy:21 a=ibeJVawGTa3q0EMm:21 a=QEXdDO2ut3YA:10 > a=xIogwk1nNgHWcYTzu2gA:9 a=bK7yYbV-Q0-2P61D:21 a=YuHK9gkeV08lPd_c:21 > a=l5dDKTmm3U2B8Bme:21 a=_W_S_7VecoQA:10 a=3YRHXNM5vKweL-5LeO8A:9 > a=C5A0JFpL4Nh3HFLM:18 a=1Vq_FK4TplAA:10 a=TlLYx5JQVSE4ltBw37IA:9 > a=9nbHvumyiLdfXSqt:18 a=VmXgTDnjS6QA:10 > Authentication-Results: resimta-po-17v.sys.comcast.net; > dkim=pass header.d=listbox.com header.b=bctdKnUO > DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=listbox.com; h=message-id > :date:from:mime-version:to:subject:content-type:list-id > :list-help:list-unsubscribe:list-subscribe; s=launch; bh=qmyHCvC > p3htGatpZiVpgX0L7MQ4=; b=bctdKnUOiFQxji1XSxbKugv6nF6zGFiO+bGEURz > HrYlUL9CpeXLyJDslkcLLva8nVvLx5aAG7HX6X69xLsQIe8ImZdM5GYgvdeQKPCu > 1NDExlfYpiptaCWrTNs9rw8nbw4MG7F5+qAUUZSc63WxBsDFWqudr/JrPIbB8uae > TG9g= > Date: Fri, 12 Jun 2015 17:38:45 -0400 > From: brian utterback <brian.utterb...@oracle.com> > Organization: Oracle Corporation > User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 > Thunderbird/31.1.2 > To: dtrace-discuss@lists.dtrace.org > Subject: [dtrace-discuss] How to access boot_hrt on Solaris from a dtrace > script > X-Source-IP: aserv0022.oracle.com [141.146.126.234] > X-Original-Sender: brian utterback <brian.utterb...@oracle.com> > List-ID: <dtrace-discuss@lists.dtrace.org> > X-Listbox-List-ID: 184261 <dtrace-discuss@lists.dtrace.org> > List-Software: listbox.com v2.0 > List-Help: <http://www.listbox.com/subscription-help.html> > Precedence: list > List-Unsubscribe: <mailto:unsubscribe-dtrace-disc...@lists.dtrace.org>, > <https://www.listbox.com/unsubscribe/?& > 064-0abb6708&post_id=20150612173859:6ADA1A9E-114B-11E5-A483-A3C81F9674D6 > > > List-Subscribe: <mailto:subscribe-dtrace-disc...@lists.dtrace.org>, > <http://www.listbox.com/subscribe/?list_id=184261> > X-Listbox-Post-Id: 20150612173859:6ADA1A9E-114B-11E5-A483-A3C81F9674D6 > Errors-To: > listbox+trampoline+s_F+uk1i+nhraaksR5RGkg6PIH5Z01g+Ku2cI@jeeves.archives > .listbox.com > > On Solaris I am working on a system clock related issue, and I want to > print out the values in the hres clock structure. There are two variable > in the kernel that I am interested in, hrt and/or boot_hrt. hrt is a > pointer that holds the address of boot_hrt. The boot_hrt structure is of > type hrt_t. I tried dealing with them directly, but they are defined in > an assembly file so the type info isn't there. I figured I could cast > them to the proper types and get at them that way, but no such luck. > > If I refer to them as unix`hrt or unix`boot_hrt I get these messages > when I compile the script: > no symbolic type information is available for unix`boot_hrt: Symbol > table entry is not a data object > no symbolic type information is available for unix`hrt: Symbol table > entry is not a data object > > However, if i use mdb to display their addresses, I can replace the > unix`hrt and unix`boot_hrt with the hex addresses and the proper casts > and it all works just fine. The problem is that I really need this > script to run standalone without the extra step of running mdb. I > suppose if I have to I can make another script for that, but I would > like to know what I am doing wrong. > -- > Oracle <http://www.oracle.com> > Brian Utterback | Principal Software Engineer > Phone: +1 6038973049 <tel:+1%206038973049> > Oracle Systems/RPE Solaris Network > 1 Oracle Dr. | Nashua, NH 03062 > ------------------------------------------------------------------------ > This space for sale or rent. > ------------------------------------------------------------------------ > Green Oracle <http://www.oracle.com/commitment> Oracle is committed to > developing practices and products that help protect the environment > > > > ------------------------------------------- > dtrace-discuss > Archives: https://www.listbox.com/member/archive/184261/=now > RSS Feed: https://www.listbox.com/member/archive/rss/184261/21486064-d03cfbf9 > Modify Your Subscription: https://www.listbox.com/member/?& > Powered by Listbox: http://www.listbox.com -- Rickey C. Weisner Software Development and Performance Specialist Senior Principal Software Engineer SuperCluster S-Team Oracle Corporation cell phone: 615-308-1147 email: rick.weis...@oracle.com ------------------------------------------- dtrace-discuss Archives: https://www.listbox.com/member/archive/184261/=now RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f Modify Your Subscription: https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2 Powered by Listbox: http://www.listbox.com