| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| <title>oscl_mem_inst.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.2.18 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> |
| <hr><h1>oscl_mem_inst.h</h1><a href="oscl__mem__inst_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span> |
| 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00003 |
| 00004 <span class="comment">// O S C L _ M E M _ I N S T . H</span> |
| 00005 |
| 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00007 |
| 00018 <span class="preprocessor">#ifndef OSCL_MEM_INST_H_INCLUDED</span> |
| 00019 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_MEM_INST_H_INCLUDED</span> |
| 00020 <span class="preprocessor"></span> |
| 00021 <span class="preprocessor">#ifndef OSCLCONFIG_MEMORY_H_INCLUDED</span> |
| 00022 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="osclconfig__memory_8h.html">osclconfig_memory.h</a>"</span> |
| 00023 <span class="preprocessor">#endif</span> |
| 00024 <span class="preprocessor"></span> |
| 00025 <span class="comment">/*</span> |
| 00026 <span class="comment">** PVMEM_INST_LEVEL controls the instrumentation level for</span> |
| 00027 <span class="comment">** memory leak tracking. Detailed memory leak information (file</span> |
| 00028 <span class="comment">** and line # of each allocation) is compiled in or out depending</span> |
| 00029 <span class="comment">** on the level. This information is an aid to debugging memory leaks,</span> |
| 00030 <span class="comment">** but compiling it in will increase code size and run-time overhead.</span> |
| 00031 <span class="comment">**</span> |
| 00032 <span class="comment">** Values are as follows</span> |
| 00033 <span class="comment">** PVMEM_INST_LEVEL 0 -- detailed memory leak reporting information</span> |
| 00034 <span class="comment">** is compiled out.</span> |
| 00035 <span class="comment">** PVMEM_INST_LEVEL 1 -- detailed memory leak reporting information</span> |
| 00036 <span class="comment">** is compiled in.</span> |
| 00037 <span class="comment">**</span> |
| 00038 <span class="comment">** The value can be defined in the osclconfig_memory.h file for the platform.</span> |
| 00039 <span class="comment">** In case PVMEM_INST_LEVEL is not defined for the platform, default</span> |
| 00040 <span class="comment">** values are defined here.</span> |
| 00041 <span class="comment">*/</span> |
| 00042 <span class="preprocessor">#ifndef PVMEM_INST_LEVEL</span> |
| 00043 <span class="preprocessor"></span><span class="preprocessor">#if defined(NDEBUG)</span> |
| 00044 <span class="preprocessor"></span><span class="comment">/* release mode-- no instrumentation */</span> |
| 00045 <span class="preprocessor">#define PVMEM_INST_LEVEL 0</span> |
| 00046 <span class="preprocessor"></span><span class="preprocessor">#else</span> |
| 00047 <span class="preprocessor"></span><span class="comment">/* debug mode-- full instrumentation */</span> |
| <a name="l00048"></a><a class="code" href="group__osclbase.html#a104">00048</a> <span class="preprocessor">#define PVMEM_INST_LEVEL 1</span> |
| 00049 <span class="preprocessor"></span><span class="preprocessor">#endif</span> |
| 00050 <span class="preprocessor"></span><span class="preprocessor">#endif</span> |
| 00051 <span class="preprocessor"></span> |
| 00052 <span class="comment">/*</span> |
| 00053 <span class="comment">** When bypassing the Oscl memory manager, instrumentation</span> |
| 00054 <span class="comment">** is not needed, so should always be compiled out.</span> |
| 00055 <span class="comment">*/</span> |
| 00056 <span class="preprocessor">#if(OSCL_BYPASS_MEMMGT)</span> |
| 00057 <span class="preprocessor"></span><span class="preprocessor">#undef PVMEM_INST_LEVEL</span> |
| 00058 <span class="preprocessor"></span><span class="preprocessor">#define PVMEM_INST_LEVEL 0</span> |
| 00059 <span class="preprocessor"></span><span class="preprocessor">#endif</span> |
| 00060 <span class="preprocessor"></span> |
| 00061 |
| 00064 <span class="preprocessor">#endif</span> |
| </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> |
| <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> |
| </small></address> |
| </body> |
| </html> |