kernel: don't build cprofile code by default

This commit is contained in:
Arun Thomas 2011-08-02 15:24:47 +02:00
parent aaefc6f838
commit d69519f86a
3 changed files with 10 additions and 0 deletions

View file

@ -195,6 +195,10 @@ _PROTOTYPE( int do_sprofile, (struct proc * caller, message *m_ptr) );
_PROTOTYPE( int do_cprofile, (struct proc * caller, message *m_ptr) );
_PROTOTYPE( int do_profbuf, (struct proc * caller, message *m_ptr) );
#if ! CPROFILE
#define do_cprofile NULL
#define do_profbuf NULL
#endif
_PROTOTYPE( int do_getmcontext, (struct proc * caller, message *m_ptr) );
_PROTOTYPE( int do_setmcontext, (struct proc * caller, message *m_ptr) );

View file

@ -16,6 +16,8 @@
#include <string.h>
#if CPROFILE
/*===========================================================================*
* do_cprofile *
*===========================================================================*/
@ -144,3 +146,4 @@ PUBLIC int do_cprofile(struct proc * caller, message * m_ptr)
}
}
#endif /* CPROFILE */

View file

@ -11,6 +11,8 @@
#include "kernel/system.h"
#if CPROFILE
/*===========================================================================*
* do_profbuf *
*===========================================================================*/
@ -45,4 +47,5 @@ PUBLIC int do_profbuf(struct proc * caller, message * m_ptr)
return OK;
}
#endif /* CPROFILE */