xref: /xnu-8792.61.2/bsd/arm/profile.h (revision 42e220869062b56f8d7d0726fd4c88954f87902c)
1 /*
2  * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
3  */
4 /*
5  * Copyright (c) 1997, Apple Computer, Inc. All rights reserved.
6  *
7  */
8 
9 #ifndef _BSD_ARM_PROFILE_H_
10 #define _BSD_ARM_PROFILE_H_
11 
12 #if defined (__arm__) || defined (__arm64__)
13 
14 #include <sys/appleapiopts.h>
15 
16 #ifdef KERNEL
17 #ifdef __APPLE_API_UNSTABLE
18 
19 /*
20  * Block interrupts during mcount so that those interrupts can also be
21  * counted (as soon as we get done with the current counting).  On the
22  * arm platfom, can't do splhigh/splx as those are C routines and can
23  * recursively invoke mcount.
24  */
25 #warning MCOUNT_* not implemented yet.
26 
27 #define MCOUNT_INIT
28 #define MCOUNT_ENTER    /* s = splhigh(); */ /* XXX TODO */
29 #define MCOUNT_EXIT     /* (void) splx(s); */ /* XXX TODO */
30 
31 #endif /* __APPLE_API_UNSTABLE */
32 #endif /* KERNEL */
33 
34 #endif /* defined (__arm__) || defined (__arm64__) */
35 
36 #endif /* _BSD_ARM_PROFILE_H_ */
37