xref: /xnu-12377.81.4/bsd/pgo/profile_runtime_data.c (revision 043036a2b3718f7f0be807e2870f8f47d3fa0796)
1 #include <mach/vm_param.h>
2 
3 #ifndef __BUILDING_XNU_LIBRARY__
4 /*
5  * This tells compiler_rt not to include userspace-specific stuff writing
6  * profile data to a file.
7  * When building userspace unit-test we don't do that because we do want
8  * the normal file-saving coverage mechanism to work as usual in a
9  */
10 int __llvm_profile_runtime = 0;
11 
12 #endif /* __BUILDING_XNU_LIBRARY__ */
13 
14 /* compiler-rt requires this.  It uses it to page-align
15  * certain things inside its buffers.
16  */
17 
18 extern int getpagesize(void);
19 
20 int
getpagesize()21 getpagesize()
22 {
23 	return PAGE_SIZE;
24 }
25