Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
4657 Discussions

What instructions does INST_RETIRED.ANY count exactly?

AAhusk
Beginner
693 Views

VTune uses a fixed counter named INST_RETIRED.ANY. The description in the Software Developer's manual for INST_RETIRED.ANY just says

"This event counts the number of instructions that retire execution. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. The counter continues counting during hardware interrupts, traps, and in-side interrupt handlers."

I'm not sure what context is implied with regards to the "instrcutions that retire execution".

Does the INST_RETIRED.ANY count all instructions that retire on the physical core that fixed counter resides on? Or is it per-logical core? Or something else?

0 Kudos
1 Solution
AlekhyaV_Intel
Moderator
663 Views

Hi Aaron,

 

Thank you for posting in Intel Forums. "INST_RETIRED.ANY" counts the number of instructions located on the logical core(HW thread). Refer this link for more information regarding instructions retired event.

Hope this helps!

 

Regards,

Alekhya

 

View solution in original post

5 Replies
Bernard
Black Belt
675 Views

@AAhusk wrote:

VTune uses a fixed counter named INST_RETIRED.ANY. The description in the Software Developer's manual for INST_RETIRED.ANY just says

"This event counts the number of instructions that retire execution. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. The counter continues counting during hardware interrupts, traps, and in-side interrupt handlers."

I'm not sure what context is implied with regards to the "instrcutions that retire execution".

Does the INST_RETIRED.ANY count all instructions that retire on the physical core that fixed counter resides on? Or is it per-logical core? Or something else?


Retirement of instruction is one of the last stages of the pipelined execution. At this stage the Retirement Unit usually would decommit any resources held by the instruction and update the software visible state (commit to the memory or commit to software visible registers).

IIRC the fixed counter 0 is responsible for counting the "INST_RETIRED.ANY" fixed event  per core.

AlekhyaV_Intel
Moderator
664 Views

Hi Aaron,

 

Thank you for posting in Intel Forums. "INST_RETIRED.ANY" counts the number of instructions located on the logical core(HW thread). Refer this link for more information regarding instructions retired event.

Hope this helps!

 

Regards,

Alekhya

 

AlekhyaV_Intel
Moderator
634 Views

Hi Aaron,


Could you please give us an update regarding this issue?


Regards,

Alekhya


AlekhyaV_Intel
Moderator
606 Views

Hi,


We assume that your issue is resolved. If you have any additional issues/doubts, please submit a new question as this thread will no longer be monitored.


Regards,

Alekhya


AlekhyaV_Intel
Moderator
563 Views

Hi Aaron,


Thank you for coming back and accepting our solution. For any other issues/queries, please submit a new question as this thread will no longer be monitored.


Regards,

Alekhya


Reply