
Added initial support Xilinx Embedded Software. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
120 lines
5.9 KiB
HTML
Executable file
120 lines
5.9 KiB
HTML
Executable file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>2014.1_doc: xpm_counter.h File Reference</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.4.5 -->
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="dirs.html"><span>Directories</span></a></li>
|
|
</ul></div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
</ul></div>
|
|
<div class="nav">
|
|
<a class="el" href="dir_U_3A_2Fdoxygen_5Fpublish_2Fsources_2Fbsp_2Fstandalone_5Fv4_5F0_2Fsrc_2Fcortexa9_2F.html">cortexa9</a></div>
|
|
<h1>xpm_counter.h File Reference</h1><code>#include <stdint.h></code><br>
|
|
<code>#include "<a class="el" href="xpseudo__asm_8h.html">xpseudo_asm.h</a>"</code><br>
|
|
<code>#include "<a class="el" href="xil__types_8h.html">xil_types.h</a>"</code><br>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xpm__counter_8h.html#f68d70d0f25f3b67b6fcf7b862ade912">Xpm_SetEvents</a> (int PmcrCfg)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xpm__counter_8h.html#067ba9297b009b2b2a2e2af441fb8e67">Xpm_GetEventCounters</a> (u32 *PmCtrValue)</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
This header file contains APIs for configuring and controlling the Cortex-A9 Performance Monitor Events. Cortex-A9 Performance Monitor has 6 event counters which can be used to count a variety of events described in Coretx-A9 TRM. This file defines configurations, where value configures the event counters to count a set of events.<p>
|
|
Xpm_SetEvents can be used to set the event counters to count a set of events and Xpm_GetEventCounters can be used to read the counter values.<p>
|
|
<dl compact><dt><b>Note:</b></dt><dd></dd></dl>
|
|
This file doesn't handle the Cortex-A9 cycle counter, as the cycle counter is being used for time keeping.<p>
|
|
<pre>
|
|
MODIFICATION HISTORY:</pre><p>
|
|
<pre> Ver Who Date Changes
|
|
----- ---- -------- -----------------------------------------------
|
|
1.00a sdm 07/11/11 First release
|
|
</pre> <hr><h2>Function Documentation</h2>
|
|
<a class="anchor" name="067ba9297b009b2b2a2e2af441fb8e67"></a><!-- doxytag: member="xpm_counter.h::Xpm_GetEventCounters" ref="067ba9297b009b2b2a2e2af441fb8e67" args="(u32 *PmCtrValue)" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">void Xpm_GetEventCounters </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">u32 * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>PmCtrValue</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
This function disables the event counters and returns the counter values.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>PmCtrValue</em> </td><td>is a pointer to an array of type u32 PmCtrValue[6]. It is an output parameter which is used to return the PM counter values.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
|
|
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="f68d70d0f25f3b67b6fcf7b862ade912"></a><!-- doxytag: member="xpm_counter.h::Xpm_SetEvents" ref="f68d70d0f25f3b67b6fcf7b862ade912" args="(int PmcrCfg)" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">void Xpm_SetEvents </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">int </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>PmcrCfg</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
This function configures the Cortex A9 event counters controller, with the event codes, in a configuration selected by the user and enables the counters.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>PmcrCfg</em> </td><td>is configuration value based on which the event counters are configured. Use XPM_CNTRCFG* values defined in <a class="el" href="xpm__counter_8h.html">xpm_counter.h</a>.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
|
|
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Thu Feb 13 14:48:12 2014 for 2014.1_doc by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address>
|
|
</body>
|
|
</html>
|