📄 pentiumlib.html
字号:
int pmcEvtSel0; /* Performance Event Select Register 0 */ int pmcEvtSel1; /* Performance Event Select Register 1 */</pre>This routine starts both PMC0 (Performance Monitoring Counter 0) and PMC1by writing specified events to Performance Event Select Registers. The first parameter is a content of Performance Event Select Register 0,and the second parameter is for the Performance Event Select Register 1.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR if PMC is already started.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcStart0"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcStart0( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcStart0( )</strong> - start PMC0</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS pentiumPmcStart0 (pmcEvtSel0) int pmcEvtSel0; /* PMC0 control and event select */</pre>This routine starts PMC0 (Performance Monitoring Counter 0) by writing specified PMC0 events to Performance Event Select Registers. The only parameter is the content of Performance Event Select Register.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR if PMC is already started.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcStart1"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcStart1( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcStart1( )</strong> - start PMC1</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS pentiumPmcStart1 (pmcEvtSel1) int pmcEvtSel1; /* PMC1 control and event select */</pre>This routine starts PMC1 (Performance Monitoring Counter 0) by writing specified PMC1 events to Performance Event Select Registers. The only parameter is the content of Performance Event Select Register.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR if PMC1 is already started.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcStop"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcStop( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcStop( )</strong> - stop both PMC0 and PMC1</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumPmcStop (void)</pre>This routine stops both PMC0 (Performance Monitoring Counter 0)and PMC1 by clearing two Performance Event Select Registers.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcStop0"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcStop0( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcStop0( )</strong> - stop PMC0</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumPmcStop0 (void)</pre>This routine stops only PMC0 (Performance Monitoring Counter 0)by clearing the PMC0 bits of Control and Event Select Register.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcStop1"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcStop1( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcStop1( )</strong> - stop PMC1</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumPmcStop1 (void)</pre>This routine stops only PMC1 (Performance Monitoring Counter 1)by clearing the PMC1 bits of Control and Event Select Register.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcGet"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcGet( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcGet( )</strong> - get the contents of PMC0 and PMC1</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumPmcGet (pPmc0, pPmc1) long long int * pPmc0; /* Performance Monitoring Counter 0 */ long long int * pPmc1; /* Performance Monitoring Counter 1 */</pre>This routine gets the contents of both PMC0 (Performance Monitoring Counter 0)and PMC1. The first parameter is a pointer of 64Bit variable to storethe content of the Counter 0, and the second parameter is for the Counter 1.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcGet0"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcGet0( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcGet0( )</strong> - get the contents of PMC0</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumPmcGet0 (pPmc0) long long int * pPmc0; /* Performance Monitoring Counter 0 */</pre>This routine gets the contents of PMC0 (Performance Monitoring Counter 0).The parameter is a pointer of 64Bit variable to store the content ofthe Counter.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcGet1"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcGet1( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcGet1( )</strong> - get the contents of PMC1</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumPmcGet1 (pPmc1) long long int * pPmc1; /* Performance Monitoring Counter 1 */</pre>This routine gets a content of PMC1 (Performance Monitoring Counter 1).Parameter is a pointer of 64Bit variable to store the content of the Counter.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcReset"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcReset( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcReset( )</strong> - reset both PMC0 and PMC1</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumPmcReset (void)</pre>This routine resets both PMC0 (Performance Monitoring Counter 0) and PMC1.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcReset0"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcReset0( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcReset0( )</strong> - reset PMC0</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumPmcReset0 (void)</pre>This routine resets PMC0 (Performance Monitoring Counter 0).<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumPmcReset1"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumPmcReset1( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumPmcReset1( )</strong> - reset PMC1</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumPmcReset1 (void)</pre>This routine resets PMC1 (Performance Monitoring Counter 1).<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumMsrInit"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumMsrInit( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumMsrInit( )</strong> - initialize all the MSRs (Model Specific Register)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS pentiumMsrInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes all the MSRs in the processor.This routine works on either P5, P6 or P7 family processors.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if RDMSR/WRMSR instructions are not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b><hr><a name="pentiumMcaEnable"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pentiumMcaEnable( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pentiumMcaEnable( )</strong> - enable/disable the MCA (Machine Check Architecture)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pentiumMcaEnable ( BOOL enable /* TRUE to enable, FALSE to disable the MCA */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables/disables 1) the Machine Check Architecture and its Error Reporting register banks 2) the Machine Check Exception by togglingthe MCE bit in the CR4. This routine works on either P5, P6 or P7 family.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pentiumLib.html#top">pentiumLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -