xref: /xnu-10063.121.3/bsd/arm/profile.h (revision 2c2f96dc2b9a4408a43d3150ae9c105355ca3daa)
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