JDK-4677063 : HPROF: cpu=times|old and monitor=y are not supported with format=b
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2002-04-30
  • Updated: 2012-10-08
  • Resolved: 2002-10-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis mantis-b05
14-06-2004

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
11-06-2004

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"); }
11-06-2004

PUBLIC COMMENTS .
10-06-2004