1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>OS_EnableCallTrace</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">OS_EnableCallTrace <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD><CODE>#include &lt;nitro/os.h&gt;</CODE><BR>
15  <BR>
16  <CODE>BOOL OS_EnableCallTrace( void );</CODE>
17</DL>
18<H2>Arguments</H2>
19<P>None.</P>
20<H2>Return Values</H2>
21<P>The status before this function was called. TRUE indicates that it was enabled. FALSE indicates that it was disabled.</P>
22<H2>Description</H2>
23<P>Enables the function call trace.</P>
24<P>This switch decides  whether the function entry and exit (<CODE>__PROFILE_ENTRY</CODE>, <CODE>__PROFILE_EXIT</CODE>) that are inserted by the <CODE>profile</CODE> feature will become enabled. When you use the function call trace feature in stack mode, be careful of your timing when you toggle the feature between enabled/disabled. For example, if you call a function called <CODE>test()</CODE> when in disabled status, and then enable the feature from within the <CODE>test()</CODE> function, the data will be inconsistent because at <CODE>__PROFILE_EXIT</CODE> the feature will attempt to discard from the stack the fact that <CODE>test()</CODE> was called, even though nothing was stored at the function entry (<CODE>__PROFILE_ENTRY</CODE>). Log mode only obtains records at <CODE>__PROFILE_ENTRY</CODE>, and therefore you can change status at any point.</P>
25<P>Enable switches are set separately for each trace buffer. Therefore one will not enable all.</P>
26<P>If this function is compiled for debugging, it will function properly. However, if compiled for the final ROM version (<CODE>FINALROM</CODE>) library, it will not do anything.</P>
27<H2>See Also</H2>
28<P><CODE><A href="OS_InitCallTrace.html">OS_InitCallTrace</A>, <A href="OS_DisableCallTrace.html">OS_DisableCallTrace</A>, <A href="OS_RestoreCallTrace.html">OS_RestoreCallTrace</A><BR></CODE></P>
29<H2>Revision History</H2>
30<P>2004/04/23 Initial version.</P>
31<hr><p>CONFIDENTIAL</p></body>
32</HTML>