From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c29e7edcb61373d1 X-Google-Attributes: gidfee84,public From: John P Williams Subject: Re: Hiprof problems Date: 1998/08/20 Message-ID: <35DC1CFE.8D6933BE@zk3.dec.com>#1/1 X-Deja-AN: 384238453 Content-Transfer-Encoding: 7bit References: <35D98153.794B@eurocontrol.be> To: WANGNICK Sebastian Content-Type: text/plain; charset=us-ascii Organization: Digital UNIX Development Environment Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 > I'm currently trying to instrument our application with hiprof. > I'm working on OSF1 V3.2 62 alpha. The application uses pthreads. > > I call atom as following: atom Workpackage6 -v -tool hiprof -env threads > -all -shlibdir hiprof.shlib -gp -toolargs="-calltime -dirname hiout > -textout -systime -sigdump USR1". > > First issue: odump -D tells me SO_SUFFIX: .Workpackage6.hiprof.threads. > However, the 3.2G loader doesn't take this setting into account! This first issue seems to be the result of you using Hiprof without first installing the complete Atom Advance Development Kit (ADK). Past ADKs for V3.2* provided a new version of the loader, which knows how to load shared libraries that have been instrumented by Atom. We no longer offer an ADK for V3.2*, because the great majority of our customers now run V4.0 or later, but it looks as if you have access to an older ADK, so I think you need to install it on the machine where you want to use Hiprof. > Main issue: Somewhen during thread establishment (no detailed point in > time known yet) I get the message: > Hiprof Panic: hacked stack back to nothing This occurs because our Atom tools do not support the V3.2* implementation of pthreads. They only support the rather different implementation that was introduced in V4.0. We have just not disabled the "-env threads" option in the version of the ADK for V3.2* because it is not an actual product. Atom and Hiprof first became products in V4.0, so no guarantees are offered on earlier versions of the operating system. I suggest that you upgrade to V4.0 or later (eg V4.0D, or V4.0E when it is released). Alternatively, try the gprof command after compiling your application with the -pg option, or use the uprofile or pixie command with prof. Please send me email if you would like to discuss this further. Thanks John P Williams, Digital UNIX Development Environment Group