United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4677063 : HPROF: cpu=times|old and monitor=y are not supported with format=b

Details
Type:
Bug
Submit Date:
2002-04-30
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2002-10-26
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.1
Fixed Versions:
1.4.2 (mantis)

Related Reports

Sub Tasks

Description

Name: egR10015			Date: 04/30/2002



Hprof agent shipped with HotSpot 1.4.1-b10 fails to pass the following tests:

nsk/hprof/options/format/format006
nsk/hprof/options/format/format007

from testbase_nsk on all platforms. 

The reason is that HPROF does not support options cpu=times|old and monitor=y
with the option format=b.
I guess, this capability should be implemented in future releases of HPROF, or
at least this issue must be documented. Neither the following public document:

http://java.sun.com/j2se/1.4/docs/guide/jvmpi/jvmpi.html#hprof

nor HPROF itself being run with -Xrunhprof:help say nothing about it.

To reproduce the bug run any program with HPROF as follows:

$ ~/hotspot/jdk1.4.1/solsparc/bin/java -Xrunhprof:cpu=times,format=b HelloWorld
HPROF ERROR: cpu=times|old is not supported with format=b
$ ~/hotspot/jdk1.4.1/solsparc/bin/java -Xrunhprof:cpu=old,format=b HelloWorld
HPROF ERROR: cpu=times|old is not supported with format=b
$ ~/hotspot/jdk1.4.1/solsparc/bin/java -Xrunhprof:monitor=y,format=b HelloWorld
HPROF ERROR: monitor=y is not supported with format=b

======================================================================

                                    

Comments
PUBLIC COMMENTS

.
                                     
2004-06-10
SUGGESTED FIX

###@###.### 2002-09-13

Here are the context diffs for the proposed fix:

------- src/share/tools/hprof/hprof_setup.c -------
*** /tmp/sccs.jKaOm0    Fri Sep 13 16:12:59 2002
--- hprof_setup.c       Fri Sep 13 16:09:53 2002
***************
*** 78,84 ****
          "pvhs=y|n               print verbose hash stats?  n\n"
  #endif /* HASH_STATS */
          "\nExample: java -Xrunhprof:cpu=samples,file=log.txt,"
!         "depth=3 FooClass\n\n");
  }
               
             
--- 78,86 ----
          "pvhs=y|n               print verbose hash stats?  n\n"
  #endif /* HASH_STATS */
          "\nExample: java -Xrunhprof:cpu=samples,file=log.txt,"
!         "depth=3 FooClass\n"
!         "\nNote: format=b cannot be used with cpu=old|times\n"
!         "\n");
  }
                                     
2004-06-11
EVALUATION

###@###.### 2002-04-30

Re-assigning to jvmpi team.  Was originally filed as a runtime bug? If it should be a runtime bug then re-assign and assign me as RE.

###@###.### 2002-09-13

This issue will be resolved by changing the help message to document the
limitation that 'format=b' cannot be used with either 'cpu=old' or
'cpu=times'. At this time, adding additional functionality to the sample
hprof agent cannot be justified.

The following two NSK tests will need to be modified to expect failure
instead of success:

nsk/hprof/options/format/format006
nsk/hprof/options/format/format007
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b05


                                     
2004-06-14



Hardware and Software, Engineered to Work Together