OSDN Git Service

CORE_8.506.1.1 versioning and documentation updates.
[android-x86/external-opencore.git] / doc / oscl_html / oscl__mem__inst_8h-source.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>oscl_mem_inst.h Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.2.18 -->
7 <center>
8 <a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
9 <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>
10 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
11 00003 
12 00004 <span class="comment">//                     O S C L _ M E M _ I N S T . H</span>
13 00005 
14 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
15 00007 
16 00018 <span class="preprocessor">#ifndef OSCL_MEM_INST_H_INCLUDED</span>
17 00019 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_MEM_INST_H_INCLUDED</span>
18 00020 <span class="preprocessor"></span>
19 00021 <span class="preprocessor">#ifndef OSCLCONFIG_MEMORY_H_INCLUDED</span>
20 00022 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="osclconfig__memory_8h.html">osclconfig_memory.h</a>"</span>
21 00023 <span class="preprocessor">#endif</span>
22 00024 <span class="preprocessor"></span>
23 00025 <span class="comment">/*</span>
24 00026 <span class="comment">** PVMEM_INST_LEVEL controls the instrumentation level for</span>
25 00027 <span class="comment">** memory leak tracking.  Detailed memory leak information (file</span>
26 00028 <span class="comment">** and line # of each allocation) is compiled in or out depending</span>
27 00029 <span class="comment">** on the level.  This information is an aid to debugging memory leaks,</span>
28 00030 <span class="comment">** but compiling it in will increase code size and run-time overhead.</span>
29 00031 <span class="comment">**</span>
30 00032 <span class="comment">** Values are as follows</span>
31 00033 <span class="comment">**   PVMEM_INST_LEVEL 0 -- detailed memory leak reporting information</span>
32 00034 <span class="comment">**      is compiled out.</span>
33 00035 <span class="comment">**   PVMEM_INST_LEVEL 1 -- detailed memory leak reporting information</span>
34 00036 <span class="comment">**      is compiled in.</span>
35 00037 <span class="comment">**</span>
36 00038 <span class="comment">** The value can be defined in the osclconfig_memory.h file for the platform.</span>
37 00039 <span class="comment">** In case PVMEM_INST_LEVEL is not defined for the platform, default</span>
38 00040 <span class="comment">** values are defined here.</span>
39 00041 <span class="comment">*/</span>
40 00042 <span class="preprocessor">#ifndef PVMEM_INST_LEVEL</span>
41 00043 <span class="preprocessor"></span><span class="preprocessor">#if (OSCL_RELEASE_BUILD)</span>
42 00044 <span class="preprocessor"></span><span class="comment">/* release mode-- no instrumentation */</span>
43 00045 <span class="preprocessor">#define PVMEM_INST_LEVEL 0</span>
44 00046 <span class="preprocessor"></span><span class="preprocessor">#else</span>
45 00047 <span class="preprocessor"></span><span class="comment">/* debug mode-- full instrumentation */</span>
46 <a name="l00048"></a><a class="code" href="group__osclbase.html#a110">00048</a> <span class="preprocessor">#define PVMEM_INST_LEVEL 1</span>
47 00049 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
48 00050 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
49 00051 <span class="preprocessor"></span>
50 00052 <span class="comment">/*</span>
51 00053 <span class="comment">** When bypassing the Oscl memory manager, instrumentation</span>
52 00054 <span class="comment">** is not needed, so should always be compiled out.</span>
53 00055 <span class="comment">*/</span>
54 00056 <span class="preprocessor">#if(OSCL_BYPASS_MEMMGT)</span>
55 00057 <span class="preprocessor"></span><span class="preprocessor">#undef PVMEM_INST_LEVEL</span>
56 00058 <span class="preprocessor"></span><span class="preprocessor">#define PVMEM_INST_LEVEL 0</span>
57 00059 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
58 00060 <span class="preprocessor"></span>
59 00061 
60 00064 <span class="preprocessor">#endif</span>
61 </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
62 <address style="align: left;"><small>Posting Version: CORE_8.506.1.1 </small>
63 </small></address>
64 </body>
65 </html>