Method and apparatus for instruction execution hot spot detection and monitoring in a data processing unit
    1.
    发明授权
    Method and apparatus for instruction execution hot spot detection and monitoring in a data processing unit 失效
    用于在数据处理单元中进行指令执行热点检测和监视的方法和装置

    公开(公告)号:US06681387B1

    公开(公告)日:2004-01-20

    申请号:US09520474

    申请日:2000-03-08

    IPC分类号: G06F945

    CPC分类号: G06F8/4441

    摘要: Disclosed is a method and apparatus for detecting and monitoring program hot spots during execution that may be implemented in hardware. A hot spot detector tracks branch instructions which are retired. Frequently executed branch instruction addresses within a particular interval are designated as hot spot candidates. A hot spot detection counter is used to track non-hot spot branches and hot spot candidate branches. When hot spot candidate branches are frequently encountered compared to non-hot spot candidate branches, the hot spot detector may notify the operating system and hot spot candidate branch addresses may be supplied to a runtime optimizing compiler and a monitor table or a hot spot monitor. The hot spot monitor may disable the hot spot detector when a program is operating in known hot spots and may enable the hot spot detector if the program has strayed from known hot spots.

    摘要翻译: 公开了一种用于在执行期间检测和监视程序热点的方法和装置,其可以在硬件中实现。 热点检测器跟踪退出的分支指令。 在特定间隔内经常执行的分支指令地址被指定为热点候选。 热点检测计数器用于跟踪非热点分支和热点候选分支。 当与非热点候选分支相比经常遇到热点候选分支时,热点检测器可以通知操作系统,并且热点候选分支地址可以被提供给运行时优化编译器和监视表或热点监视器。 当程序在已知的热点中操作时,热点监视器可以禁用热点检测器,并且如果程序已经从已知的热点偏移,则可以启用热点检测器。