RFR: 8366847: JFR reports incorrect number of cores on hybrid CPU [v5]

Yasumasa Suenaga ysuenaga at openjdk.org
Wed Oct 8 09:50:27 UTC 2025


On Wed, 8 Oct 2025 07:50:47 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

>>> Perhaps better stated on the cores field:
>> 
>> Thanks for your comment! I added that sentence to `description` attribute in `Field` element.
>> After this change, flight record contains following metadata. I believe it would be parsed in some tools like JMC (JMC shows the description as a tooltip)
>> 
>> 
>> $ jfr metadata --events jdk.CPUInformation /tmp/test.jfr
>> @Name("jdk.CPUInformation")
>> @Category({"Operating System", "Processor"})
>> @Label("CPU Information")
>> @Description("Characteristics and descriptions of the processor(s) the JVM is running on")
>> class CPUInformation extends jdk.jfr.Event {
>>   @Label("Start Time")
>>   @Timestamp("TICKS")
>>   long startTime;
>> 
>>   @Label("Type")
>>   String cpu;
>> 
>>   @Label("Description")
>>   String description;
>> 
>>   @Unsigned
>>   @Label("Sockets")
>>   int sockets;
>> 
>>   @Unsigned
>>   @Label("Cores")
>>   @Description("Approximation on a hybrid CPU")
>>   int cores;
>> 
>>   @Unsigned
>>   @Label("Hardware Threads")
>>   int hwThreads;
>> }
>
> Metadata looks good

@egahlin Can you approve this PR? Thanks.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27080#discussion_r2413260517


More information about the hotspot-dev mailing list