ERROR using Spot tool

Hi,

I am trying to use the Spot tool and I get the following error when I use it.

When I use the command:

> cc -g -O -xbinopt=prepare -o qsort3 qsort3.c

I get the following warning, but dosent report any errors:

cc: Warning: illegal option -xbinopt=prepare

When I use this command

> spot -X qsort3

I get the following output:

Collect machine statistics

Collect application details

Collect ipc data using ripc

Collect data using BIT

Output ifreq data from bit

Collect bandwidth data

Collect traps data

Collect HW counter profile data

Generating html output for HW counter profile data

Collect clock-based profiling data

Unrecognized argument -O

Generating html output for time profile data

Done collecting, tidying up reports

It says "Unrecognized argument -O" and all the generated reports are empty.

>In messages.html.txt

Nov 16 05:58:26 itrisun sshd[921]: [ID 800047 auth.error] error: Could

not get shadow information for NOUSER

Nov 16 13:29:12 itrisun su: [ID 810491 auth.crit] 'su root' failed for

shollen on /dev/pts/4

Nov 16 13:29:21 itrisun last message repeated 1 time

>In bit.log

postopt: error: Can't operate on /usr/local1/w112rxk/shade/a.out, please

recompile with -xbinopt=prepare flag

If -xbinopt=prepare has been used properly, and the error

message(s) above from bit are not helpful enough, the file

./spot_run9/debug.log

may contain more information about this section

(search for the word bit in the debug.log file).

Please let me know how to run the spot tool to collect the information and get rid of the above errors.

Thank you for the help.

Regards

Raghudeep Kannavara

[1867 byte] By [Raghudeep] at [2007-11-26 11:34:58]
# 1

And the message generated in debug.log is as follows:

Collect data using BIT

/usr/local/SUNWspro/prod/bin/bit collect -d ./spot_run9 -b .binstr -s

.binstrdata -o ./spot_run9/bitifreq_total.txt -a ifreq -o

./spot_run9/bitifreq_functions.txt -a ifreq=%ALL -o bit.1.er -e

/usr/local1/w112rxk/shade/a.out >./spot_run9/bit.tmplog 2>&1

Output ifreq data from bit

Collect bandwidth data

gatheroutput file: ./spot_run9/bandwidth.html.txt

gatheroutput command: /usr/local/SUNWspro/prod/bin/bw -g

./spot_run9/bandwidth.ps "/usr/local1/w112rxk/shade/a.out "

Opening file bandwidth.html with filehandle fh08

Collect traps data

gatheroutput file: ./spot_run9/traps.html.txt

gatheroutput command: /usr/local/SUNWspro/prod/bin/traps -g

./spot_run9/traps.ps "/usr/local1/w112rxk/shade/a.out "

Opening file traps.html with filehandle fh09

Collect HW counter profile data

Generating html output for HW counter profile data

Collect clock-based profiling data

/usr/local/SUNWspro/prod/bin/../../bin/collect -O

./spot_run9/collect.log -F on -d ./spot_run9 -o test.1.er

/usr/local1/w112rxk/shade/a.out

Generating html output for time profile data

gatheroutput command: /usr/local/SUNWspro/prod/bin/er_print -metrics

e.user:e.system -limit 10 -func ./spot_run9/test.1.er

/usr/local/SUNWspro/prod/bin/er_html -o ./spot_run9/html

./spot_run9/test.1.er > ./spot_run9/er_html.log 2>&1

Done collecting, tidying up reports

Raghudeep at 2007-7-7 3:50:52 > top of Java-index,Open Source Technologies,OpenSPARC...
# 2

Thanks for posting the debug.log file. From what you say it looks like you're not using Sun Studio 11. If this is the case, then you can get SS11 as a free download from:

http://developers.sun.com/sunstudio/downloads/index.jsp

The reason I think this is the problem is because cc does not recognise -xbinopt=prepare, and collect does not recognise -O.

Hope this addresses the issue.

Darryl.

djgove at 2007-7-7 3:50:52 > top of Java-index,Open Source Technologies,OpenSPARC...