From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,5b3bca6fd730487a,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-01-04 12:32:05 PST Path: supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!feed-out.newsfeeds.com!newsfeeds.com!feed.newsfeeds.com!newsfeeds.com!newshub2.rdc1.sfba.home.com!news.home.com!xfer10.netnews.com!netnews.com!newspeer1.nac.net!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Rajanish Calisa Newsgroups: comp.unix.tru64 Subject: atom (hiprof) woes Date: Thu, 04 Jan 2001 20:21:53 GMT Organization: Deja.com Message-ID: <932m0m$ths$1@nnrp1.deja.com> NNTP-Posting-Host: 203.42.249.64 X-Article-Creation-Date: Thu Jan 04 20:21:53 2001 GMT X-Http-User-Agent: Konqueror/1.1.2 X-Http-Proxy: 1.0 emissary:80 (Squid/2.3.STABLE1), 1.0 x61.deja.com:80 (Squid/1.1.22) for client 10.70.82.22, 203.42.249.64 X-MyDeja-Info: XMYDJUIDrcalisa Xref: supernews.google.com comp.unix.tru64:1341 Hi all, We are using Digital Unix 4.0D, Atom(V2.17f/V2.17d), DEC C++(6.2). I am trying to use hiprof to profile a multi-threaded app. To begin with, I wrote a simple program as given below to tried to profile it: ----------------------------------------------------------- int bar() { for ( int i = 0 ; i < 100 ; i++ ) ; return 0 ; } int foo() { for ( int i = 0 ; i < 100 ; i++ ) { bar() ; } return 0 ; } int main() { for ( int i = 0 ; i < 100 ; i++ ) { foo() ; } return 0 ; } ------------------------------------------------------- I compiled the program as follows: cxx -g -pthread hp.cc -o hp I tried to profile it as follows: atom hp -tool hiprof -env threads \ -toolargs="-textout -cputime -threads" -all -g When I run hp.hiprof.threads, I get the following message: Hiprof Panic: hacked stack back to nothing I do not understand what I am doing wrong, when the "threads" option is not specified during profile and compilation time it seems to work fine. Any help in this regard is appreciated. Thanks rajanish... Sent via Deja.com http://www.deja.com/