kernel: don't build cprofile code by default
This commit is contained in:
		
							parent
							
								
									aaefc6f838
								
							
						
					
					
						commit
						d69519f86a
					
				@ -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) );
 | 
			
		||||
 | 
			
		||||
@ -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 */
 | 
			
		||||
 | 
			
		||||
@ -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 */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user