发明名称 Method and apparatus for obtaining a call stack to an event of interest and analyzing the same
摘要 In one embodiment, a processor includes a performance monitor including a last branch record (LBR) stack to store a call stack to an event of interest, where the call stack is collected responsive to a trigger for the event. The processor further includes logic to control the LBR stack to operate in a call stack mode such that an entry to a call instruction for a leaf function is cleared on return from the leaf function. Other embodiments are described and claimed.
申请公布号 US9582275(B2) 申请公布日期 2017.02.28
申请号 US201113118766 申请日期 2011.05.31
申请人 Intel Corporation 发明人 Chynoweth Michael W.;Irelan Peggy J.;Merten Matthew C.;Kim Seung-Woo;Knauth Laura A.;Bratanov Stanislav
分类号 G06F15/00;G06F7/38;G06F9/00;G06F9/44;G06F9/30;G06F11/34 主分类号 G06F15/00
代理机构 Trop, Pruner & Hu, P.C. 代理人 Trop, Pruner & Hu, P.C.
主权项 1. A processor comprising: an execution unit; a plurality of registers coupled to the execution unit, each of the plurality of registers to store at least one of source and destination address information of a branch taken during program execution; and a logic coupled to the plurality of registers to control the plurality of registers to operate: in a call stack mode to cause storage in the plurality of registers of call information of one or more functions to provide a call stack to an event, wherein in the call stack mode, a call to a leaf function is to be removed from a register on return from the leaf function; andin a second mode to cause storage in the plurality of registers of branch records for taken branches.
地址 Santa Clara CA US